File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Tomcat is not running? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat is not running?" Watch "Tomcat is not running?" New topic

Tomcat is not running?

Em Aiy
Ranch Hand

Joined: May 11, 2006
Posts: 226

I have 2 JDK installed. JDK 5 and JDK 6. The environment variable "JAVA_HOME" is set to JDK 5 and this is also added to the PATH as well.

When i run the Tomcat, it tells that it is using JDK 1.5 then start using Http port 8080 (displayed in console).

But when i open the browser and enter http://localhost:8080/ ... nothing displays (Page can not be displayed).

First i was thinking as if there were problem between 2 JDK's but now i have un-installed JDK 6 but even then Tomcat is doing problem.

What could be the possible reason for that?

There is no exception shown on the Tomcat Console. it just runs properly, my browser is not geting it.
[ January 10, 2007: Message edited by: Bear Bibeault ]

The difference between <b>failure</b> and <b>success</b> is often being <b>right</b> and being <b>exactly right</b>.
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

Did you check the tomcat logs to see if any exceptions are being thrown?

Also, have you disabled the "Show Friendly Errors" feature in your browser?
If not, you may not be seeing the real error messages being sent from Tomcat.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12982
If you have never run a server on this sytem before, perhaps your hosts file is not configured to recognize "localhost"

if that works then you need to configure the hosts file with an entry localhost

Em Aiy
Ranch Hand

Joined: May 11, 2006
Posts: 226
emm, thanks guys. I'll check these issues later. however, when i was debugging there was a strange message shown on the console.

I don't remember the exactly but it was something "the directory required for optimal production of tomcat is not found in system.library.path ... [PATH VARIABLE IS PRINTED HERE]"

[PATH VARIABLE IS PRINTED HERE] = all the entries that PATH variable of my system has.

Now what could be this is? I have not seen any of such error before.
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

Tomcat has a new (optional) feature for improving performance in high traffic sites by using the operating system's native socket handling capability.

I haven't tested it yet and am not using in an production sites.
If you're just starting out with Tomcat, I would ignore that message.
Em Aiy
Ranch Hand

Joined: May 11, 2006
Posts: 226
To: Ben

Yeah, i was ignoring this messages but i am unable to get my tomcat running. means, tomcat runs quite fine but when i enter "http://localhost:8080/" it displays "Page can not be found".

I have not tested it with Will check it later tonight.
wood burning stoves
subject: Tomcat is not running?
It's not a secret anymore!