users@grizzly.java.net

Re: grizzly-compat-1.8.0 problem report

From: Cam Bazz <cambazz_at_gmail.com>
Date: Wed, 2 Jul 2008 18:34:51 +0300

allright... that made my day. but this is what I dont understand: what is
the glassfish-compat-1.8.0 for?

Best,

On Wed, Jul 2, 2008 at 6:31 PM, Jeanfrancois Arcand <
Jeanfrancois.Arcand_at_sun.com> wrote:

> Salut,
>
> Cam Bazz wrote:
>
>> Hello,
>>
>> I am having some problems running the 1.8.0 with glassfish v2.
>>
>
> You cannot run 1.8.0 with GlassFish v2. With GF v2, you must use Grizzly
> 1.0.x (1.0.20 is the latest):
>
> http://download.java.net/maven/1/grizzly/jars/
>
>
>
>> Here is what happens:
>>
>> I have the following libs in my classpath:
>>
>> grizzly-compat-1.8.0.jar
>> grizzly-comet-webserver-1.8.0.jar
>> grizzly-framework-.1.8.0.jar
>> grizzly-http-1.8.0.jar
>> grizzly-http-utils-1.8.0.jar
>>
>> I have the same libs under glassfish/libs - just in case.
>>
>> my import statements read:
>>
>> import com.sun.grizzly.comet.CometContext;
>> import com.sun.grizzly.comet.CometEngine;
>> import com.sun.grizzly.comet.CometEvent;
>> import com.sun.grizzly.comet.CometHandler;
>>
>> (no com.sun.enterprise.* ...)
>>
>
> That's the issue :-) With GlassFish v2, you must use com.sun.enterprise....
> I will clarify that one the main page :-)
>
>
>
>> unfortunately I am getting java.lang.IllegalStateException: Grizzly Comet
>> hasn't been registered
>> when the servlet doGet method invokes context.addCometHandler(handler)
>>
>> now if I:
>>
>> remove all the libs, and
>> add appserv-rt.jar to classpath,
>> and delete the import statements and put
>>
>> import com.sun.enterprise.web.connector.grizzly.comet.*;
>>
>> it will work. but buggy. onInterrupt wont fire all the time.
>>
>
> Can you share a test case when onInterrupt isn't invoked? Which browser are
> you using.
>
> Thanks
>
> -- Jeanfrancois
>
>
>
>
>> What am I doing wrong?
>>
>> Best,
>> -C.B.
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>
>