aspose file tools*
The moose likes Tomcat and the fly likes Unable to call event(CometEvent event) method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Unable to call event(CometEvent event) method" Watch "Unable to call event(CometEvent event) method" New topic
Author

Unable to call event(CometEvent event) method

abhi jitnag
Greenhorn

Joined: Oct 17, 2010
Posts: 13
Hi,

I have implemented CometProcessor in my TestComet java class and configure NIO connector in server.xml in Tomcat 7 accordingly.
When I am trying to hit the Servlet class through ajax, init() method of servlet is getting called but failed to call the
"event(CometEvent event)" method, rather it's calling service(HttpServletRequest request, HttpServletResponse response) method. It seems to me NIO is not configured properly. Could any one please suggest me where I went wrong.

The Servlet class :



Server.xml



URL I have hit through Browser :
http://localhost:8080/CometServerHome/TestComet

Response I received in Browser :
message You must be using the APR or NIO connector to get the event method called.
description The server encountered an internal error (You must be using the APR or NIO connector to get the event method called.) that prevented it from fulfilling this request.

In console
in init start
error

Please help me to resolve this problem.

 
Consider Paul's rocket mass heater.
 
subject: Unable to call event(CometEvent event) method