Pid
Mon, 08 Feb 2010 07:07:50 -0800
Again, reply to the list only, please. I will not respond to future emails sent directly to me. Comments removed: On 08/02/2010 14:40, munirathina...@gmail.com wrote:
server.xml: <?xml version='1.0' encoding='utf-8'?>
<Server port="8006" shutdown="SHUTDOWN"> <!--before it was 8005, Ravi changed it -->
Did Ravi change it without stopping the server?If Ravi changed it without stopping the server first, then when you try to stop the server the Tomcat process will be looking for the wrong port to send the shutdown command to.
Additional comments inline, below.
<Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" /> <Listener className="org.apache.catalina.core.JasperListener" /> <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" /> <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" /> <GlobalNamingResources>
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
pathname="conf/tomcat-users.xml" />
</GlobalNamingResources>
<Service name="Catalina">
<Executor name="tomcatThreadPool" namePrefix="catalina-exec-"
maxThreads="400" minSpareThreads="4" maxSpareThreads="100" />
<Connector executor="tomcatThreadPool"
port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
<Connector protocol="AJP/1.3" redirectPort="443" scheme="http" secure="false" address="empower.mybiz24by7.com" port="8008" />
<Connector protocol="AJP/1.3" redirectPort="443" scheme="https" secure="true" address="empower.mybiz24by7.com" port="8009" />
The redirect port here is not needed.
<Connector debug="0" enableLookups="false" port="8009" protocol="AJP/1.3"
redirectPort="8443"/>
This connector appears to clash with the one above.It might work, or it might not, but I'd recommend explicitly setting the address on each Connector if you are using multiple Connectors on the same port number.
<Engine name="Catalina" defaultHost="216.205.107.50">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase"/>
I would suggest that the UserDatabaseRealm shouldn't really be used in production environments.
<Host name="216.205.107.50" appBase="gateway"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<Listener className = "org.apache.jk.config.ApacheConfig" workersConfig="conf/workers.properties"
mod_Jk="D:/Apache2.2/modules/mod_jk.so" jkLog="logs/mod_jk.log" jkDebug="info" noRoot="false"/>
This listener is inside of a Host and is probably wrong.My reading of the docs suggests that this might be an incorrect location for this Listener. See below.
</Host>
<Host name="account.mybiz24by7.com" appBase="mybizadmin"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<Listener className = "org.apache.jk.config.ApacheConfig" workersConfig="conf/workers.properties"
mod_Jk="D:/Apache2.2/modules/mod_jk.so" jkLog="logs/mod_jk.log" jkDebug="info" noRoot="false"/>
Ditto.
</Host>
<Host name="support.mybiz24by7.com" appBase="mybizsupport"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<Listener className = "org.apache.jk.config.ApacheConfig" workersConfig="conf/workers.properties"
mod_Jk="D:/Apache2.2/modules/mod_jk.so" jkLog="logs/mod_jk.log" jkDebug="info" noRoot="false"/>
Ditto.
</Host>
<Listener className = "org.apache.jk.config.ApacheConfig" workersConfig="conf/workers.properties"
mod_Jk="D:/Apache2.2/modules/mod_jk.so" jkLog="logs/mod_jk.log" jkDebug="info" noRoot="false"/>
This listener is outside of a Host.I think this is the most likely accurate location for this Listener - but I'm sure others will correct me if not.
</Engine>
</Service>
<Listener className = "org.apache.jk.config.ApacheConfig" workersConfig="conf/workers.properties"
mod_Jk="D:/Apache2.2/modules/mod_jk.so" jkLog="logs/mod_jk.log" jkDebug="info" noRoot="false"/>
This listener is outside of the Service and is probably wrong.
</Server> context.xml:
Which context.xml, conf/context.xml or one from your application app/META-INF/context.xml?
<?xml version='1.0' encoding='utf-8'?>
<Context>
<WatchedResource>WEB-INF/web.xml</WatchedResource>
<Resource name="jdbc/vehrentDB" auth="Container"
type="javax.sql.DataSource"
maxActive="100"
maxIdle="30"
username="****" password="****"
driverClassName="com.microsoft.sqlserver.jdbc.SQLServerDriver"
url="jdbc:sqlserver://216.205.107.204:1433;
databaseName=VEHRENT;user=****;password=****;"
Is the whitespace in the url attribute, above, allowed? Should the username and password be duplicated in the resource definition?
numTestsPerEvictionRun="15"
timeBetweenEvictionRunsMillis="900000"
minEvictableIdleTimeMillis="900000"
testWhileIdle="true"
testOnBorrow="false"
removeAbandoned="true"
removeAbandonedTimeout="300"
logAbandoned="true"
/>
<Resource name="jdbc/empowerDB" auth="Container"
type="javax.sql.DataSource"
maxActive="100"
maxIdle="30"
username="****" password="****"
driverClassName="com.microsoft.sqlserver.jdbc.SQLServerDriver"
url="jdbc:sqlserver://216.205.107.204:1433;databaseName=EMPOWER;user=****;password=****;"
As above. p
numTestsPerEvictionRun="15" timeBetweenEvictionRunsMillis="900000" minEvictableIdleTimeMillis="900000" testWhileIdle="true" testOnBorrow="false" removeAbandoned="true" removeAbandonedTimeout="300" logAbandoned="true" /> </Context> Pid Ster wrote:On 08/02/2010 07:15, Munirathinavel wrote:Hi to all........ I'm trying to stop tomcat service but it's not happening instead my log file std_out size going more a GB. After restarting the system only i'm able to proceed. I'm getting the following message in Catalina_log...... Feb 8, 2010 12:12:40 PM org.apache.coyote.http11.Http11Protocol pause INFO: Pausing Coyote HTTP/1.1 on http-8080 Feb 8, 2010 12:13:01 PM org.apache.catalina.connector.Connector pause SEVERE: Protocol handler pause failed java.net.ConnectException: Connection timed out: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:525) at java.net.Socket.connect(Socket.java:475) at java.net.Socket.<init>(Socket.java:372) at java.net.Socket.<init>(Socket.java:215) at org.apache.jk.common.ChannelSocket.unLockSocket(ChannelSocket.java:486) at org.apache.jk.common.ChannelSocket.pause(ChannelSocket.java:283) at org.apache.jk.server.JkMain.pause(JkMain.java:681) at org.apache.jk.server.JkCoyoteHandler.pause(JkCoyoteHandler.java:153) at org.apache.catalina.connector.Connector.pause(Connector.java:1073) at org.apache.catalina.core.StandardService.stop(StandardService.java:563) at org.apache.catalina.core.StandardServer.stop(StandardServer.java:744) at org.apache.catalina.startup.Catalina.stop(Catalina.java:628) at org.apache.catalina.startup.Catalina.start(Catalina.java:603) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Feb 8, 2010 12:13:02 PM org.apache.catalina.core.StandardService stop INFO: Stopping service Catalina Feb 8, 2010 12:13:02 PM org.apache.catalina.core.StandardWrapper unload INFO: Waiting for 1 instance(s) to be deallocated Feb 8, 2010 12:13:03 PM org.apache.catalina.core.StandardWrapper unload INFO: Waiting for 1 instance(s) to be deallocated Feb 8, 2010 12:13:04 PM org.apache.catalina.core.StandardWrapper unload INFO: Waiting for 1 instance(s) to be deallocated Feb 8, 2010 12:13:04 PM org.apache.coyote.http11.Http11Protocol destroy INFO: Stopping Coyote HTTP/1.1 on http-8080 Feb 8, 2010 12:13:04 PM org.apache.jk.common.ChannelSocket destroy INFO: Error shutting down the channel 8009 java.lang.NullPointerException Thanks in advance.Post your complete server.xml, with passwords removed (if present). p --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.orgQuoted from: http://old.nabble.com/Not-able-to-stop-tomcat........-tp27496129p27498805.html
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org