users@glassfish.java.net

Problem whle Enabling Comet in the Enterprise Server

From: <glassfish_at_javadesktop.org>
Date: Fri, 16 Oct 2009 04:25:08 PDT

I have followed the steps but still i got the following error.
Please help me..

java.lang.IllegalStateException: Make sure you have enabled Comet or make sure the Thread invoking that method is the same as the Servlet.service() Thread.
        at com.sun.grizzly.comet.CometContext.<clinit>(CometContext.java:183)
        at com.sun.grizzly.comet.CometEngine.register(CometEngine.java:293)
        at com.sun.grizzly.comet.CometEngine.register(CometEngine.java:268)
        at com.sun.grizzly.comet.CometEngine.register(CometEngine.java:253)
        at com.sun.grizzly.samples.comet.HiddenCometServlet.init(HiddenCometServlet.java:113)
        at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1364)
        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1167)
        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5177)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:5578)
        at com.sun.enterprise.web.WebModule.start(WebModule.java:498)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:928)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:912)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:693)
        at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1951)
        at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1638)
        at com.sun.enterprise.web.WebApplication.start(WebApplication.java:88)
        at org.glassfish.internal.data.EngineRef.start(EngineRef.java:115)
        at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:215)
        at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:189)
        at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:283)
        at com.sun.enterprise.v3.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:296)
        at com.sun.enterprise.v3.server.ApplicationLoaderService.postConstruct(ApplicationLoaderService.java:144)
        at com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:170)
        at com.sun.hk2.component.ConstructorWomb$1.run(ConstructorWomb.java:90)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:87)
        at com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:77)
        at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:58)
        at com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:107)
        at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:60)
        at com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:218)
        at com.sun.enterprise.v3.server.AppServerStartup.start(AppServerStartup.java:115)
        at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:433)
        at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:377)
        at org.jvnet.hk2.osgiadapter.HK2Main.start(HK2Main.java:120)
        at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:589)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:1458)
        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:779)
        at org.jvnet.hk2.osgimain.Main.start(Main.java:104)
        at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:589)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:1458)
        at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:984)
        at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:263)
        at java.lang.Thread.run(Thread.java:619)
[Message sent by forum member 'irkmcc' (irkmcc_at_gmail.com)]

http://forums.java.net/jive/thread.jspa?messageID=368203