I have a very small jsp-servlet application. Name of the application is myfirstwebapp. I have a folder structure like the following :
Tomcat --> webapps --> myfirstwebapp --> WEB-INF
Inside my WEB-INF, I have my classes folder and the web.xml file. Along with the web-inf folder, I also have helloworld.jsp in the myfirstwebapp folder. When I start Tomcat and type http://localhost:8080/myfirstwebapp/helloworld, the browser throws a 404 error and says "requested resource() not available"
I double checked and all names etc are correct, so its not a case of my application name being myfirstwebapp and me typing myfistwebapp....or something like that. Another thing that I found out is...if I remove the web.xml file from the project folder, the web page becomes available, but the moment I put it back, the page becomes unavailable again.
Can you please help me find out my error?
It might be worth posting the web.xml file, as it sounds like the issue is probably there.
Joined: Apr 05, 2010
Here is the web.xml file
I didnt find any error messages in the log file.
I just made a fresh web application, and this time, the problem is gone. The web pages are available, even though the directory structure is same as the previous one. I'm not sure if it was a case of some internal problem with Tomcat itself.