Uploaded image for project: 'Codehaus Cargo'
  1. CARGO-1374

Error when referencing a JBoss 5.0 web descriptor (jboss-web_5_0.dtd)

    Details

    • Type: Bug
    • Status: Closed (View workflow)
    • Priority: Medium
    • Resolution: Fixed
    • Affects versions: 1.4.15
    • Fix versions: 1.4.19
    • Components: JBoss
    • Labels:
      None

      Description

      A bug introduced by CARGO-1322 Closed causes an error when using a jboss-web.xml with jboss-web_5_0.dtd:

      org.codehaus.cargo.container.ContainerException: Failed to create deployable with implementation class org.codehaus.cargo.container.jboss.deployable.JBossWAR for the parameters (container [
      id = [jboss71x]], deployable type [war]).
              at org.codehaus.cargo.generic.spi.AbstractGenericHintFactory.createImplementation(AbstractGenericHintFactory.java:155)
              at org.codehaus.cargo.generic.spi.AbstractIntrospectionGenericHintFactory.createImplementation(AbstractIntrospectionGenericHintFactory.java:92)
              at org.codehaus.cargo.generic.deployable.DefaultDeployableFactory.createDeployable(DefaultDeployableFactory.java:156)
              at org.codehaus.cargo.ant.DeployableElement.createDeployable(DeployableElement.java:150)
              at org.codehaus.cargo.ant.ConfigurationElement.addStaticDeployables(ConfigurationElement.java:358)
              at org.codehaus.cargo.ant.ConfigurationElement.createConfiguration(ConfigurationElement.java:327)
              at org.codehaus.cargo.ant.CargoTask.makeContainer(CargoTask.java:1130)
              at org.codehaus.cargo.ant.CargoTask.execute(CargoTask.java:548)
              at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
              at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
              ... 63 more
      Caused by: java.lang.reflect.InvocationTargetException
              at org.codehaus.cargo.generic.deployable.DefaultDeployableFactory.createInstance(DefaultDeployableFactory.java:195)
              at org.codehaus.cargo.generic.deployable.DefaultDeployableFactory.createInstance(DefaultDeployableFactory.java:46)
              at org.codehaus.cargo.generic.spi.AbstractGenericHintFactory.createImplementation(AbstractGenericHintFactory.java:149)
              ... 72 more
      Caused by: org.codehaus.cargo.container.ContainerException: Failed to parse JBoss WAR file in [myproject.war]
              at org.codehaus.cargo.container.jboss.deployable.JBossWAR.<init>(JBossWAR.java:56)
              ... 75 more
      Caused by: org.jdom.input.JDOMParseException: Error on line 19 of document http://www.jboss.org/j2ee/dtd/service-ref_5_0.dtd: Rekursive Entit├Ątsreferenz "%service-ref". (Referenzpfad: %service-ref ->
      %service-ref -> %service-ref),
              at org.jdom.input.SAXBuilder.build(SAXBuilder.java:465)
              at org.jdom.input.SAXBuilder.build(SAXBuilder.java:770)
              at org.codehaus.cargo.module.AbstractDescriptorIo.parseXml(AbstractDescriptorIo.java:129)
              at org.codehaus.cargo.module.AbstractDescriptorIo.parseXml(AbstractDescriptorIo.java:113)
              at org.codehaus.cargo.module.webapp.jboss.JBossWebXmlIo.parseJBossWebXml(JBossWebXmlIo.java:57)
              at org.codehaus.cargo.module.webapp.jboss.JBossWarArchive.parseJBossWebXml(JBossWarArchive.java:91)
              at org.codehaus.cargo.module.webapp.jboss.JBossWarArchive.<init>(JBossWarArchive.java:58)
              at org.codehaus.cargo.container.jboss.deployable.JBossWAR.<init>(JBossWAR.java:51)
              ... 75 more
      Caused by: org.xml.sax.SAXParseExceptionpublicId: -//JBoss//DTD Web Service Reference 5.0//EN; systemId: http://www.jboss.org/j2ee/dtd/service-ref_5_0.dtd; lineNumber: 19; columnNumber: 14; Rekursive
      Entit├Ątsreferenz "%service-ref". (Referenzpfad: %service-ref -> %service-ref -> %service-ref),
              at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:198)
              at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:177)
              at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:441)
              at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:368)
              at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(XMLEntityManager.java:1176)
              at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.startPE(XMLDTDScannerImpl.java:707)
              at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.skipSeparator(XMLDTDScannerImpl.java:2073)
              at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.scanDecls(XMLDTDScannerImpl.java:2036)
              at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.scanDTDExternalSubset(XMLDTDScannerImpl.java:305)
              at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.dispatch(XMLDocumentScannerImpl.java:1177)
              at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.next(XMLDocumentScannerImpl.java:1050)
              at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:964)
              at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606)
              at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:117)
              at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
              at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848)
              at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777)
              at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
              at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
              at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:648)
              at org.jdom.input.SAXBuilder.build(SAXBuilder.java:453)
              ... 82 more
      

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                martoe Martin E (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: