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>
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>