tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ben Xiong" <xpsl...@gmail.com>
Subject NIO connecter does not work after startup normally
Date Tue, 09 Nov 2010 04:18:36 GMT
?Hi there,

First here is the output of the startup:
Nov 9, 2010 12:14:08 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory docs
Nov 9, 2010 12:14:08 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory examples
Nov 9, 2010 12:14:08 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Nov 9, 2010 12:14:08 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Nov 9, 2010 12:14:08 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory host-manager
Nov 9, 2010 12:14:08 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory manager
Nov 9, 2010 12:14:08 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory ROOT
Nov 9, 2010 12:14:08 PM org.apache.coyote.http11.Http11NioProtocol start==========
INFO: Starting Coyote HTTP/1.1 on http-8080
Nov 9, 2010 12:14:08 PM org.apache.coyote.ajp.AjpAprProtocol start
INFO: Starting Coyote AJP/1.3 on ajp-8009
Nov 9, 2010 12:14:08 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 12744 ms

Notice that the Http11NioProtocol started on port 8080. Now when I try to write my own @WebServlet,

OR run cometd demo from cometd.org, the same errors happened:

Nov 9, 2010 12:14:10 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [cometd] in context with path [/cometd-demo-2.1.0.beta1]
threw exception
java.lang.IllegalStateException: Not supported.
    at org.apache.catalina.connector.Request.startAsync(Request.java:1593)
    at org.apache.catalina.connector.Request.startAsync(Request.java:1586)
    at org.apache.catalina.connector.RequestFacade.startAsync(RequestFacade.java:1024)
    at org.eclipse.jetty.continuation.Servlet3Continuation.suspend(Servlet3Continuation.java:171)
    at org.cometd.server.transport.LongPollingTransport.handle(LongPollingTransport.java:254)
    at org.cometd.server.CometdServlet.service(CometdServlet.java:152)
    at org.cometd.server.CometdServlet.service(CometdServlet.java:121)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    at org.eclipse.jetty.servlets.CrossOriginFilter.handle(CrossOriginFilter.java:186)
    at org.eclipse.jetty.servlets.CrossOriginFilter.doFilter(CrossOriginFilter.java:158)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:242)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:203)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:108)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:558)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:379)
    at org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:386)
    at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:373)
    at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1526)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:662)

Anyone can help? Thank you.

Ben
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message