I'm a newbie servlet developer. Please help.
I have created a servlet as follows:
And my DD file is:
The directory structure of my application under tomcat6 is:
And the directory structure of my development folder:
When a restart the tomcat6 container (/etc/init.d/tomcat6 restart), browsing to the URL: localhost:8080/ch1/Serv1 gives me 404 as follows:
Here is the machine configuration used:
Ubuntu 12.04 LTS 64bit
Tomcat6 (from repository)
Open-jdk-6 (from repository)
Now, that examples provided with tomcat works fine, only my servlet is giving 404. Please somebody help by providing step by step procdure.
Thanks in advance.
harshvardhan ojha wrote:There is some problem with your url. create a welcome file say index.jsp to check if your application is deployed properly.
There is no need to create phony files to do this -- I've already suggested using the Tomcat manager application to see if the web app is up and running.
Bear Bibeault wrote:I'm not seeing anything overt on a quick inspection.
Have you checked the Tomcat manager application to make sure that the app is actually deployed?
Yes I checked in the tomcat manager, the application is listed there.
I also putted index.jsp in the root folder i.e /ch1 (as suggested by other members) and browsing to localhost:8080/ch1 works
and loads the index.jsp page but browsing to localhost:8080/ch1/Serv1 is giving the same 404 problem.