1 Reply Latest reply on Jul 19, 2013 4:40 AM by Stephen Coy

    XML Parse Error message-destination

    danos metal Newbie

      Hello to all,

       

      I want to deploy .ear file but i stuck on a XML parse error which i can not resolve.

      I have the following error

       

      05:22:29,310 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of "null" (runtime-name: "tradeStreamerAppClient.jar")

      05:22:29,309 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015876: Starting deployment of "null" (runtime-name: "tradeEJB.jar")

      05:22:30,320 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC00001: Failed to start service jboss.deployment.subunit."trade.ear"."tradeEJB.jar".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."trade.ear"."tradeEJB.jar".PARSE: JBAS018733: Failed to process phase PARSE of subdeployment "tradeEJB.jar" of deployment "trade.ear"

              at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:127) [jboss-as-server-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.4.GA.jar:1.0.4.GA]

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.4.GA.jar:1.0.4.GA]

              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_25]

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_25]

              at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_25]

      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS014185: Exception while parsing ejb-jar.xml: /content/trade.ear/tradeEJB.jar/META-INF/ejb-jar.xml

              at org.jboss.as.ejb3.deployment.processors.EjbJarParsingDeploymentUnitProcessor.parseEjbJarXml(EjbJarParsingDeploymentUnitProcessor.java:249)

              at org.jboss.as.ejb3.deployment.processors.EjbJarParsingDeploymentUnitProcessor.deploy(EjbJarParsingDeploymentUnitProcessor.java:120)

              at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:120) [jboss-as-server-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]

              ... 5 more

      Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[930,9]

      Message: Unexpected element '{http://java.sun.com/xml/ns/j2ee}message-destination' encountered

              at org.jboss.metadata.parser.util.MetaDataElementParser.unexpectedElement(MetaDataElementParser.java:109)

              at org.jboss.metadata.ejb.parser.spec.AbstractMetaDataParser.processElement(AbstractMetaDataParser.java:56)

              at org.jboss.metadata.ejb.parser.spec.AssemblyDescriptorMetaDataParser.processElement(AssemblyDescriptorMetaDataParser.java:113)

              at org.jboss.metadata.ejb.parser.spec.AssemblyDescriptorMetaDataParser.processElement(AssemblyDescriptorMetaDataParser.java:42)

              at org.jboss.metadata.ejb.parser.spec.AbstractMetaDataParser.processElements(AbstractMetaDataParser.java:69)

              at org.jboss.metadata.ejb.parser.spec.AssemblyDescriptorMetaDataParser.parse(AssemblyDescriptorMetaDataParser.java:52)

              at org.jboss.metadata.ejb.parser.spec.AbstractEjbJarMetaDataParser.processElement(AbstractEjbJarMetaDataParser.java:141)

              at org.jboss.metadata.ejb.parser.spec.AbstractEjbJarMetaDataParser.processElement(AbstractEjbJarMetaDataParser.java:39)

              at org.jboss.metadata.ejb.parser.spec.AbstractMetaDataParser.processElements(AbstractMetaDataParser.java:69)

              at org.jboss.metadata.ejb.parser.spec.EjbJarMetaDataParser.parseDocument(EjbJarMetaDataParser.java:110)

              at org.jboss.metadata.ejb.parser.spec.EjbJarMetaDataParser.parse(EjbJarMetaDataParser.java:54)

              at org.jboss.as.ejb3.deployment.processors.EjbJarParsingDeploymentUnitProcessor.parseEjbJarXml(EjbJarParsingDeploymentUnitProcessor.java:246)

              ... 7 more

       

      Which seems that the message-destination file,propably, at the xsd file in not defined.

      It's seems to be an easy task but unfortunatelly i am not too keen on xsd and xml,thus i would appriciate any help.
      I have also attached the according files.

       

      Thanks,

      danos