tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Error in stopping application tomcat !!
Date Fri, 17 Jul 2020 18:58:38 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Kushagra,

On 7/17/20 11:47, Kushagra Bindal wrote:
> Similar issues we are also facing in our environment. What could be
> the problem?
>
> On Fri, Jul 17, 2020 at 6:04 PM om tiwari <omt121993@gmail.com>
> wrote:
>
>> Hi,
>>
>> We have upgraded our tomcat version from 8.5.24 to 8.5.53 in
>> application. After upgrading we are facing issue while stopping
>> tomcat. Below is the stack-trace :
>>
>> Using CATALINA_BASE:   /usr/local/kronos/tomcat Using
>> CATALINA_HOME:   /usr/local/kronos/tomcat Using CATALINA_TMPDIR:
>> /usr/local/kronos/tomcat/temp Using JRE_HOME:
>> /usr/local/kronos/jdk Using CLASSPATH:
>>
>> /usr/local/kronos/tomcat/bin/bootstrap.jar:/usr/local/kronos/tomcat/b
in/tomcat-juli.jar
>>
>>
Using CATALINA_PID:    /usr/local/kronos/tomcat/tomcat.pid
>> Jul 17, 2020 11:44:44 AM org.apache.catalina.startup.Catalina
>> stopServer SEVERE: Could not contact [localhost:8005]. Tomcat may
>> not be running. Jul 17, 2020 11:44:44 AM
>> org.apache.catalina.startup.Catalina stopServer SEVERE:
>> Catalina.stop: java.net.ConnectException: Connection refused
>> (Connection refused) at
>> java.net.PlainSocketImpl.socketConnect(Native Method) at
>> java.net
>> .AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
>>
>>
at java.net
>> .AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.jav
a:206)
>>
>>
at java.net
>> .AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
>>
>>
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
>> at java.net.Socket.connect(Socket.java:589) at
>> java.net.Socket.connect(Socket.java:538) at
>> java.net.Socket.<init>(Socket.java:434) at
>> java.net.Socket.<init>(Socket.java:211) at
>> org.apache.catalina.startup.Catalina.stopServer(Catalina.java:504)
>>
>>
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:62)
>>
>>
at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
>>
>>
at java.lang.reflect.Method.invoke(Method.java:498)
>> at
>> org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:389)
>>
>>
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:479)
>>
>> Tomcat did not stop in time. To aid diagnostics a thread dump has
>> been written to standard out. Killing Tomcat with the PID: 21210
>> The Tomcat process has been killed.
>>
>> ---------------------------------------------------------------------
- ---------------------------------
>>
>>
>>
At last the tomcat is stopped but we are not able to understand this
>> connection refused stack trace in this stop process.
>>
>> It also takes time in stopping the tomcat server now since
>> upgrade `10-15 sec.
>>
>> Can anyone help us in resolving this issue?

Can you post your <Server> element from conf/server.xml?

How do you stop Tomcat -- looks like using "catalina.sh stop" or similar
?

- -chris
-----BEGIN PGP SIGNATURE-----
Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl8R9N4ACgkQHPApP6U8
pFga8RAAws1xIkDJJQptsdTu/2T/jssbnnDVewrI4LXguNoavHBxncGzw8r3Jczw
Qkx7rJcpoP9KcBmvDjipLDimVMS/uqErAgzb1kS52qUD44gdL2HdKfTyvVmUnOGU
xqlVD6JrJjLhATxhHhomDp5omcy8dn+j5XHJD0bGbISjKMsH5SPNUHNI0x2NIWNX
u3qcQxNlKiCN5iZpniAPhjVOPA+EFW91W83H37LZkrA7YFV9q4Z/FuHbHit0DL+J
sJN7oW9afPeVco5Q80IKiT2EDQEhcLH2zUNRwYqGfktewsgOM5cWN8NSXmqqsZDz
B2Zq7OqhAGx3b/OV9OpVSO0v+Pv6G2GMmhdv35eFq/JTkJBwMhd8H9PEc8yDEbTF
0VaKmzjWuxs4ALPvD7yQtyidZE0I8H1MQBg4E1ROC1vMNfEkQXT47ChVq4zvJJDv
J1h+6ZHCmY6uLkZLltOZQtUnkFUAS0qn6AY80Dm0FWmMcorBUY0XRQSSfY0Xzpmv
CafkAgx6TZKiFGTbmXH90JrSrHQBchBvm4GmOKDNp9W3U/ZV8QQoBH4JLsGu/2e4
Cgq/TwBmc7VrjW4gYVg/fQ+mkF/4z2K1o9h2vAD/Di50TpARAIrRZbangqwvQxKN
b6IFIT965wW0MuhiaIO1leWc3nqLXzII8EEcg5xsduFx/aqrnKI=
=2Ey1
-----END PGP SIGNATURE-----

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


Mime
View raw message