This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes JSP and the fly likes Tomcat problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Tomcat problem" Watch "Tomcat problem" New topic

Tomcat problem

sirisha kukunuri

Joined: Jun 04, 2008
Posts: 13
Hi EveryOne,
This is my first post in this forum.I don't know whether this is write is correct section to my post.sorry for that.
Coming to my problem.I am using Tomcat5.5 from so many days.I didn't face any problems with it.I could run my web applications using this till yesterday.
But when i tried it tomorrow, i started tomcat and i got message like server startup in 187ms and after that when i type the url http://localhost:8080/ on my browser i am getting a message "waiting for localhost.. " on my browser status bar more than 5 minutes. Finally i got connection time out message .

what's wrong with my tomcat.Can any one please help me..

Thanks in advance.
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

187ms is pretty fast for a server startup so that doesn't seem like a problem.

Without knowing more about what your app is doing it would be impossible to say what the problem is. Do you any type of logging in your app?
Have you looked at the logs generated by Tomcat to see what the problem might be?

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
sirisha kukunuri

Joined: Jun 04, 2008
Posts: 13
Thanks Ben Souther for quick reply,
Actually i wasn't trying to run any application..i just gave url like http://localhost:8080/ to make sure tomcat is working fine or not.
And even when i tried with http://localhost:8080/strutsApplication i am getting same problem.which was worked fine yesterday.
And one more thing my browser is Mozilla Firefox.
Any one please give me some help..
Rajat Bhatnagar

Joined: Mar 11, 2008
Posts: 22

Just try the following steps:

1. Check the Container Logs..They will tell you where you are going wrong.Tomcat logs directory is present in <TOMCAT-INSTALL-DIRECTORY>/logs

2. ARE you using a script to start your container or is does it start as a service.If Your OS is Windows you can use the standalone installation of Tomcat that runs as a windows service.

Anyways that doesn't have any relationship with the problem and its up to you tco choose.

3.It might be possible that you might be have conflicts with the Port 8080.
Long time back i faced the same problem.In case nothing works just open the server.xml file located in <TOMCAT-INSTALL-DIRECTORY>/\conf path.Change the Port to some other value say 8111. and try restarting Tomcat..

I hope this works for you.
You can use the commmand netstat -ao on the command line to check the ports you are listening to .

Regards<br />Rajat Bhatnagar<br /><a href="" target="_blank" rel="nofollow"></a>
I agree. Here's the link:
subject: Tomcat problem
jQuery in Action, 3rd edition