Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tomcat works but my webapps not reachable!

Status
Not open for further replies.

josepco

Programmer
Jan 30, 2007
3
US
Hi,
I installed jakarta.Tomcat/5.0.28. It works well. The examples work also.
I put my wep application in /usr/local/tomcat/webapps/myApp,
and when I try I have this message:

HTTP Status 404 - /myApp
type Status report
message /myApp
description The requested resource (/myApp) is not available.

So I can't understand why I can access to the tomcat's examples but not my web application.

Any idea?
Thanks for helping.

--------
my WEB-INF/web.xml:
<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "<web-app>
<servlet>
<servlet-name>myApp</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>

<servlet-mapping>
<servlet-name>myApp</servlet-name>
<url-pattern>*.html</url-pattern>
</servlet-mapping>

<welcome-file-list>
<welcome-file>
index.htm
</welcome-file>
</welcome-file-list>

<security-constraint>
<web-resource-collection>
<web-resource-name>myApp Collection</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>testing</role-name>
</security-constraint>
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>myApp Collection</realm-name>
</login-config>

<security-role>
<description>Testing employees</description>
<role-name>testing</role-name>
</security-role>

</web-app>

-----------
my META-INF/context.xml
<?xml version="1.0" encoding="UTF-8"?>
<Context path="/">
</Context>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top