This is the web.xml file I'm using with Resin, I think you should look at
the "web-resource-collection" part:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/j2ee/dtds/web-app_2.3.dtd">
<web-app>
<servlet>
<servlet-name>
socrates
</servlet-name>
<servlet-class>
org.apache.turbine.Turbine
</servlet-class>
<init-param>
<param-name>properties</param-name>
<!-- This is relative to the docBase -->
<param-value>
/WEB-INF/conf/TurbineResources.properties
</param-value>
</init-param>
<load-on-startup>5</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>socrates</servlet-name>
<url-pattern>/servlet/*</url-pattern>
</servlet-mapping>
<security-constraint>
<web-resource-collection>
<web-resource-name>templates</web-resource-name>
<url-pattern>/templates/*</url-pattern>
</web-resource-collection>
<web-resource-collection>
<web-resource-name>logs</web-resource-name>
<url-pattern>/logs/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>admin</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>Templates</realm-name>
</login-config>
</web-app>
Humberto Hernadez Torres wrote:
> We are trying to migrate an application from catalina to resin. We
> copied the application in the webapps of Resin and added de following
> lines in the webapps/myapp/WEB-INF/web.xml file.
>
> <servlet-mapping>
> <servlet-name>myapp</servlet-name>
> <url-pattern>/servlet/*</url-pattern>
> </servlet-mapping>
>
> I can call http://localhost/myapp/servlet/myapp/template/Index.vm but I
> cannot call it I move Index.vm to a subdirectory. Calling
> http://localhost/myapp/servlet/myapp/template/admin,Index.vm complains
> about not finding the template /Index.vm. According to my tests it is
> ignores de "admin," part of the template.
>
> The application seems to be working fine with catalina.sh so I am
> assuming there is some configuration wrong in the url-mapping to support
> a subdirectory hierachy of templates.
>
> --
> Humberto
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
--
=============================================
Andres G. Portillo D.
Software Engineer
Veratech (www.veratech.com.mx)
=============================================
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]