aspose file tools*
The moose likes Tomcat and the fly likes Tomcat service terminated unexpectedly (Tomcat5.0.28, apache2.0.54 and mod_jk 1.2.5) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat service terminated unexpectedly (Tomcat5.0.28, apache2.0.54 and mod_jk 1.2.5)" Watch "Tomcat service terminated unexpectedly (Tomcat5.0.28, apache2.0.54 and mod_jk 1.2.5)" New topic
Author

Tomcat service terminated unexpectedly (Tomcat5.0.28, apache2.0.54 and mod_jk 1.2.5)

M. Owais
Greenhorn

Joined: Jun 02, 2005
Posts: 1
I�ve tried to configure tomcat 5.0.28 with apache 2.0.54 through mod_jk connector (mod_jk.so used from file jakarta-tomcat-connectors-jk-1.2.5-solaris8-sparc-apache-2.0.47.tar.gz at jakarta.apache.org) on Solaris 5.8 (Solaris 8) platform but tomcat is dieing after some time with java.net.SocketException exception. Please help me to get out from this issue

Following are the logs and configuration files.

-----------------------------------<Tomcathome>/logs/Catalina.out----------------------------------------

[INFO] Http11Protocol - Initializing Coyote HTTP/1.1 on http-8080
[INFO] Http11Protocol - Initializing Coyote HTTP/1.1 on http-8082
[INFO] Catalina - Initialization processed in 10469 ms
[INFO] StandardService - Starting service Catalina
[INFO] StandardEngine - Starting Servlet Engine: Apache Tomcat/5.0.28
[INFO] StandardHost - XML validation disabled
[INFO] StandardHost - Create Host deployer for direct deployment ( non-jmx )
[INFO] StandardHostDeployer - Processing Context configuration file URL file:/export/home/tomcat5/conf/Catalina/localhost/balancer.xml
[INFO] StandardHostDeployer - Processing Context configuration file URL file:/export/home/tomcat5/conf/Catalina/localhost/admin.xml
[INFO] PropertyMessageResources - Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
[INFO] PropertyMessageResources - Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
[INFO] PropertyMessageResources - Initializing, config='org.apache.webapp.admin.ApplicationResources', returnNull=true
[INFO] StandardHostDeployer - Processing Context configuration file URL file:/export/home/tomcat5/conf/Catalina/localhost/manager.xml
[INFO] StandardHostDeployer - Processing Context configuration file URL file:/export/home/tomcat5/conf/Catalina/localhost/wifi.xml
[INFO] WebappClassLoader - validateJarFile(/export/home/webapps/WiFi/WEB-INF/lib/servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
[INFO] StandardHostDeployer - Installing web application at context path /jsp-examples from URL file:/export/home/tomcat5/webapps/jsp-examples
[INFO] StandardHostDeployer - Installing web application at context path from URL file:/export/home/tomcat5/webapps/ROOT
[INFO] StandardHostDeployer - Installing web application at context path /servlets-examples from URL file:/export/home/tomcat5/webapps/servlets-examples
[INFO] StandardHostDeployer - Installing web application at context path /tomcat-docs from URL file:/export/home/tomcat5/webapps/tomcat-docs
[INFO] StandardHostDeployer - Installing web application at context path /webdav from URL file:/export/home/tomcat5/webapps/webdav
[INFO] Http11Protocol - Starting Coyote HTTP/1.1 on http-8080
[INFO] ChannelSocket - JK2: ajp13 listening on /0.0.0.0:8009
[INFO] JkMain - Jk running ID=0 time=4/190 config=/export/home/tomcat5/conf/jk2.properties
[INFO] Http11Protocol - Starting Coyote HTTP/1.1 on http-8082
[INFO] Catalina - Server startup in 28234 ms
[INFO] Http11Protocol - Pausing Coyote HTTP/1.1 on http-8080
[WARN] ChannelSocket - Exception executing accept <java.net.SocketException: Software caused connection abort>java.net.SocketException: Software
caused connection abort
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:463)
at java.net.ServerSocket.implAccept(ServerSocket.java:238)
at java.net.ServerSocket.accept(ServerSocket.java:217)
at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:847)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:479)

[INFO] StandardService - Stopping service Catalina
[INFO] StandardHostDeployer - Removing web application at context path /tomcat-docs
[INFO] StandardHostDeployer - Removing web application at context path /admin
[INFO] LoggerBase - unregistering logger Catalina:type=Logger,path=/admin,host=localhost
[INFO] StandardHostDeployer - Removing web application at context path /jsp-examples
[INFO] StandardHostDeployer - Removing web application at context path /billing
[INFO] StandardHostDeployer - Removing web application at context path /webdav
[INFO] StandardHostDeployer - Removing web application at context path /servlets-examples
[INFO] StandardHostDeployer - Removing web application at context path /balancer
[INFO] StandardHostDeployer - Removing web application at context path /manager
[INFO] StandardHostDeployer - Removing web application at context path
[INFO] LoggerBase - unregistering logger Catalina:type=Logger,host=localhost
[INFO] LoggerBase - unregistering logger Catalina:type=Logger
[INFO] Http11Protocol - Stopping Coyote HTTP/1.1 on http-8080




-----------------------------------<Tomcathome>/conf/workers.properties ----------------------------------------
# Define 1 real worker using ajp13
worker.list=exampWorker
# Set properties for worker1 (ajp13)
worker.exampWorker.type=ajp13
worker.exampWorker.host=127.0.0.1
worker.exampWorker.port=8009
worker.exampWorker.lbfactor=50
worker.exampWorker.cachesize=10
worker.exampWorker.cache_timeout=600
worker.exampWorker.socket_keepalive=1
worker.exampWorker.socket_timeout=300


-----------------------------------<Tomcathome>/conf/server.xml----------------------------------------

<Connector port="8009" protocol="AJP/1.3"
protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"
redirectPort="8443">
</Connector>


-----------------------------------<apachehome>/conf/workers.properties----------------------------------------
[shm]
file=/export/home/tomcat5/logs/jk.shm
size=1048576

[channel.socket:localhost:8009]
port=8009
host=127.0.0.1
#tomcatId=127.0.0.1:8009
info=Ajp13 forwarding over socket

# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009

#[uri:/jsp-examples]
#[uri:/servlets-examples]
#[uri:/myWebApp]

[logger.file:0]
level=DEBUG
file=/export/home/apache2/logs/jk.log


-----------------------------------<apachehome>/conf/httpd.conf----------------------------------------
LoadModule jk_module modules/mod_jk.so
JkWorkersFile /export/home/tomcat5/conf/workers.properties
JkLogFile /export/home/tomcat5/logs/mod_jk.log
JkLogLevel info
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkMount /jsp-examples/* exampWorker
JkMount /servlets-examples/* exampWorker
JkMount /myWebApp/* exampWorker
 
wood burning stoves
 
subject: Tomcat service terminated unexpectedly (Tomcat5.0.28, apache2.0.54 and mod_jk 1.2.5)