• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

http://localhost:8080 stopped responding

 
Nitin Nigam
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I had my Tomcat running fine at localhost:8080 so did some applications that i had deployed on it. Last week i installed an application(say 'A') that uses jetty server on port 8364. Since then http://localhost:8000 is not responding, and all the applications i deployed on tomcat have also stopped responding.

Is it like when you have another server running (on different port) tomcat wont run on the same machine?
I noticed another thing, the application that installed jetty server had also changed my class path, now this classpath points to location where my application 'A' had installed another JDK. And all the previous entries of the classpath are gone.

So i put the path to CATELINA_HOME/common/lib (here are all my jar files located) to my classpath. Still my application deployed on tomcat are not responding. Even http://localhost:8080 is not responding.

Can anybody indicate whats wrong with my Tomcat? Is there anything else i need to put in classpath?
[ April 04, 2007: Message edited by: Nitin Nigam ]
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13071
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
>>Is it like when you have another server running (on different port) tomcat wont run on the same machine?

As long as the ports used by both are all separate there should be no problem. NOTE that in addition to 8080 Tomcat watches a "SHUTDOWN" port - see your server.xml file

I noticed another thing, the application that installed jetty server had also changed my class path, now this classpath points to location where my application 'A' had installed another JDK. And all the previous entries of the classpath are gone.

So i put the path to CATELINA_HOME/common/lib (here are all my jar files located) to my classpath. Still my application deployed on tomcat are not responding.


Tomcat totally ignores your classpath settings to avoid problem like your installation that changed CLASSPATH but does look at environment variables for JAVA_HOME and CATALINA_HOME - what do your present values look like?

What method are you using to start Tomcat? Can you see the running java instance in Task Manager?

Bill
 
Nitin Nigam
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi BIll,
Thanks for the reply.
I am using the My Computer(Right-Click)-> Manage->Services to restart tomcat.
I have JAVA_HOME and CATELINA _HOME properly defined.
My server.xml has nothing about shutdown port.
I have my Eclipse running, so javaw.exe is visible in Task Manager. Also when i start tomcat, i can also see tomcat5.exe running in Task Manager.
[ April 05, 2007: Message edited by: Nitin Nigam ]
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Nitin Nigam:

I am using the My Computer(Right-Click)-> Manage->Services to restart tomcat.


When started this way (or as a Windows service) Tomcat doesn't use environment variables. The .exe installer stores these settings in the Windows Registry.

I'm guessing (as William mentioned) that there is a port conflict.
Look at server.xml and make sure the shutdown port:
<Server port="8005" shutdown="SHUTDOWN">
is not also being used by Jetty.

A simple test is to shut down Jetty and see if Tomcat will start.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13071
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When wrestling with a Tomcat problem, I find it best to start Tomcat from a command prompt window with startup.bat - that way you should be able to see a variety of imformative messages. The problem may become painfully obvious.

Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic