Added in all the settings required. For now, the merge all doesn't work, but if you don't provide a web.xml, this will work.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113111 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
1 parent
049758cb1b
commit
ee2631a209
1 file changed
+68
@@ -5,5 +5,73 @@
|
||||
<!-- Empty web.xml to use when the user project does not provide a web.xml.
|
||||
We need a web.xml in order to perform the merge with our web.xml
|
||||
DVSL template. See plugin.jelly. -->
|
||||
<!-- Note: This web.xml is currently populated with a sample set of settings
|
||||
until we get the merging of a web.xml and the standards values working. -->
|
||||
|
||||
<filter>
|
||||
<filter-name>FilterRedirector</filter-name>
|
||||
<filter-class>org.apache.cactus.server.FilterTestRedirector</filter-class>
|
||||
</filter>
|
||||
|
||||
<filter-mapping>
|
||||
<filter-name>FilterRedirector</filter-name>
|
||||
<url-pattern>/FilterRedirector</url-pattern>
|
||||
</filter-mapping>
|
||||
|
||||
|
||||
<servlet>
|
||||
<servlet-name>ServletRedirector</servlet-name>
|
||||
<servlet-class>org.apache.cactus.server.ServletTestRedirector</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>ServletRedirectorSecure</servlet-name>
|
||||
<servlet-class>org.apache.cactus.server.ServletTestRedirector</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>JspRedirector</servlet-name>
|
||||
<jsp-file>/jspRedirector.jsp</jsp-file>
|
||||
</servlet>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>ServletRedirector</servlet-name>
|
||||
<url-pattern>/ServletRedirector</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>ServletRedirectorSecure</servlet-name>
|
||||
<url-pattern>/ServletRedirectorSecure</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>JspRedirector</servlet-name>
|
||||
<url-pattern>/JspRedirector</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<security-constraint>
|
||||
<web-resource-collection>
|
||||
<web-resource-name>SecurityRestriction</web-resource-name>
|
||||
<description>Protect the Cactus redirector servlet.</description>
|
||||
<url-pattern>/ServletRedirectorSecure</url-pattern>
|
||||
<http-method>GET</http-method>
|
||||
<http-method>POST</http-method>
|
||||
</web-resource-collection>
|
||||
<auth-constraint>
|
||||
<description>Authorized Users Group</description>
|
||||
<role-name>test</role-name>
|
||||
</auth-constraint>
|
||||
<user-data-constraint>
|
||||
<transport-guarantee>NONE</transport-guarantee>
|
||||
</user-data-constraint>
|
||||
</security-constraint>
|
||||
|
||||
<login-config>
|
||||
<auth-method>BASIC</auth-method>
|
||||
</login-config>
|
||||
|
||||
<security-role>
|
||||
<description>Test role</description>
|
||||
<role-name>test</role-name>
|
||||
</security-role>
|
||||
</web-app>
|
||||
Reference in new issue
Block a user