Yes I have tried that. When I kill, the process gets killed gracefully. After killing, if I do a ps -ef|grep tomcat, I don't see the process running. Like I said the issue is not with shutdown. The issue is with startup. When I startup, the startup is not happening at all, which is what is causing a problem while shutting down. Here is what I see -
Feb 14, 2014 12:10:23 PM org.apache.catalina.startup.Catalina stopServer SEVERE: Could not contact localhost:8005. Tomcat may not be running. I don't understand what's causing this. On Fri, Feb 14, 2014 at 12:02 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA256 > > Leo, > > On 2/14/14, 1:52 PM, Leo Medina wrote: > > Hello have you tried: > > > > ps -ef | grep <port number> > > > > kill -9 <port number> > > That should be "kill -9 <pid>", though I'm interested to see what > happens if you try to kill by port number. > > - -chris > > > On Fri, Feb 14, 2014 at 10:44 AM, Pooja Swamy > > <poojasw...@gmail.com> wrote: > > > >> I am unable to shutdown my tomcat gracefully. Everytime I try to > >> shutdown tomcat, this is the error I get. > >> > >> test@17.198.48.77:/Users/test/software/tomcat/bin>./startup.sh > >> Using CATALINA_BASE: /Users/test/software/tomcat Using > >> CATALINA_HOME: /Users/test/software/tomcat Using > >> CATALINA_TMPDIR: /Users/test/software/tomcat/temp Using > >> JRE_HOME: > >> /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home > >> > >> > Using CLASSPATH: > >> > >> > /Users/test/software/tomcat/bin/bootstrap.jar:/Users/test/software/tomcat/bin/tomcat-juli.jar > >> > >> > test@17.198.48.77:/Users/test/software/tomcat/bin>./shutdown.sh > >> Using CATALINA_BASE: /Users/test/software/tomcat Using > >> CATALINA_HOME: /Users/test/software/tomcat Using > >> CATALINA_TMPDIR: /Users/test/software/tomcat/temp Using > >> JRE_HOME: > >> /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home > >> > >> > Using CLASSPATH: > >> > >> > /Users/test/software/tomcat/bin/bootstrap.jar:/Users/test/software/tomcat/bin/tomcat-juli.jar > >> > >> > Feb 14, 2014 6:37:52 PM org.apache.catalina.startup.Catalina stopServer > >> SEVERE: Catalina.stop: java.net.ConnectException: Connection > >> refused at java.net.PlainSocketImpl.socketConnect(Native Method) > >> at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:382) > >> at > >> java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:241) > >> > >> > at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:228) > >> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:431) at > >> java.net.Socket.connect(Socket.java:527) at > >> java.net.Socket.connect(Socket.java:476) at > >> java.net.Socket.<init>(Socket.java:373) at > >> java.net.Socket.<init>(Socket.java:187) at > >> org.apache.catalina.startup.Catalina.stopServer(Catalina.java:499) > >> > >> > 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) > >> > >> > >> I have also tried killing, restarting, and ./shutdown.sh, > >> installing tomcat again, changing port number. Nothing seems to > >> be helping. Please advise. > >> > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1 > Comment: GPGTools - http://gpgtools.org > Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ > > iQIcBAEBCAAGBQJS/nZDAAoJEBzwKT+lPKRYpSkP/3LxGfH57/4MRqeK3c8fjY/V > eAr/ovAJLfnxY3M3JJzZN4DqV0bdynZlsmb5pVKyedjKvCrorq6k8W5LbRAx37UI > EYFLUjIiHVeWbtQ5nNBMLnlExCkqpe76KB2+SXG6jipxGvKMTADpkK7+SZ3Ze3R4 > PzmSslrD35tBNsxV8Er+5Jl/sAgMk7QSbPbcyRhAhFHY8ywRTd4RHPOFNmxidx57 > 4JM8yG7AJLmLmhXMJHcKe6wZ4OPrLl0GpAA7n5v1+qqQh/G/h6u0eNZ6xHMu2awT > NgqQxUaopy6XN46Qpew2jUNqaXUIQ/vsiIlSa8jIq8R6zvyx8MowER5mc5hPbxbp > NlAO6mYp3DNvCTy6+EQ0hQbsPlL0G39ehxQbRW6Rearb/i8sWF7crnwVwn1g80NV > mhZ80S/a0VRxBCYo/XgkiBpbdciFczpFBpMZ2zUvLO0rICyHwEhBe37k1va7I5H8 > zCi3lSaiBSF3dhuuTZBd9EIFVsSMeB3qIUkgSaTKlmgjtxi0RIuTzGWN+IJKCNpV > O8n8tSbEY5eXvytTzGICsJBpSQQJI1VGrWZBXX1SshALm8obWZ8htQZ3xqWRo5Kx > hNiOKhjdx8f83dsRLM9NaBeGvWI12Nrwpa0wmPXfKaQ3ZjusZRqPi5pDnjCRTV0n > AZC42Wgh9930Q2SRUg1n > =t7N6 > -----END PGP SIGNATURE----- > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >