Click to See Complete Forum and Search --> : Tomcat is started but http://localhost:8080 shows resource not found error
SH100
10-11-2009, 09:42 PM
Hi,
Tomcat was installed on my work computer by somebody else but when I open http://localhost:8080/ in browser it gives error message http status 404(Requested resource is not available).
I started Tomcat through command prompt. At first I did service.bat install then NET START TOMCAT I am getting message tomcat service is started also.
Does that mean that tomcat was not installed properly?
What is difference between using tomcat as service and using as User program. I mean in which case one should use it as service?
Thank you
myrtle1908
10-11-2009, 10:29 PM
Are you certain Tomcat is installed on port 8080? Check the 'server.xml' file found in the Tomcat 'conf' folder and check the 'Connector' node for port eg.
<Connector port="8080" protocol="HTTP/1.1" ...
Also, check the Tomcat log files to see if anything went wrong when starting.
You could also try accessing it via the loopback address ie. http://127.0.0.1:8080
SH100
10-12-2009, 12:39 AM
1. Yes port no is 8080.
2. <Tomcat Root Folder>\bin\logs\ NGBSApp.log
shows error
Fatal transport error -
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
BUT tomcat gets started when done from command prompt with NET START TOMCAT5
3. Tried loopback address http://127.0.0.1:8080
In browser I see status 404 error and at bottom apache tomcat/5.5.26 is also written so this message is delivered by tomcat.
Thank you very much for your reply.
myrtle1908
10-12-2009, 01:04 AM
The fact that you get a 404 from Tomcat indicates that Tomcat is indeed running.
What are you expecting to see? Have you some application installed in the Tomcat root? By default, Tomcat will display its welcome page if you browse to the root ie. http://localhost:8080/, this welcome app can be found in 'webapps\ROOT'.
Once you have established what should be running at http://localhost:8080/ and which folder it is running from, try requesting a static file eg. if you have an image file in your app folder named 'jakarta-banner.gif' you can browse to http://localhost:8080/jakarta-banner.gif and it should be displayed. If this works then try requesting the start page/jsp/servlet for you application.
SH100
10-12-2009, 01:29 AM
I was expecting that http://localhost:8080 will display the tomcat home page but it did not and it didn't occur to me to see image url/html. http://localhost:8080/jsp-examples/jsp2/jspx/textRotate.jpg is showing image. So my concerns for now are answered. Thank you very much for your timely help.