Abdullah75 (2) [Avatar] Offline
#1
I'm trying to deploy the first example (chapter 1) into JBoss ver 5.1.0.GA.
I'm using Ant ver 1.6.5
Java ver 1.5.0_11-b03

I'm getting the following error on server consol, could anybody help please.

Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: The content of element type "application" must match "(icon?,display-name,description?,module+,security-role*)". @ *unknown*[7,15]
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:160)
... 25 more
Caused by: org.xml.sax.SAXException: The content of element type "application" must match "(icon?,display-name,description?,module+,security-role*)". @ *unknown*[7,15]
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.handleEndElement(Unknown Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(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)
... 28 more
nkatoch2001 (35) [Avatar] Offline
#2
Re: Parsing Error while deploying example in chapter 1 on JBoss
Hi Abudllah,

Search this forum to use the right version of JBoss 4.X. You will also find the installation steps. It is very easy. This is the only server you could install in the shortest period of time. Or google it.

Thanks,

Naveen
Abdullah75 (2) [Avatar] Offline
#3
Re: Parsing Error while deploying example in chapter 1 on JBoss
Thanks Naveen;

Do you mean the problem related to JBoss version?
I'm using 5.1

Regards