Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-7036

Wrong server.xml may be loaded

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • JBossAS-4.2.3.GA
    • Web (Tomcat) service
    • None
    • Release Notes
    • Workaround Exists
    • Hide

      Add to jboss-web.deployer/META-INF/jboss-service.xml:

      <attribute name="ConfigFile">deploy/jboss-web.deployer/server.xml</attribute>

      Show
      Add to jboss-web.deployer/META-INF/jboss-service.xml: <attribute name="ConfigFile">deploy/jboss-web.deployer/server.xml</attribute>

    Description

      JBoss AS does not specify the path to server.xml, allowing JBossWeb to choose the wrong file.

      The file is only specified as "server.xml". JBossWeb looks for ${catalina.base}/server.xml, where catalina.base is ${jboss.server.home.dir}.
      If it fails to find it there (currently the normal case), it then searches the classpath for server.xml.

      If there is another server.xml in ${jboss.server.home.dir}/server.xml or anywhere in the classpath, it may get used instead.

      Attachments

        Activity

          People

            rmaucher Remy Maucherat
            rhn-support-dereed Dennis Reed
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: