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

    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 running....as 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....

    C:\Users\RAKESH\Desktop\naveen\code\apache-tomcat-7.0.6\webapps\my\WEB-INF\classes\Demo.class



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

    http://localhost:8080/my/servlet/Demo
    ..
    ...
    ....
    So please help me out....
    thanks in advance...

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,817
    Rep Power
    19

    Default

    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
    Posts
    2
    Rep Power
    0

    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, 06: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, 03: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
  •