*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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.

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Unable to call event(CometEvent event) method
 
Similar Threads
JNDI in Servlets
Tomcat NIO configuration in server.xml does not improve concurrent behaviour
Redirecting to HTTPS
problem in starting tomcat with eclipse
Cannot Connect to database using datasource realm