• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 220
  • Last Modified:

Tomcat runs fine, but can't find the root page

Hi:

I am using tomcat to run my jsp pages. Everything is fine, but it is strange that http://localhost:8080 doesn't show up and report 404 status error.

description The requested resource (/) is not available.

Can any one tell me what's wrong with my configuration?

Thank you.
0
ly_uwo
Asked:
ly_uwo
  • 3
  • 3
1 Solution
 
Siva Prasanna KumarPrincipal Solutions ArchitectCommented:
http://localhost:8080/ does this open our Tomcat Web Page????

If not i think that Tomcat has not started properly.

Are you using Eclipse??? and a plugin to start the Tomcat Server??? Its better you do start and stop of you Tomcat server using the Monitor Tomcat option.

Thank You.
0
 
ly_uwoAuthor Commented:
yes, I am using eclipse WTP.  I choose run on server, which is tomcat 5.5. Do you mean I better use the system tray of tomcat to start it? However, I have no problem to run programs on tomcat currently. I am just feel surprised why the root of tomcat doesn't display.
0
 
Siva Prasanna KumarPrincipal Solutions ArchitectCommented:
ya man even i had the same problem using WTP, i think theproblem is when your system starts up itself your Tomcat Start up program will start it and then even thou you stop it i don't think all the Threads of it are dumped properly.

Actually WTP uses some othe configration in the Tomcat if you ant check out when you do a run on server on the work space you can't see that file in the web apps.

ok fine forget about all that story.

now go your server properties by double clicking the server and there will be a check box (checked) Run from workspace.

just Unckeck it and restart the Tomcat Server Once(Best restart the Eclipse too.)

Thank You.
0
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

 
ly_uwoAuthor Commented:
But I don't find the "Run from workspace" option in my eclipse-wtp by clicking windows-> preference->server. I am using the current version of wtp.
0
 
Siva Prasanna KumarPrincipal Solutions ArchitectCommented:
no just double click on the sever which will be in the bottom of your eclipse just next to console in J2EE preference.

Thank You.
0
 
ly_uwoAuthor Commented:
solved! thank you.
Besides your suggestion, I check "automatically publish when starting server" which I unchecked before.  
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now