File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes IDEs, Version Control and other tools and the fly likes eclipse Dynamic web Project + Tomcat : Servlet deployment problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "eclipse Dynamic web Project + Tomcat : Servlet deployment problem" Watch "eclipse Dynamic web Project + Tomcat : Servlet deployment problem" New topic
Author

eclipse Dynamic web Project + Tomcat : Servlet deployment problem

moaad elamrani
Greenhorn

Joined: Jun 20, 2011
Posts: 6
Hello everybody

I'm using Eclipse Helios IDE
I have created a Dynamic Web application called : "first_appli". However I've noticed that the structure of the Web application is little bit weird.
In fact, the folder "classes" which is usually a subfolder of WEB-INF does not exist. Instead the "*.class" files are in folder called build in the "first_appli" directory.
I made a simple program : a form.html which calls a servlet.java servlet

I started by creating the form.html which is the welcome page :



the form calls a servlet :

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;



Finally, I edited the Deployment Descriptor web.xml




The servlet.java is in the default folder within src folder in the Java_Ressources folder.
Logically, the <servlet-name> tag point to the class file and not the source file ( correct me!!) . Therefore, the fact that the servlet.class is hidden in the build folder surely will matter.

In order to overcome this problem, I tried to create a "classes" subfolder in WEB-INF and put servlet.class in it ==> KO not working

I've put the servlet.class directly in the WEB-INF ==> KO still not working

COULD YOU PLEASE HELP, It's been 2 days since I'm stuck here

thanks in advance
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: eclipse Dynamic web Project + Tomcat : Servlet deployment problem
 
Similar Threads
Requested resource() not found
Resource not available
Cannot bring up a html page using tomcat 6.0
error for first web application : The requested resource (/Beer-v1/SelectBeer.do) is not available.
HTTP Status 404 - /Beer-v1/form.html