Uploaded image for project: 'TomEE'
  1. TomEE
  2. TOMEE-39

context.xml of WAR not loaded

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.0-beta-2
    • 1.0.0-beta-2
    • None
    • None
    • Linux, Java6

    Description

      A WAR's context.xml is not loaded.

      If the context.xml is put in the WAR in META-INF/context.xml it is not loaded. This works with Tomcat 6 + OpenEJB.

      I attached a simple EAR containing a web module with a valid META-INF/context.xml. As test modify the context.xml so that it is invalid, e.g.

      <Context
      this context.xml is not valid
      path="/opencrx-core-CRX"
      docBase="${catalina.home}/apps/opencrx-core-CRX/opencrx-core-CRX.war"
      >
      </Context>

      TomEE deploys the EAR without warnings or errors.

      I tested a real EAR with a context.xml defining a realm which is also not loaded.

      Attachments

        1. opencrx-core-CRX.ear
          2 kB
          Werner Froidevaux

        Activity

          People

            romain.manni-bucau Romain Manni-Bucau
            wfro Werner Froidevaux
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: