Thanks for response. The first server on I install tomcat 5.5.28 is win2003 server and after I install jboss on win2008 server . All server have 32bit SO and i don't have a firewall . I disenable all firewall, all antivirus.
I suppose that two different errors regard different JVM and/or Application server (first Tomct 5.5.28 on win2003 and after Jboss4.2.3GA on win2008) At any rate i have now only log by Tomcat 5.5.28 under win2003: The log is: 19-apr-2010 7.14.40 org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\tomcat6\Tomcat 6.0\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C: \Windows;C:\oracle\product\10.2.0\client_3\bin;C:\oracle\product\10.2.0 \client_1;C:\oracle\product\10.2.0\client_2;C:\Windows\system32;C:\Windows;C: \Windows\System32\Wbem;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C: \Program Files\Microsoft SQL Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\ 19-apr-2010 7.14.40 org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-80 19-apr-2010 7.14.40 org.apache.catalina.startup.Catalina load INFO: Initialization processed in 334 ms 19-apr-2010 7.14.40 org.apache.catalina.core.StandardService start INFO: Starting service Catalina 19-apr-2010 7.14.40 org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.26 19-apr-2010 7.14.40 org.apache.catalina.startup.HostConfig deployDescriptor INFO: Deploying configuration descriptor manager.xml 19-apr-2010 7.14.40 org.apache.catalina.startup.HostConfig deployDescriptor INFO: Deploying configuration descriptor probe.xml 19-apr-2010 7.14.40 org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory docs 19-apr-2010 7.14.40 org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory SIT 19-apr-2010 7.14.40 org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory SVILUPPO 19-apr-2010 7.14.40 org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-80 19-apr-2010 7.14.40 org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 19-apr-2010 7.14.40 org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/16 config=null 19-apr-2010 7.14.40 org.apache.catalina.startup.Catalina start INFO: Server startup in 641 ms 19-apr-2010 7.23.01 org.apache.tomcat.util.net.JIoEndpoint$Acceptor run GRAVE: Socket accept failed java.net.SocketException: socket closed at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.PlainSocketImpl.accept(Unknown Source) at java.net.ServerSocket.implAccept(Unknown Source) at java.net.ServerSocket.accept(Unknown Source) at org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket (DefaultServerSocketFactory.java:61) at org.apache.tomcat.util.net.JIoEndpoint$Acceptor.run(JIoEndpoint.java:352) at java.lang.Thread.run(Unknown Source) 19-apr-2010 7.23.01 org.apache.tomcat.util.net.JIoEndpoint$Acceptor run GRAVE: Socket accept failed java.net.SocketException: socket closed at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.PlainSocketImpl.accept(Unknown Source) at java.net.ServerSocket.implAccept(Unknown Source) at java.net.ServerSocket.accept(Unknown Source) at org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket (DefaultServerSocketFactory.java:61) at org.apache.tomcat.util.net.JIoEndpoint$Acceptor.run(JIoEndpoint.java:352) at java.lang.Thread.run(Unknown Source) 19-apr-2010 7.26.48 org.apache.tomcat.util.net.JIoEndpoint$Acceptor run GRAVE: Socket accept failed java.net.SocketException: socket closed at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.PlainSocketImpl.accept(Unknown Source) at java.net.ServerSocket.implAccept(Unknown Source) at java.net.ServerSocket.accept(Unknown Source) at org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket (DefaultServerSocketFactory.java:61) at org.apache.tomcat.util.net.JIoEndpoint$Acceptor.run(JIoEndpoint.java:352) at java.lang.Thread.run(Unknown Source) 19-apr-2010 7.35.29 org.apache.tomcat.util.net.JIoEndpoint$Acceptor run GRAVE: Socket accept failed java.net.SocketException: socket closed at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.PlainSocketImpl.accept(Unknown Source) at java.net.ServerSocket.implAccept(Unknown Source) at java.net.ServerSocket.accept(Unknown Source) at org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket (DefaultServerSocketFactory.java:61) at org.apache.tomcat.util.net.JIoEndpoint$Acceptor.run(JIoEndpoint.java:352) at java.lang.Thread.run(Unknown Source) 19-apr-2010 7.38.56 org.apache.tomcat.util.net.JIoEndpoint$Acceptor run GRAVE: Socket accept failed java.net.SocketException: socket closed at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.PlainSocketImpl.accept(Unknown Source) at java.net.ServerSocket.implAccept(Unknown Source) at java.net.ServerSocket.accept(Unknown Source) at org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket (DefaultServerSocketFactory.java:61) at org.apache.tomcat.util.net.JIoEndpoint$Acceptor.run(JIoEndpoint.java:352) at java.lang.Thread.run(Unknown Source) 19-apr-2010 7.38.56 org.apache.tomcat.util.net.JIoEndpoint$Acceptor run GRAVE: Socket accept failed java.net.SocketException: socket closed at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.PlainSocketImpl.accept(Unknown Source) at java.net.ServerSocket.implAccept(Unknown Source) at java.net.ServerSocket.accept(Unknown Source) at org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket (DefaultServerSocketFactory.java:61) at org.apache.tomcat.util.net.JIoEndpoint$Acceptor.run(JIoEndpoint.java:352) at java.lang.Thread.run(Unknown Source) ...... Now i use jboss so the error that i have on win2008 server is : 010-05-17 12:53:24,112 ERROR [org.apache.tomcat.util.net.JIoEndpoint] Socket >> accept failed >> java.net.SocketException: socket closed >> at java.net.PlainSocketImpl.socketAccept(Native Method) >> at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:390) >> at java.net.ServerSocket.implAccept(ServerSocket.java:453) >> at java.net.ServerSocket.accept(ServerSocket.java:421) >> at org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket >> (DefaultServerSocketFactory.java:61) >> at org.apache.tomcat.util.net.JIoEndpoint$Acceptor.run(JIoEndpoint.java: 309) >> at java.lang.Thread.run(Thread.java:619) >> 2010-05-17 12:53:24,127 ERROR [org.apache.tomcat.util.net.JIoEndpoint] Socket >> accept failed. But don't have a intere log file. May be IPV6? I don't disinstall this protocol becuse is important on win2008, but i hve clent that use IPV4. Have you n idea? How can resolve problem. Plese is imporatnt for me? Best regards Agostino >----Messaggio originale---- >Da: p...@pidster.com >Data: 22/05/2010 12.47 >A: "Tomcat Users List"<users@tomcat.apache.org> >Ogg: Re: intermittent SocketException on startup tomcat 5.5.28 and under JBOSS 4.2.3GA > >On 22/05/2010 09:28, ago...@libero.it wrote: >> Good Morning >> >> Excuse for my poor english >> >> I have a strange error that occours on startup and after some minutes this >> cause the block of my appliction, only stop webserver from lot minutes or >> restart server sometime resolve the problem. But often the problem persist. >> >> In Short: >> I have a web appliction deployed initially under tomcat 5.5.28 (with jre- >> 1_5_0_22 and SO win2003 Server 32 bit) that sometimes cause specially on >> startup the follow error: >> >> 17-apr-2010 7.00.49 org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket >> GRAVE: Endpoint [SSL: ServerSocket[addr=0.0.0.0/0.0.0.0,port=0, localport=443]] >> ignored exception: java.net.SocketException: socket closed >> java.net.SocketException: socket closed >> at java.net.PlainSocketImpl.socketAccept(Native Method) >> at java.net.PlainSocketImpl.accept(Unknown Source) >> at java.net.ServerSocket.implAccept(Unknown Source) >> at com.sun.net.ssl.internal.ssl.SSLServerSocketImpl.accept(Unknown Source) >> at org.apache.tomcat.util.net.jsse.JSSESocketFactory.acceptSocket >> (JSSESocketFactory.java:117) >> at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint. >> java:408) >> at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt >> (LeaderFollowerWorkerThread.java:71) >> at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run (ThreadPool. >> java:689) >> at java.lang.Thread.run(Unknown Source) >> 17-apr-2010 7.01.10 org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket >> AVVERTENZA: Reinitializing ServerSocket >> 17-apr-2010 7.52.33 org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket >> GRAVE: Endpoint [SSL: ServerSocket[addr=0.0.0.0/0.0.0.0,port=0, localport=443]] >> ignored exception: java.net.SocketException: socket closed >> java.net.SocketException: socket closed >> at java.net.PlainSocketImpl.socketAccept(Native Method) >> at java.net.PlainSocketImpl.accept(Unknown Source) >> at java.net.ServerSocket.implAccept(Unknown Source) >> at com.sun.net.ssl.internal.ssl.SSLServerSocketImpl.accept(Unknown Source) >> at org.apache.tomcat.util.net.jsse.JSSESocketFactory.acceptSocket >> (JSSESocketFactory.java:117) >> at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint. >> java:408) >> at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt >> (LeaderFollowerWorkerThread.java:71) >> at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run (ThreadPool. >> java:689) >> at java.lang.Thread.run(Unknown Source) >> 17-apr-2010 7.52.54 org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket >> AVVERTENZA: Reinitializing ServerSocket >> 17-apr-2010 7.52.55 org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket >> GRAVE: Endpoint [SSL: ServerSocket[addr=0.0.0.0/0.0.0.0,port=0, localport=443]] >> ignored exception: java.net.SocketException: socket closed >> java.net.SocketException: socket closed >> at java.net.PlainSocketImpl.socketAccept(Native Method) >> at java.net.PlainSocketImpl.accept(Unknown Source) >> at java.net.ServerSocket.implAccept(Unknown Source) >> at com.sun.net.ssl.internal.ssl.SSLServerSocketImpl.accept(Unknown Source) >> at org.apache.tomcat.util.net.jsse.JSSESocketFactory.acceptSocket >> (JSSESocketFactory.java:117) >> at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint. >> java:408) >> at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt >> (LeaderFollowerWorkerThread.java:71) >> at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run (ThreadPool. >> java:689) >> at java.lang.Thread.run(Unknown Source) >> 17-apr-2010 7.53.16 org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket >> AVVERTENZA: Reinitializing ServerSocket >> 17-apr-2010 7.53.17 org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket >> GRAVE: Endpoint [SSL: ServerSocket[addr=0.0.0.0/0.0.0.0,port=0, localport=443]] >> ignored exception: java.net.SocketException: socket closed >> java.net.SocketException: socket closed >> at java.net.PlainSocketImpl.socketAccept(Native Method) >> at java.net.PlainSocketImpl.accept(Unknown Source) >> at java.net.ServerSocket.implAccept(Unknown Source) >> at com.sun.net.ssl.internal.ssl.SSLServerSocketImpl.accept(Unknown Source) >> at org.apache.tomcat.util.net.jsse.JSSESocketFactory.acceptSocket >> (JSSESocketFactory.java:117) >> at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint. >> java:408) >> at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt >> (LeaderFollowerWorkerThread.java:71) >> at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run (ThreadPool. >> java:689) >> at java.lang.Thread.run(Unknown Source) >> 17-apr-2010 7.53.38 org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket >> AVVERTENZA: Reinitializing ServerSocket >> 17-apr-2010 7.53.39 org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket >> GRAVE: Endpoint [SSL: ServerSocket[addr=0.0.0.0/0.0.0.0,port=0, localport=443]] >> ignored exception: java.net.SocketException: socket closed >> java.net.SocketException: socket closed >> at java.net.PlainSocketImpl.socketAccept(Native Method) ..... >> >> in tomcat server.xml i have configured 2 connector: one su port 80 and other >> on port 443, The connectors configuration is: >> >> Connector port="80" maxHttpHeaderSize="8192" >> maxThreads="350" minSpareThreads="25" maxSpareThreads="100" >> enableLookups="false" redirectPort="443" acceptCount="100" >> connectionTimeout="20000" disableUploadTimeout="true" /> >> ....... >> >> <Connector port="443" maxHttpHeaderSize="8192" >> maxThreads="150" minSpareThreads="25" maxSpareThreads="75" >> enableLookups="false" disableUploadTimeout="true" >> acceptCount="100" scheme="https" secure="true" >> clientAuth="false" sslProtocol="TLS" >> keystoreFile="C:\CertificatiHTTPS\aaa.pfx" >> keystorePass="xxx" >> keystoreType="PKCS12" >> /> >> >> This problem never occours in the past but arise after we transfer the router >> from site to another. After this transfer sometime occours the error, It's >> strange. The HW,SW is the same and number of Users is bout the same. >> >> So we think to upgrade in tecnology and after installed jdk 1.6.16 and JBOSS4. >> 2.3 and deployed the same web application the problem sometime occours >> (specially in first 5 minutes on startup.. NOTE in jBOSS we change >> JAVA_OPTIONS : -Xms384m -Xmx1024m -XX:MaxPermSize=128m only ) the error is: >> >> 010-05-17 12:53:24,112 ERROR [org.apache.tomcat.util.net.JIoEndpoint] Socket >> accept failed >> java.net.SocketException: socket closed >> at java.net.PlainSocketImpl.socketAccept(Native Method) >> at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:390) >> at java.net.ServerSocket.implAccept(ServerSocket.java:453) >> at java.net.ServerSocket.accept(ServerSocket.java:421) >> at org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket >> (DefaultServerSocketFactory.java:61) >> at org.apache.tomcat.util.net.JIoEndpoint$Acceptor.run(JIoEndpoint.java: 309) >> at java.lang.Thread.run(Thread.java:619) >> 2010-05-17 12:53:24,127 ERROR [org.apache.tomcat.util.net.JIoEndpoint] Socket >> accept failed >> >> in this case we have the same configuration of tomcat connector under jboss >> (file C:\jboss-4.2.3.GA\server\default\deploy\jboss-web.deployer\server. xml): >> >> <Connector port="80" address="${jboss.bind.address}" >> minSpareThreads="25" maxSpareThreads="100" >> maxThreads="350" maxHttpHeaderSize="8192" >> emptySessionPath="true" protocol="HTTP/1.1" >> enableLookups="false" redirectPort="443" acceptCount="200" >> connectionTimeout="20000" disableUploadTimeout="true" /> >> .... >> <Connector port="443" protocol="HTTP/1.1" SSLEnabled="true" >> minSpareThreads="25" maxSpareThreads="100" >> maxThreads="250" scheme="https" secure="true" >> clientAuth="false" sslProtocol="TLS" >> keystoreFile="C:\CertificatiHTTPS\aaa.pfx" >> keystorePass="xxx" >> keystoreType="PKCS12" >> /> >> >> Can anyone help me because the problem is present in production enviroment. > > >If I'm reading the stack trace correctly, the listening socket is being >closed shortly after being opened. Do you have a firewall that is >blocking the port perhaps? > >If you start a completely new log file, what messages appear before the >error appears? > > >p > >> thanks a lot for every hint . >> >> Agostino >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >> For additional commands, e-mail: users-h...@tomcat.apache.org >> > > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org