Salut,
Cam Bazz wrote:
> allright... that made my day. but this is what I dont understand: what
> is the glassfish-compat-1.8.0 for?
Sorry for the confusion.
It is needed when you have written a Comet application agains GlassFish
v2 and you want to run your application in GlassFish v3 without having
to recompile your application.
v2: com.sun.enterprise.web.connector.grizzly
v3: com.sun.grizzly
So to deploy a v2 application in v3, you must add the grizzly-compat.jar
to WEB-INF/lib (or use a recent b3 build).
Thanks
-- Jeanfrancois
>
> Best,
>
> On Wed, Jul 2, 2008 at 6:31 PM, Jeanfrancois Arcand
> <Jeanfrancois.Arcand_at_sun.com <mailto: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
> <mailto:users-unsubscribe_at_grizzly.dev.java.net>
> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
> <mailto:users-help_at_grizzly.dev.java.net>
>
>