-
Bug
-
Resolution: Won't Do
-
Major
-
None
-
JWS 3.0.1 GA
-
None
Issue : Configuring the PreResources element in $CATALINA_HOME/conf/server.xml will throw HTTP 404 error, If same element is configured inside in Tomcat $CATALINA_HOME/conf/context.xml it will works fine.
Steps to reproduce the issue :
1. Install tomcat 8 from JWS 3.0.1.
2. Configuring the PreResources element in $CATALINA_HOME/conf/server.xml as follows :
<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true"> <Context path="/docs"> <Resources className="org.apache.catalina.webresources.StandardRoot"> <PreResources className="org.apache.catalina.webresources.DirResourceSet" base="/tmp" internalPath="/" webAppMount="/WEB-INF/classes"/> </Resources> </Context> </Host>
3. start the tomcat8
4. Now use Web browser e.g. Firefox and access to http://127.0.0.1:8080/docs/, it will throw HTTP 404 error
Additional information :
If docBase is set explicitly as follows then access to http://127.0.0.1:8080/docs/ will be successful with HTTP 200 status.
<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true"> <Context path="/docs" docBase="docs"> <Resources className="org.apache.catalina.webresources.StandardRoot"> <PreResources className="org.apache.catalina.webresources.DirResourceSet" base="/tmp" internalPath="/" webAppMount="/WEB-INF/classes"/> </Resources> </Context> </Host>