Uploaded image for project: 'JBoss Web Server'
  1. JBoss Web Server
  2. JWS-288

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • JWS 3.0.1 GA
    • tomcat8
    • 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>
      

              rhn-support-csutherl Coty Sutherland
              rhn-support-dmasirka Dasharath Masirkar
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: