aspose file tools*
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 Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat is not running?" Watch "Tomcat is not running?" New topic
Author

Tomcat is not running?

Em Aiy
Ranch Hand

Joined: May 11, 2006
Posts: 225
Hi,

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?


P.S:
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
Sheriff

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
Rancher

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

Try http://127.0.0.1:8080/
if that works then you need to configure the hosts file with an entry

127.0.0.1 localhost

Bill


Java Resources at www.wbrogden.com
Em Aiy
Ranch Hand

Joined: May 11, 2006
Posts: 225
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
Sheriff

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: 225
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 http://127.0.0.1:8080. Will check it later tonight.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat is not running?
 
Similar Threads
Not able to connect to localhost:8080??
problem starting Tomcat.....pleae Advise
Problem with tomcat...please advise
Problem with Tomcat 6
Tomcat 6 Invalid UserName and Password Unauthorized