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

Description

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 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

Status

Assignee

Unassigned

Reporter

Martin E

Components

Fix versions

Affects versions

1.4.15

Priority

Medium
Configure