Could you elaborate a bit? What version of grizzly exactly? And why are
you using grizzly *and* tomcat? In general, though, make sure that
you've add an AsyncHandler to your SelectorThread and added the
CometAsyncHandler to that.
On 5/8/11 4:46 AM, ³Â¾ü wrote:
> hi.
> I tried grizzly-comet-chat1.9.10 samples, and I couldn't getit work.
> I am using eclipse 3.4¡¢tomcat6 ¡¢grizzly v1.90 and jdk1.7
>
> I am getting this message allthe time:
> java.lang.IllegalStateException: Make sure you have enabled Comet or make sure the Thread invoking that method is the same as the Servlet.service() Thread.
>
>
> How can I enable with tomcat?
> or it Does not support Tomcat?