Tomcat Issue Connection refused or Tomcat may not be running


[root@vagrant-centos65 apache-tomcat-8.0.32]# ./bin/shutdown.sh
Using CATALINA_BASE:   /scm/tomcats/apache-tomcat-8.0.32
Using CATALINA_HOME:   /scm/tomcats/apache-tomcat-8.0.32
Using CATALINA_TMPDIR: /scm/tomcats/apache-tomcat-8.0.32/temp
Using JRE_HOME:        /usr
Using CLASSPATH:       /scm/tomcats/apache-tomcat-8.0.32/bin/bootstrap.jar:/scm/tomcats/apache-tomcat-8.0.32/bin/tomcat-juli.jar
org.apache.catalina.startup.Catalina stopServer
SEVERE: Could not contact localhost:8005. Tomcat may not be running.
org.apache.catalina.startup.Catalina stopServer
SEVERE: Catalina.stop:
java.net.ConnectException: Connection refused

        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
        at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
        at java.net.Socket.connect(Socket.java:579)
        at java.net.Socket.connect(Socket.java:528)
        at java.net.Socket.<init>(Socket.java:425)
        at java.net.Socket.<init>(Socket.java:208)
        at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:450)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:400)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:487)

[root@vagrant-centos65 apache-tomcat-8.0.32]#

Solution:

Your tomcat is not running and you are trying to stop by ~/bin/shutdown.sh or \bin\shutdown.bat

No comments:

Post a Comment

Please provide your input, it will honer for me...