wood burning stoves 2.0*
The moose likes JBoss/WildFly and the fly likes Deployment is getting failed in JBoss 5.1.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Deployment is getting failed in JBoss 5.1.1" Watch "Deployment is getting failed in JBoss 5.1.1" New topic
Author

Deployment is getting failed in JBoss 5.1.1

sagar shiraguppi
Ranch Hand

Joined: Jul 16, 2007
Posts: 74
Hi All,

I recently migrated project from ejb 2 to ejb 3, build is getting success after the EJB 3 changes , but now I am not able to deploy the EJB 3 ear into JBoss 5.1.1 EAP, I am pasting the log below

Caused by: java.lang.RuntimeException: Error determining structure: ABCD.ear
at org.jboss.deployment.EARStructure.determineStructure(EARStructure.java:307)
at org.jboss.deployers.vfs.plugins.structure.StructureDeployerWrapper.determineStructure(StructureDeployerWrapper.java:73)
at org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl.doDetermineStructure(VFSStructuralDeployersImpl.java:196)
at org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl.determineStructure(VFSStructuralDeployersImpl.java:221)
at org.jboss.deployers.structure.spi.helpers.AbstractStructuralDeployers.determineStructure(AbstractStructuralDeployers.java:77)
... 21 more
Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: Element type "XDtAnt:property" must be declared. @ *unknown*[6,60]
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:161)
at org.jboss.deployment.EARStructure.determineStructure(EARStructure.java:162)
... 25 more
Caused by: org.xml.sax.SAXException: Element type "XDtAnt:property" must be declared. @ *unknown*[6,60]
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$MetaDataErrorHandler.error(SaxJBossXBParser.java:426)
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(Unknown Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:199)


Please let me know what could be done to overcome this.
thanks.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10067
    
163

Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: Element type "XDtAnt:property" must be declared. @ *unknown*[6,60]

You have got some xml file within your application with that invalid content. Do a text search for that XDtAnt string within your application's xml files to find out which file has it. Then fix that xml to follow the xsd schema rules.

[My Blog] [JavaRanch Journal]
sagar shiraguppi
Ranch Hand

Joined: Jul 16, 2007
Posts: 74
@Jaikiran Pai

Thank you, it is solved now!
 
Don't get me started about those stupid light bulbs.
 
subject: Deployment is getting failed in JBoss 5.1.1