Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

tomcat - Servlet Not Deploying

843842Jan 23 2009 — edited Jan 26 2009
Hello,

I'm trying to run a servlet using Tomcat 5.5.27 using Eclipse with sysdeo plugin, but I'm having a lot of trouble. I tried following a simple tutorial online, that creates a servlet and displays some text, which works just fine. However, I need to work on a project that is located on a CVS server and that's where the problems begin. I begin by selecting File->New->Project->CVS->Projects from CVS, this works just fine. The structure of the directories in this project are however different than that when I make a new Tomcat project that isn't from CVS. Here is an example of the directory structure:

NON CVS Project:
ProjectName
  WEB-INF/src
    source files
  WEB-INF/lib
  WEB-INF/web.xml
CVS Project:
ProjectName
  src
    package-name
      source files
  lib
  WebContent
    META-INF
    WEB-INF
      web.xml
Tomcat doesn't complain about anything yet when I try to go to the servlet url I get a 404 error. I tried exporting a WAR file to the webapps directory in my tomcat folder but it doesn't deploy (not extracting the war file), yet when I use an example servlet packaged in a WAR file from tomcat web page it extracts and works fine. A few people are working on this project but it's working just fine for them, only I am having problems. Any idea what might be the problem?

Thank you for the help.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 23 2009
Added on Jan 23 2009
3 comments
352 views