You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Ijlal EL HAZITI <ij...@gmail.com> on 2012/08/15 00:18:22 UTC

error while shutting down tomcat

Good evening


I installed a wab application (sakai precisely) on a distant server
remotely, but it doesn't start, and when I shutdown tomcat, I get that
error:

Using CATALINA_BASE:   /opt/tomcat
Using CATALINA_HOME:   /opt/tomcat
Using CATALINA_TMPDIR: /opt/tomcat/temp
Using JRE_HOME:        /opt/java
Using CLASSPATH:
/opt/tomcat/bin/bootstrap.jar:/opt/tomcat/bin/tomcat-juli.jar
14 août 2012 13:55:44 org.apache.catalina.startup.Catalina stopServer
*GRAVE: Catalina.stop:
java.net.ConnectException: Connection refused*
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
    at java.net.Socket.connect(Socket.java:529)
    at java.net.Socket.connect(Socket.java:478)
    at java.net.Socket.<init>(Socket.java:375)
    at java.net.Socket.<init>(Socket.java:189)
    at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:490)
    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.stopServer(Bootstrap.java:371)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:453)

tomcat instance starts fine.

before deploying sakai, there were no errors while starting or shutting
down tomcat.

>From a search on google, I understood that it could be a firewall or port
problem, so, I disabled the firewall, and all the ports that are mentionned
in the conf/server.xml aren't used by other processes.

I appreciate your help.

Regrards

Re: error while shutting down tomcat

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ijlal,

On 8/14/12 6:18 PM, Ijlal EL HAZITI wrote:
> I installed a wab application (sakai precisely) on a distant
> server remotely, but it doesn't start, and when I shutdown tomcat,
> I get that error:

This is a question better targeted at the Tomcat users' list. I am
cross-posting and will not reply again to this thread on the Tomcat
development mailing list. Please join the users' list and post there
from now on.

> Using CATALINA_BASE:   /opt/tomcat Using CATALINA_HOME:
> /opt/tomcat Using CATALINA_TMPDIR: /opt/tomcat/temp Using JRE_HOME:
> /opt/java Using CLASSPATH: 
> /opt/tomcat/bin/bootstrap.jar:/opt/tomcat/bin/tomcat-juli.jar 14
> août 2012 13:55:44 org.apache.catalina.startup.Catalina stopServer 
> *GRAVE: Catalina.stop: java.net.ConnectException: Connection
> refused* at java.net.PlainSocketImpl.socketConnect(Native Method) 
> at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351) at
> java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
>
> 
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at
> java.net.Socket.connect(Socket.java:529) at
> java.net.Socket.connect(Socket.java:478) at
> java.net.Socket.<init>(Socket.java:375) at
> java.net.Socket.<init>(Socket.java:189) at
> org.apache.catalina.startup.Catalina.stopServer(Catalina.java:490) 
> 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.stopServer(Bootstrap.java:371)
>
> 
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:453)

If Tomcat hasn't started, then you will be unable to shut it down.

> tomcat instance starts fine.

Tomcat starts fine, or fails to start? You have claimed both observations.

> before deploying sakai, there were no errors while starting or
> shutting down tomcat.
> 
>> From a search on google, I understood that it could be a firewall
>> or port
> problem, so, I disabled the firewall, and all the ports that are
> mentionned in the conf/server.xml aren't used by other processes.

This really depends upon the circumstances. Please join the users'
mailing list and provide more information.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlAq0L4ACgkQ9CaO5/Lv0PC18gCghtbM/BJBJXgAeq4u+MZCIHDu
3aAAoKyLiBb96sbDN9ykg3grlr9lv8+x
=Wq5J
-----END PGP SIGNATURE-----

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


Re: error while shutting down tomcat

Posted by Mark Thomas <ma...@apache.org>.
On 14/08/2012 23:18, Ijlal EL HAZITI wrote:
> Good evening
> 
> 
> I installed a wab application (sakai precisely) on a distant server
> remotely, but it doesn't start, and when I shutdown tomcat, I get that
> error:
> 
> Using CATALINA_BASE:   /opt/tomcat
> Using CATALINA_HOME:   /opt/tomcat
> Using CATALINA_TMPDIR: /opt/tomcat/temp
> Using JRE_HOME:        /opt/java
> Using CLASSPATH:
> /opt/tomcat/bin/bootstrap.jar:/opt/tomcat/bin/tomcat-juli.jar
> 14 août 2012 13:55:44 org.apache.catalina.startup.Catalina stopServer
> *GRAVE: Catalina.stop:
> java.net.ConnectException: Connection refused*
>     at java.net.PlainSocketImpl.socketConnect(Native Method)
>     at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
>     at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
>     at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
>     at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
>     at java.net.Socket.connect(Socket.java:529)
>     at java.net.Socket.connect(Socket.java:478)
>     at java.net.Socket.<init>(Socket.java:375)
>     at java.net.Socket.<init>(Socket.java:189)
>     at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:490)
>     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.stopServer(Bootstrap.java:371)
>     at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:453)
> 
> tomcat instance starts fine.
> 
> before deploying sakai, there were no errors while starting or shutting
> down tomcat.
> 
> From a search on google, I understood that it could be a firewall or port
> problem, so, I disabled the firewall, and all the ports that are mentionned
> in the conf/server.xml aren't used by other processes.
> 
> I appreciate your help.

1. Help with what? I don't see any questions in your e-mail.

2. This is the dev list. It is for managing the process of developing
Tomcat. It is not for questions about using Tomcat. Once you have
figured out what question(s) you want to ask, you need to use the users
mailing list.

Mark


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


Re: error while shutting down tomcat

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ijlal,

On 8/14/12 6:18 PM, Ijlal EL HAZITI wrote:
> I installed a wab application (sakai precisely) on a distant
> server remotely, but it doesn't start, and when I shutdown tomcat,
> I get that error:

This is a question better targeted at the Tomcat users' list. I am
cross-posting and will not reply again to this thread on the Tomcat
development mailing list. Please join the users' list and post there
from now on.

> Using CATALINA_BASE:   /opt/tomcat Using CATALINA_HOME:
> /opt/tomcat Using CATALINA_TMPDIR: /opt/tomcat/temp Using JRE_HOME:
> /opt/java Using CLASSPATH: 
> /opt/tomcat/bin/bootstrap.jar:/opt/tomcat/bin/tomcat-juli.jar 14
> août 2012 13:55:44 org.apache.catalina.startup.Catalina stopServer 
> *GRAVE: Catalina.stop: java.net.ConnectException: Connection
> refused* at java.net.PlainSocketImpl.socketConnect(Native Method) 
> at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351) at
> java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
>
> 
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at
> java.net.Socket.connect(Socket.java:529) at
> java.net.Socket.connect(Socket.java:478) at
> java.net.Socket.<init>(Socket.java:375) at
> java.net.Socket.<init>(Socket.java:189) at
> org.apache.catalina.startup.Catalina.stopServer(Catalina.java:490) 
> 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.stopServer(Bootstrap.java:371)
>
> 
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:453)

If Tomcat hasn't started, then you will be unable to shut it down.

> tomcat instance starts fine.

Tomcat starts fine, or fails to start? You have claimed both observations.

> before deploying sakai, there were no errors while starting or
> shutting down tomcat.
> 
>> From a search on google, I understood that it could be a firewall
>> or port
> problem, so, I disabled the firewall, and all the ports that are
> mentionned in the conf/server.xml aren't used by other processes.

This really depends upon the circumstances. Please join the users'
mailing list and provide more information.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlAq0L4ACgkQ9CaO5/Lv0PC18gCghtbM/BJBJXgAeq4u+MZCIHDu
3aAAoKyLiBb96sbDN9ykg3grlr9lv8+x
=Wq5J
-----END PGP SIGNATURE-----

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