I appreciate your feedback, it led me to the problem. My environment was setup using an invoker servlet. It didn't occur to me to explicitly map the Comet servlet. Once I made the entry in web.xml I was able to see the results you provided.
Cheers! Anthony -----Original Message----- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2008 2:37 PM To: Tomcat Users List Subject: Re: Setting up Comet on Tomcat 6 I took your servlet, compiled it, put it in WEB-INF/classes/testing/comet then in web.xml I put <servlet> <servlet-name>testcomet</servlet-name> <servlet-class>testing.comet.CometConnection</servlet-class> </servlet> <servlet-mapping> <servlet-name>testcomet</servlet-name> <url-pattern>/comet</url-pattern> </servlet-mapping> server.xml has <Connector port="8080" protocol="org.apache.coyote.http11.Http11NioProtocol" connectionTimeout="10000" tomcatAuthentication="false" keepaliveTimeout="5000" backlog="50" maxThreads="300" /> hit http://localhost:8080/comet with my browser, output is Comet test servlet initialized. Comet test initialized. Received event BEGIN Filip Talal Rabaa wrote: > package testing.comet; > > import java.io.IOException; > > import javax.servlet.ServletException; > import javax.servlet.http.HttpServlet; > import javax.servlet.http.HttpServletRequest; > import javax.servlet.http.HttpServletResponse; > > import org.apache.catalina.CometEvent; > import org.apache.catalina.CometProcessor; > > public class CometConnection extends HttpServlet implements CometProcessor > { > public CometConnection() > { > System.err.println("Comet test servlet initialized."); > } > > public void init() > { > System.err.println("Comet test initialized."); > } > > public void doGet(HttpServletRequest request, HttpServletResponse > response) throws IOException > { > System.err.println("doGet called."); > } > > public void doPost(HttpServletRequest request, HttpServletResponse > response) throws IOException > { > System.err.println("doPost called."); > } > > public void event(CometEvent cometEvent) throws IOException, > ServletException > { > System.err.println("Received event " + > cometEvent.getEventType().toString()); > } > > protected void service(HttpServletRequest request, HttpServletResponse > response) throws ServletException, IOException > { > > response.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR, "You must be > using the APR or NIO connector to get the event method called."); > } > } > > -----Original Message----- > From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 30, 2008 1:28 PM > To: Tomcat Users List > Subject: Re: Setting up Comet on Tomcat 6 > > send us your test class > > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]