This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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