Thanks for the quick response!
The code snip 
<!--
<Connector port="8082"
               maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
               enableLookups="false"
               acceptCount="100" debug="0" connectionTimeout="20000"
               proxyPort="80" disableUploadTimeout="true" />
-->
is already commented.

Regards,
Muhammad Owais Ansari

-----Original Message-----
From: Edao, Aliye [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 02, 2005 3:32 PM
To: M. Owais Ansari
Cc: Tomcat Users List
Subject: AW: Tomcat dying unexpectedly (Tomcat5.0.28, apache2.0.54 and mod_jk 
1.2.5 on Solaris 8)

Hi,

It seems that you are starting http on 2 Ports but you have just 1 instance of 
Tomcat??
Go to CATALINA_HOME/conf and edit server.xml --> comment out the block were you 
have Port 8082 and restart Tomcat.

Hope that helps...

************************************
Mit freundlichem Gruß / kind regards

Dr. Aliye Edao          
 



-----Ursprüngliche Nachricht-----
Von: M. Owais Ansari [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 2. Juni 2005 11:58
An: tomcat-user@jakarta.apache.org
Betreff: Tomcat dying unexpectedly (Tomcat5.0.28, apache2.0.54 and mod_jk 1.2.5 
on Solaris 8)


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 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to