Article:
  Java Web Applications
Subject:   HTTP Status 404 - /
Date:   2007-01-24 02:56:17
From:   vijay-kumar-mishra
Response to: HTTP Status 404 - /

do one thing uninstall all the jdk n tomcat n reinstall all the software but dont delete the path's install in same place where that software was
Full Threads Oldest First

Showing messages 1 through 8 of 8.

  • HTTP Status 404 error in The requested resource (/Example) is not available.
    2007-01-25 03:45:14  aspai [View]

    hello sir,
    error is like this:
    HTTP Status 404 - /Example

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

    type Status report

    message /Example

    description The requested resource (/Example) is not available.


    wat to do...last 3 days i am trying,pls suggest me.its very urgent..
    • HTTP Status 404 error in The requested resource (/Example) is not available.
      2007-01-28 21:48:38  aspai [View]

      still it is givin me a same error..wat should i do..

      i tried to do in all possible ways..anybody pls suggest me...

      i am in trouble from last one week....
      • HTTP Status 404 error in The requested resource (/Example) is not available.
        2007-05-06 22:12:49  ghada80 [View]

        my servlet file path is

        C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\examples\WEB-INF\classes\HelloWorldExample.java

        and it is a famous servlet exists in Tomcat 6.0 installasion I did not build it or change it

        I try the URL

        http://localhost:8080/examples/HelloWorldExample

        And

        http://localhost:8080/HelloWorldExample

        And

        http://localhost:8080/webapps/examples/WEB-INF/classes/HelloWorldExample

        And

        http://localhost:8080/examples/WEB-INF/classes/HelloWorldExample
        And
        http://localhost:8080/WEB-INF/classes/HelloWorldExample

        And
        http://localhost:8080/classes/HelloWorldExample


        And The following message appears in the browser
        HTTP Status 404 - /examples/HelloWorldExample

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

        type Status report
        message /examples/HelloWorldExample
        description The requested resource (/examples/HelloWorldExample) is not available.

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

        Apache Tomcat/6.0.10
        I try again by changing web.xml
        by writting the URL in <servlet-name> tag, for Example
        - <servlet-mapping>
        <servlet-name>HelloWorldExample</servlet-name>
        <url-pattern>HelloWorldExample</url-pattern>
        </servlet-mapping>

        to

        <servlet-mapping>
        <servlet-name>HelloWorldExample</servlet-name>
        <url-pattern>http://localhost:8080/HelloWorldExample</url-pattern>
        </servlet-mapping>

        the same message appears,

        please help me I am in urgent need to the reply

        and if I try my own servlets what is the changes in web.xml
        • HTTP Status 404 error in The requested resource (/Example) is not available.
          2007-07-16 02:37:44  hellojava2 [View]

          you can change this

          <servlet-mapping>
          <servlet-name>HelloWorldExample</servlet-name>
          <url-pattern>HelloWorldExample</url-pattern>
          </servlet-mapping>

          to

          <servlet-mapping>
          <servlet-name>HelloWorldExample</servlet-name>
          <url-pattern>/HelloWorldExample</url-pattern>
          </servlet-mapping>

          Then it is working fine
          • HTTP Status 404 error in The requested resource (/Example) is not available.
            2009-01-20 21:09:23  Foccii [View]

            HTTP Status 404 error in The requested resource (/Emp1/EmpJsp.jsp) is not available.

            using struts

            change in struts-config file

            <form-beans>

            <form-bean name="EmpForm" type="com.hr.trainee.EmpForm" />
            </form-beans>


            <action-mappings>


            <action path="/EmpJsp" type="com.hr.trainee.EmpAction"
            name="EmpForm"
            scope="session"
            input="/EmpJsp.jsp" >

            <forward name="success" path="/DisplayJsp.jsp" />
            <forward name="failure" path="/EmpJsp.jsp" />
            </action>

            </action-mappings>
    • HTTP Status 404 error in The requested resource (/Example) is not available.
      2007-01-28 21:48:29  aspai [View]

      still it is givin me a same error..wat should i do..

      i tried to do in all possible ways..anybody pls suggest me...

      i am in trouble from last one week....
      • HTTP Status 404 error in The requested resource (/Example) is not available.
        2007-05-06 22:04:24  ghada80 [View]

        my servlet file path is

        C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\examples\WEB-INF\classes\HelloWorldExample.java

        and it is a famous servlet exists in Tomcat 6.0 installasion I did not build it or change it

        I try the URL

        http://localhost:8080/examples/HelloWorldExample

        And

        http://localhost:8080/HelloWorldExample

        And

        http://localhost:8080/webapps/examples/WEB-INF/classes/HelloWorldExample

        And

        http://localhost:8080/examples/WEB-INF/classes/HelloWorldExample
        And
        http://localhost:8080/WEB-INF/classes/HelloWorldExample

        And
        http://localhost:8080/classes/HelloWorldExample


        And The following message appears in the browser
        HTTP Status 404 - /examples/HelloWorldExample

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

        type Status report
        message /examples/HelloWorldExample
        description The requested resource (/examples/HelloWorldExample) is not available.

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

        Apache Tomcat/6.0.10

        I try again by changing web.xml
        by writting the URL in <servlet-name> tag, for Example
        - <servlet-mapping>
        <servlet-name>HelloWorldExample</servlet-name>
        <url-pattern>HelloWorldExample</url-pattern>
        </servlet-mapping>

        to

        <servlet-mapping>
        <servlet-name>HelloWorldExample</servlet-name>
        <url-pattern>http://localhost:8080/HelloWorldExample</url-pattern>
        </servlet-mapping>

        the same message appears,

        please help me I am in urgent need to the reply

        and if I try my own servlets what is the changes in web.xml
        • HTTP Status 404 error in The requested resource (/Example) is not available.
          2009-08-10 00:10:30  ramesh47 [View]

          use this,
          <servlet-mapping>
          <servlet-name>HelloWorldExample</servlet-name>
          <url-pattern>/HelloWorldExample</url-pattern>
          </servlet-mapping>

          this will work....