tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Muhammad Owais Ansari <owais.ans...@cyber.net.pk>
Subject RE: Tomcat thread is dying unexpectedly (Tomcat5.0.28, apache2.0.54 and mod_jk 1.2.5 connector on Solaris 8)
Date Mon, 06 Jun 2005 05:57:39 GMT
Issue Resolved:
It was not the issue of mod_jk or tomcat either. It's the issue of Unix
shell from where I was starting tomcat. The thing which works for me is to
run tomcat in CSH Shell and in background.

Dear Pierre & Aliye! Thanks a lot for your great support.

Regards,
Muhammad Owais Ansari


-----Original Message-----
From: M. Owais Ansari [mailto:owais.ansari@cyber.net.pk] 
Sent: Friday, June 03, 2005 9:46 AM
To: pierre-yves.3.landanger@bt.com; aliye.edao@siemens.com
Cc: tomcat-user@jakarta.apache.org
Subject: RE: Tomcat thread is dying unexpectedly (Tomcat5.0.28, apache2.0.54
and mod_jk 1.2.5 connector on Solaris 8)

Thanks for your response,
Yes the tomcat still dies with out apache might be because the configuration
for mod_jk are still there only the apache is shutdown.
below are the updated logs after changing in workers.properties, and
commenting out the following lines in server.xml

<!--
<Connector port="8082"
               maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
               enableLookups="false"
               acceptCount="100" debug="0" connectionTimeout="20000"
               proxyPort="80" disableUploadTimeout="true" />
-->

--------------------<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=2.5
#worker.exampWorker.cachesize=10
#worker.exampWorker.cache_timeout=600
#worker.exampWorker.socket_keepalive=1
#worker.exampWorker.socket_timeout=300


----------------<Tomcathome>/logs/localhost_log.2005-06-02.txt-------------
2005-06-02 17:46:05
StandardContext[/balancer]org.apache.webapp.balancer.BalancerFilter: init():
ruleChain: [org.apache.webapp.balancer.RuleChai
n: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News
/ Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.ru
les.RequestParameterRule: Target param name: paramName / Target param value:
paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webap
p.balancer.rules.AcceptEverythingRule: Redirect URL:
http://jakarta.apache.org]]
2005-06-02 17:46:22 StandardContext[/jsp-examples]ContextListener:
contextInitialized()
2005-06-02 17:46:22 StandardContext[/jsp-examples]SessionListener:
contextInitialized()
2005-06-02 17:46:23 StandardContext[/servlets-examples]ContextListener:
contextInitialized()
2005-06-02 17:46:23 StandardContext[/servlets-examples]SessionListener:
contextInitialized()
2005-06-02 18:09:40 StandardContext[/jsp-examples]ContextListener:
attributeReplaced('org.apache.catalina.WELCOME_FILES',
'[Ljava.lang.String;@5
75415')
2005-06-02 18:09:40 StandardContext[/jsp-examples]ContextListener:
attributeReplaced('org.apache.catalina.WELCOME_FILES',
'[Ljava.lang.String;@1
eb0')
2005-06-02 18:09:40 StandardContext[/jsp-examples]ContextListener:
attributeReplaced('org.apache.catalina.WELCOME_FILES',
'[Ljava.lang.String;@5
ee400')
2005-06-02 18:09:40 StandardContext[/jsp-examples]SessionListener:
contextDestroyed()
2005-06-02 18:09:40 StandardContext[/jsp-examples]ContextListener:
contextDestroyed()
2005-06-02 18:09:40 StandardContext[/servlets-examples]ContextListener:
attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.Stri
ng;@33319f')
2005-06-02 18:09:40 StandardContext[/servlets-examples]ContextListener:
attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.Stri
ng;@7ecd78')
2005-06-02 18:09:40 StandardContext[/servlets-examples]ContextListener:
attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.Stri
ng;@63849c')
2005-06-02 18:09:40 StandardContext[/servlets-examples]SessionListener:
contextDestroyed()
2005-06-02 18:09:40 StandardContext[/servlets-examples]ContextListener:
contextDestroyed()


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

[INFO] Http11Protocol - Initializing Coyote HTTP/1.1 on http-8080
[INFO] Catalina - Initialization processed in 10455 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, sectio
n 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/188
config=/export/home/tomcat5/conf/jk2.properties
[INFO] Catalina - Server startup in 27835 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.jav
a: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
/webdav
[INFO] StandardHostDeployer - Removing web application at context path /wifi
[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



-----Original Message-----
From: pierre-yves.3.landanger@bt.com [mailto:pierre-yves.3.landanger@bt.com]

Sent: Thursday, June 02, 2005 4:42 PM
To: owais.ansari@cyber.net.pk; tomcat-user@jakarta.apache.org
Subject: RE: Tomcat thread is dying unexpectedly (Tomcat5.0.28, apache2.0.54
and mod_jk 1.2.5 connector on Solaris 8)


Increase your log level to "DEBUG" everywhere you can, and then retry.

Is the application dying when you access your application directly on
tomcat (without using Apache) ?
			py
 

-----Original Message-----
From: Muhammad Owais Ansari [mailto:owais.ansari@cyber.net.pk] 
Sent: jeudi 2 juin 2005 11:55
To: tomcat-user@jakarta.apache.org
Subject: Tomcat thread is dying unexpectedly (Tomcat5.0.28, apache2.0.54
and mod_jk 1.2.5 connector on Solaris 8)
Hello there, 

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
.jav
a: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
 

Please help me to get out from this issue
Regards,
Muhammad Owais Ansari



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


Mime
View raw message