tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ben Xiong" <xpsl...@gmail.com>
Subject Re: NIO connecter does not work after startup normally
Date Tue, 09 Nov 2010 06:25:34 GMT
?Another case:

Web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns="http://java.sun.com/xml/ns/javaee" 
xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
    id="WebApp_ID" version="3.0">
    <display-name>TomcatComet</display-name>
    <servlet>
        <servlet-name>s3</servlet-name>
        <servlet-class>comet.Servlet3</servlet-class>
        <async-supported>true</async-supported>
    </servlet>
    <servlet-mapping>
        <servlet-name>s3</servlet-name>
        <url-pattern>/s3</url-pattern>
    </servlet-mapping>
</web-app>

comet.Servlet3 source code:

package comet;

import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class Servlet3 extends HttpServlet {

    public void doGet(HttpServletRequest req, HttpServletResponse res) {
        req.startAsync(req, res);
        System.out.println("=============Finally, it works! 
====================");
    }
}

Server startup log:

INFO: SessionListener: contextInitialized()
Nov 9, 2010 2:24:13 PM org.apache.catalina.startup.HostConfig 
deployDirectory
INFO: Deploying web application directory host-manager
Nov 9, 2010 2:24:13 PM org.apache.catalina.startup.HostConfig 
deployDirectory
INFO: Deploying web application directory manager
Nov 9, 2010 2:24:13 PM org.apache.catalina.startup.HostConfig 
deployDirectory
INFO: Deploying web application directory ROOT
Nov 9, 2010 2:24:13 PM org.apache.coyote.http11.Http11NioProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Nov 9, 2010 2:24:14 PM org.apache.coyote.ajp.AjpAprProtocol start
INFO: Starting Coyote AJP/1.3 on ajp-8009
Nov 9, 2010 2:24:14 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1586 ms

URL: http://localhost:8080/TomcatComet/s3

Exception:

INFO: Server startup in 1586 ms
Nov 9, 2010 2:24:50 PM 
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor run
SEVERE:
java.lang.StackOverflowError
    at 
org.apache.catalina.connector.RequestFacade.startAsync(RequestFacade.java:1031)
    at 
org.apache.catalina.connector.RequestFacade.startAsync(RequestFacade.java:1031)
    at 
org.apache.catalina.connector.RequestFacade.startAsync(RequestFacade.java:1031)
    at 
org.apache.catalina.connector.RequestFacade.startAsync(RequestFacade.java:1031)
    at 
org.apache.catalina.connector.RequestFacade.startAsync(RequestFacade.java:1031)
    at 
org.apache.catalina.connector.RequestFacade.startAsync(RequestFacade.java:1031)
    at 
org.apache.catalina.connector.RequestFacade.startAsync(RequestFacade.java:1031)
    at 
org.apache.catalina.connector.RequestFacade.startAsync(RequestFacade.java:1031)
    ......

Same Win 7 64 bit, native connecter, tomcat 7.0.4, :(

-----Original Message----- 
From: Caldarale, Charles R
Sent: Tuesday, November 09, 2010 2:12 PM
To: Tomcat Users List
Subject: RE: NIO connecter does not work after startup normally

> From: Ben Xiong [mailto:xpslive@gmail.com]
> Subject: NIO connecter does not work after startup normally

> Anyone can help?

Not unless you tell us the version of Tomcat, the JVM, and the platform 
you're running on.

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message