users@grizzly.java.net

Re: Grizzly+Comet question

From: Lillian Angel <langel_at_redhat.com>
Date: Thu, 4 Mar 2010 16:04:06 -0500

Do the versions have anything to do with this?
I am using the grizzly 1.9.19-beta libraries, and glassfish v2.

Thanks


On 2010-03-04, at 5:13 AM, Oleksiy Stashok wrote:

> Hi Lillian,
>
> I guess I need to see more source files, or understand the usecase better.
> Cause the first problem I see right away it's why servlet init is getting called 2 times?
>
> WBR,
> Alexey.
>
> On Mar 3, 2010, at 20:28 , Lillian Angel wrote:
>
>> By disable do you mean "remove"? I still get the same original error :(
>>
>> my web.xml:
>>
>> <servlet>
>> <servlet-name>GrizzlyErraiServlet</servlet-name>
>> <servlet-class>org.jboss.errai.bus.server.servlet.GrizzlyCometServlet</servlet-class>
>> <!-- <load-on-startup>0</load-on-startup> -->
>> </servlet>
>>
>>
>>
>> On 2010-03-03, at 12:47 PM, Oleksiy Stashok wrote:
>>
>>> Interesting...
>>>
>>> Lillian, did you try to disable "load-on-startup" for the servlet?
>>>
>>> WBR,
>>> Alexey.
>>>
>>> On Mar 2, 2010, at 17:40 , Lillian Angel wrote:
>>>
>>>> Hi,
>>>>
>>>> I am told you are the person I should be contacting for help :)
>>>>
>>>> I am creating a comet servlet for the Jboss Errai project. I am using Glassfish V2. I have enabled cometSupport in the domain.xml (the jmaki-comet demo works well!), but I keep running into the error below. I can't figure out why it is being thrown, as the thread invoking the methods all seem to be the same as well.
>>>>
>>>> To reproduce, I have uploaded the war here: http://langel.fedorapeople.org/errai-samples-store-1.1-SNAPSHOT.war
>>>>
>>>> I have modified org/jboss/errai/bus/server/servlet/GrizzlyCometServlet.java to print statements for every function it hits. Right now the code is pretty rough and most likely incorrect, but it is based on the grizzly+comet demo (http://docs.sun.com/app/docs/doc/820-4496/ggrgt?a=view) and should be working a bit better than it is now. See the error below.
>>>>
>>>>
>>>> If you have an insight, please share!
>>>>
>>>> Thanks a lot!
>>>> Lillian
>>>>
>>>>
>>>> [#|2010-03-02T11:02:29.447-0500|INFO|sun-appserver2.1|javax.enterprise.system.stream.out|_ThreadID=21;_ThreadName=httpWorkerThread-8080-0;|
>>>> 14 service !!!!!!!!!!!!!GET|#]
>>>> 15
>>>> 16 [#|2010-03-02T11:02:29.448-0500|INFO|sun-appserver2.1|javax.enterprise.system.stream.out|_ThreadID=21;_ThreadName=httpWorkerThread-8080-0;|
>>>> 17 doGet !!!!!!!!!!!!|#]
>>>> 18
>>>> 19 [#|2010-03-02T11:02:29.448-0500|INFO|sun-appserver2.1|javax.enterprise.system.stream.out|_ThreadID=21;_ThreadName=httpWorkerThread-8080-0;| 20 attach !!!!!!!!!!!!|#]
>>>>
>>>> 21 22 [#|2010-03-02T11:02:29.448-0500|SEVERE|sun-appserver2.1|javax.enterprise.system.container.web|_ThreadID=21;_Thre
>>>> adName=httpWorkerThread-8080-0;_RequestID=8e5691c7-2c78-4e1f-80c1-cee36fe1f247;|StandardWrapperValve[GrizzlyErraiServlet]: PWC1406: Servlet.service() for servlet GrizzlyErraiServlet threw exception
>>>> 23 java.lang.IllegalStateException: Make sure you have enabled Comet or make sure the Thread invoking that method i
>>>> s the same as the Servlet.service() Thread.
>>>> 24 at com.sun.grizzly.comet.CometContext.<clinit>(CometContext.java:183)
>>>> 25 at com.sun.grizzly.comet.CometEngine.register(CometEngine.java:285)
>>>> 26 at com.sun.grizzly.comet.CometEngine.register(CometEngine.java:260)
>>>> 27 at com.sun.grizzly.comet.CometEngine.register(CometEngine.java:245)
>>>> 28 at org.jboss.errai.bus.server.servlet.GrizzlyCometServlet.init(GrizzlyCometServlet.java:44)
>>>> 29 at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1100)
>>>> 30 at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1023)
>>>> 31 at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4969)
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
>>>> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
>>> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
>> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>