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.
>
>
>
>
>
>
>
>
>