ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Deploying Web Applications to Tomcat
Subject:   HELP!!! Error: The requested resource /onjava/login.jsp) is not available.
Date:   2005-04-02 20:25:56
From:   GoTarheels
Response to: HELP!!! Error: The requested resource /onjava/login.jsp) is not available.

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>


1 to 2 of 2
1 to 2 of 2