RobynM
March 17th, 2010, 10:34 PM
Hi,
I am new to Ubuntu and to Servlets in general, and I am having difficulties deploying my first Servlet. I believe that I have Tomcat 6 installed properly and running as I get the Tomcat page when I visit the url http://localhost:8080. The problem I have is when I create a simple servlet, MyServlet.java and compile it to get MyServlet.class. I have also created web.xml.
When I navigate to my tomcat/webapps directory I create the folder proj1. Inside this folder I create WEB-INF, in which place the file web.xml and also a newly create folder 'classes' which I place the file MyServlet.class.
According to everything I have read this should be sufficient to allow me to visit the url http://localhost:8080/proj1/servlet.
When I do this however I get the http 404 error "resource() not available"
Has anyone come across this problem and discovered a solution?
R.
I am new to Ubuntu and to Servlets in general, and I am having difficulties deploying my first Servlet. I believe that I have Tomcat 6 installed properly and running as I get the Tomcat page when I visit the url http://localhost:8080. The problem I have is when I create a simple servlet, MyServlet.java and compile it to get MyServlet.class. I have also created web.xml.
When I navigate to my tomcat/webapps directory I create the folder proj1. Inside this folder I create WEB-INF, in which place the file web.xml and also a newly create folder 'classes' which I place the file MyServlet.class.
According to everything I have read this should be sufficient to allow me to visit the url http://localhost:8080/proj1/servlet.
When I do this however I get the http 404 error "resource() not available"
Has anyone come across this problem and discovered a solution?
R.