I have used the following and other url's as well:
http://localhost:8080/bookstore2/ and get the 404 error. When the j2ee server is fired up, I used
http://localhost:8000/bookstore2/enter and it worked fine.
Also, I am able to run other .jsp files in the webapps/root directory.
The web.xml for this app is:
<web-app>
<display-name>Bookstore2WAR</display-name>
<description>no description</description>
<
servlet>
<servlet-name>cashier</servlet-name>
<display-name>cashier</display-name>
<description>no description</description>
<jsp-file>/cashier.jsp</jsp-file>
</servlet>
<servlet>
<servlet-name>banner</servlet-name>
<display-name>banner</display-name>
<description>no description</description>
<jsp-file>/banner.jsp</jsp-file>
</servlet>
<servlet>
<servlet-name>enter</servlet-name>
<display-name>enter</display-name>
<description>no description</description>
<jsp-file>/bookstore.jsp</jsp-file>
</servlet>
<servlet>
<servlet-name>receipt</servlet-name>
<display-name>receipt</display-name>
<description>no description</description>
<jsp-file>/receipt.jsp</jsp-file>
</servlet>
<servlet>
<servlet-name>showcart</servlet-name>
<display-name>showcart</display-name>
<description>no description</description>
<jsp-file>/showcart.jsp</jsp-file>
</servlet>
<servlet>
<servlet-name>catalog</servlet-name>
<display-name>catalog</display-name>
<description>no description</description>
<jsp-file>/catalog.jsp</jsp-file>
</servlet>
<servlet>
<servlet-name>bookdetails</servlet-name>
<display-name>bookdetails</display-name>
<description>no description</description>
<jsp-file>/bookdetails.jsp</jsp-file>
</servlet>
<servlet-mapping>
<servlet-name>cashier</servlet-name>
<url-pattern>/cashier</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>enter</servlet-name>
<url-pattern>/enter</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>receipt</servlet-name>
<url-pattern>/receipt</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>showcart</servlet-name>
<url-pattern>/showcart</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>catalog</servlet-name>
<url-pattern>/catalog</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>bookdetails</servlet-name>
<url-pattern>/bookdetails</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>30</session-timeout>
</session-config>
</web-app>
[ April 26, 2005: Message edited by: tim mahoney ]
[ April 26, 2005: Message edited by: tim mahoney ]