If i start my Apache server via startup.bat (bin folder), and i issue http://localhost:8080, i got that "cat", and i see successfully the main page. But in Eclipse IDE, i defined the server on the Servers tab, and i tried to start it within Eclipse. It shows that the server is "started", but when i issue http://localhost:8080, i got that HTTP Status 404 -

type Status report

message /

description The requested resource (/) is not available.

My question is.. why? why if i start the server manually via startup.bat it display's the startup page of Apache server and if i start within Eclipse i got that error? I should mention that i didn't added any projects for deploying on that server (in Eclipse).

Thanks

Accepted Answer

You won't see the welcome page because eclipse creates another copy of tomcat in your workspace and deploy your project into that installation. Eclipse will only deploy what is inside of your selected project so if you don't add any project to the server in eclipse, the deployment directory for that installation will be empty and will give you a 404 Not found error.

Written by fmucar
This page was build to provide you fast access to the question and the direct accepted answer.
The content is written by members of the stackoverflow.com community.
It is licensed under cc-wiki