Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 1 of 1

Thread: HTTP Status 404

  1. #1
    Junior Member
    Join Date
    Feb 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default HTTP Status 404

    hello..
    i am a beginne in java servlet. i would like to run my first application in it for my project.
    i get an error in trying to run my first HelloServlet class. the error is

    HTTP Status 404 - /aas/HelloServlet

    --------------------------------------------------------------------------------

    type Status report

    message /aas/HelloServlet

    description The requested resource (/aas/HelloServlet) is not available.


    --------------------------------------------------------------------------------

    Apache Tomcat/5.5.27

    where is aas is a folder under webappl folder to hold my system.
    i set the class path=C:\Program Files\Java\jdk1.5.0_16\bin;C:\apache-tomcat-5.5.27\bin;c:\apache-tomcat-5.5.27\common\lib\servlet-api.jar;C:\apache-tomcat-5.5.27\webapps\aas\WEB-INF\classes;C:\apache-tomcat-5.5.27\common\lib\jsp-api.jar

    i set the java home=C:\Program Files\Java\jdk1.5.0_16


    and the web.xml contains:
      <?xml version="1.0" encoding="ISO-8859-1" ?> 
    - <!-- 
      --> 
    - <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4">
      <display-name>Welcome to Tomcat</display-name> 
      <description>Welcome to Tomcat</description> 
    - <!--  JSPC servlet mappings start 
      --> 
    - <servlet>
      <servlet-name>HelloServlet</servlet-name> 
      <servlet-class>HelloServlet</servlet-class> 
      </servlet>
    - <servlet-mapping>
      <servlet-name>HelloServlet</servlet-name> 
      <url-pattern>/HelloServlet</url-pattern> 
      </servlet-mapping>
    - <!--  JSPC servlet mappings end 
      --> 
      </web-app>

    i really want to do that to move to the programming..
    thank you a lot..
    Last edited by Star_pro; February 28th, 2011 at 02:24 PM. Reason: image


Similar Threads

  1. retain checked status of checkbox
    By rahulj5 in forum JavaServer Pages: JSP & JSTL
    Replies: 0
    Last Post: November 29th, 2010, 12:10 AM
  2. Checking the Status of a checkbox
    By michaelz in forum Object Oriented Programming
    Replies: 16
    Last Post: August 9th, 2010, 07:44 AM
  3. HTTP Status 500 -
    By mqt in forum What's Wrong With My Code?
    Replies: 3
    Last Post: April 6th, 2010, 02:09 AM
  4. Need java code to know the browser status
    By newnewgen in forum Java Theory & Questions
    Replies: 2
    Last Post: January 8th, 2010, 11:39 PM
  5. cant get rid of http connection
    By kartik in forum Java Networking
    Replies: 1
    Last Post: July 21st, 2009, 04:09 AM