Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2011
    Rep Power

    Default @404 error posting here

    hi friends....

    I am making a simple servlet program but the browser is showing the 404 status error....

    Below is what ia have done...

    apache tomcat is i am seeing its windoe in browser.....

    I hav set all the 3 required paths which are..
    1. path for java
    2. JAVA_HOME for tomcat
    3. classpath for servlet-api.jar

    now i hav following directory structure for my Demo servlet program....


    I am not using any web.xml file so when i am putting the below in browser it shows me 404 error...

    So please help me out....
    thanks in advance...

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Rep Power


    Without a web.xml file to map the servlet name to the actual class then Tomcat has no idea what servlet/Demo is.

  3. #3
    Join Date
    Jan 2011
    Rep Power

    Default @ Above

    yeah you are right ...
    But it can be resolved if we edit the web.xml of Tomcat..

    i have resolved the problem now...

Similar Threads

  1. Cross posting question
    By tashimoto in forum Forum Guides
    Replies: 7
    Last Post: 12-28-2010, 07:06 PM
  2. Suggestion: Forum for posting example code
    By Singing Boyo in forum Suggestions & Feedback
    Replies: 9
    Last Post: 06-02-2010, 01:07 PM
  3. problems posting
    By angryboy in forum Suggestions & Feedback
    Replies: 2
    Last Post: 10-09-2009, 09:08 PM
  4. Issues with posting
    By xcallmejudasx in forum Forum Lobby
    Replies: 1
    Last Post: 06-27-2009, 02:27 AM
  5. Posting codes and help
    By Java_Man in forum New To Java
    Replies: 2
    Last Post: 02-16-2008, 04:15 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts