Reputation: 2760
I am building a dynamic web project using eclipse j2ee helios 3 version. Everything was working fine..but suddenly one day, when I opened the eclipse, all the ear and jre libraries which was visible in project explorer were gone. And after that I had to put all the libraries related to it manually inside workspace of eclipse/projects folder/web inf/ lib. I did put the servlet-api.jar inside the lib folder of the project, but it was giving me some validate jar error. So, I removed it from the lib folder, but now when i am trying to run the servlet run as-> run on server, I am getting this error:
HTTP Status 404 -
--------------------------------------------------------------------------------
type Status report
message
description The requested resource () is not available.
--------------------------------------------------------------------------------
Apache Tomcat/6.0.30
and the url is weird too:
http://localhost:8080/cPEP_UI/WEB-INF/classes/Engine_rurl_delete.java
any ideas guys?!
Upvotes: 0
Views: 5047
Reputation: 1108722
You can manage the dynamic web project facets by Rightclick project > Properties > Project Facets. At least Dynamic Web Module and Java must be checked. You can manage the dynamic web project targeted runtime (which contains the necessary libraries) by Rightclick project > Properties > Targeted Runtime. At least one server must be associated. You should above all not put servletcontainer specific libraries in webapp's /WEB-INF/lib
. This is not the right way to do.
If in vain or you don't understand the undercovers meaning/working of those, I'd suggest to backup the code, throw away the project and create a new one. And then be careful with project properties/settings.
Upvotes: 2
Reputation: 240900
http://localhost:8080/cPEP_UI/WEB-INF/classes/Engine_rurl_delete.java
WEB-INF
isn't standard public web space you can't access it this way, So 404
Upvotes: 1