Tomcat is started but http://localhost:8080 shows resource not found error
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?
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.
Also, check the Tomcat log files to see if anything went wrong when starting.
<Connector port="8080" protocol="HTTP/1.1" ...
You could also try accessing it via the loopback address ie. http://127.0.0.1:8080
Checked all parametes
1. Yes port no is 8080.
2. <Tomcat Root Folder>\bin\logs\ NGBSApp.log
Fatal transport error -
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.
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.
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/j...textRotate.jpg is showing image. So my concerns for now are answered. Thank you very much for your timely help.
Users Browsing this Thread
There are currently 3 users browsing this thread. (0 members and 3 guests)