PDA

View Full Version : tomcat not working


manishrathi
10-04-2009, 00:14
I have set up tomcat on windows xp pro sp2 as below

<Server port="8005" shutdown="SHUTDOWN">

<!-- Define a non-SSL HTTP/1.1 Connector on port 8080 -->
<Connector port="8080" maxHttpHeaderSize="8192"........./>

Now when I run the "http://localhost:8080", I get an error essage "Internet Explorer cannot display the webpage "

I have looked around and did lot of reading but can not figure out. Tomcat service is started.

what is wrong in here ?

When I start tomcat service from "services" console, it starts. But when I try to start it from "C:\Program Files\apache-tomcat-5.5.27\bin>startup " , it does not start and command stops running at "INFO : Server start up in 8032 ms"

Why is it so ?

Kees de Kooter
10-04-2009, 08:47
"Server start up in 8032 ms" means tomcat has succesfully started.

The reason why you get an IE error probably means there is no default application installed.

kjkoster
10-04-2009, 11:34
Dear manishrathi,

What may help is to switch off IE's "friendly error messages" (http://java-monitor.com/forum/showthread.php?t=277) somewhere in the advanced options. They are friendly only to my mom, not to developers trying to get some work done. That will give you an exact error message.

Also, check that Tomcat is listening on port 8080.

Kees Jan

manishrathi
10-04-2009, 15:54
How to get default application installed. I did not have this problem before ?
I just did a fresh download and installed it. Default application shd be automatically installed as I did not have to install anything before to get default tomcat page.
If tomcat is starting successfully then it should show started in "services" console. But in "services"console tomcat does not show started.

I did turn off IE friendly error messages, but still I am getting same error message, why is that ?

thanks

kjkoster
19-04-2009, 19:05
Dear manishrathi,

Check out this discussion on how to check that Tomcat is actually running and listening on the specified port: http://java-monitor.com/forum/showthread.php?t=22

Also, try starting and stopping Tomcat manually to verify that it works. I am not a Windows man, so I cannot help you with Windows services.

Kees Jan