Link to home
Start Free TrialLog in
Avatar of ly_uwo
ly_uwoFlag for United States of America

asked on

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.
Avatar of Siva Prasanna Kumar
Siva Prasanna Kumar
Flag of India image

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.
Avatar of ly_uwo

ASKER

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.
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.
Avatar of ly_uwo

ASKER

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.
ASKER CERTIFIED SOLUTION
Avatar of Siva Prasanna Kumar
Siva Prasanna Kumar
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ly_uwo

ASKER

solved! thank you.
Besides your suggestion, I check "automatically publish when starting server" which I unchecked before.