5
Apr/09
1

Linux: Release port 8080 after stopping Tomcat – Port 8080 in use by Java

It’s past 3 AM and I finally found out why after stopping my Tomcat server I’m unable to successfully start it again. It seem like Java process won’t go away. To get around that I added the following line to my Tomcat shutdown.sh script:

killall -9 java

and all is well now. Still unorthodox, but works for me. I will write a script to find the process and kill it properly later on.

Related posts:

  1. Linux: Run tomcat with apache – mod_jk configuration
  2. Linux: Apache Tomcat tips and tricks
  3. Tomcat: Redirect default home page to another URL

Tagged as: ,
Comments (1) Trackbacks (0)
  1. g
    5:50 AM on July 14th, 2010
    Firefox 3.6.6 Firefox 3.6.6 Windows 7 Windows 7
    Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6

    i think… the java program which is taking over that port is
    the common way… well,
    how can I say.
    Try to disable or shutdown the tomcat first,

    then see it again… is it used or not.
    hope this might help without killing java program which is still running.

Leave a comment

No trackbacks yet.