www.webdeveloper.com
Results 1 to 5 of 5

Thread: Tomcat is started but http://localhost:8080 shows resource not found error

  1. #1
    Join Date
    Jul 2007
    Posts
    71

    Tomcat is started but http://localhost:8080 shows resource not found error

    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

  2. #2
    Join Date
    Sep 2009
    Posts
    52
    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.

    Code:
    <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

  3. #3
    Join Date
    Jul 2007
    Posts
    71

    Checked all parametes

    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.

  4. #4
    Join Date
    Sep 2009
    Posts
    52
    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.

  5. #5
    Join Date
    Jul 2007
    Posts
    71
    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.

Thread Information

Users Browsing this Thread

There are currently 3 users browsing this thread. (0 members and 3 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles