Women in Technology

Hear us Roar



Article:
  Deploying Web Applications to Tomcat
Subject:   HELP!!! Error: The requested resource /onjava/login.jsp) is not available.
Date:   2004-09-02 03:29:19
From:   Kav
hi,im new to using tomcat can anyone help..
Ive on the 2 page of following the instructions on the example: Deploying Web Applications to Tomcat.


Ive added everything according to the instructions, but when i go the url to test whether or not i can see the login.jsp:
http://localhost:8080/onjava/login.jsp


I get the following browser error:
HTTP Status 404 - /onjava/login.jsp
Status report


message /onjava/login.jsp


description The requested resource /onjava/login.jsp) is not available.


Can anyone help and let me know what im doing wrong.

Main Topics Oldest First

Showing messages 1 through 3 of 3.

  • HELP!!! Error: The requested resource /onjava/login.jsp) is not available.
    2005-04-02 20:25:56  GoTarheels [View]

    Try this for your servlet-mapping. There is a small difference. I struggled with this myself for weeks and finally looked at one of the examples and trial and error - - it worked.

    <web-app>
    <servlet>
    <servlet-name>login</servlet-name>
    <servlet-class>com.onjava.login</servlet-class>
    </servlet>

    <servlet-mapping>
    <servlet-name>login</servlet-name>
    <url-pattern>/servlet/com.onjava.login</url-pattern>
    </servlet-mapping>
    </web-app>
  • HELP!!! Error: The requested resource /onjava/login.jsp) is not available.
    2005-03-07 00:47:42  trahul [View]

  • HELP!!! Error: The requested resource /onjava/login.jsp) is not available.
    2004-10-13 03:54:46  Yaniv [View]

    Hi i have the same problem
    u need to update the context to reference the war file
    exmample:
    <Context path="/onjava" docBase="onjava/onjava.war"
    debug="0" privileged="true">

    </Context>

    good luck