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

jboss 5 GA, "Context not found as a child of Host" in server.xml

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • JBossAS-5.0.0.GA
    • Web (Tomcat) service
    • None

    Description

      In server.xml, the following worked from at least 4.0.5 until 5.0.0.Beta4

      <Host name="localhost">
      <Valve className="org.jboss.web.tomcat.service.jca.CachedConnectionValve"
      cachedConnectionManagerObjectName="jboss.jca:service=CachedConnectionManager"
      transactionManagerObjectName="jboss:service=TransactionManager" />

      <Context path="/dev" docBase="/programs/myDev" reloadable="true"/>

      </Host>

      This error now gets thrown in 5.0.0GA:

      11:48:18,994 ERROR [AbstractKernelController] Error installing to Start: name=WebServer state=Create

      org.jboss.xb.binding.JBossXBException: Failed to parse source: Context not found as a child of Host
      at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:203)
      at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:183)
      at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:133)
      at org.jboss.web.tomcat.service.deployers.TomcatService.startService(TomcatService.java:171)

      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:376)
      ...

      There are no release notes or other docs I can find explaining this change. The latest tomcat docs say:

      http://tomcat.apache.org/tomcat-6.0-doc/config/context.html

      "Context elements may be explicitly defined:
      ...
      inside a Host element in the main conf/server.xml

      Attachments

        Activity

          People

            rmaucher Remy Maucherat
            iksrazal_jira robert lazarski (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: