users@grizzly.java.net

grizzly-compat-1.8.0 problem report

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

Hello,

I am having some problems running the 1.8.0 with glassfish v2.

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

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.

What am I doing wrong?

Best,
-C.B.