2 Replies Latest reply on Apr 6, 2018 10:29 AM by Vamshi Krishna

    Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYSAR0006: Failed to parse service xml

    Vamshi Krishna Newbie

      Hey there,

      I am working on a migration project from jboss 5 to jboss EAP 7,  I have deployed the current (java 8) equivalent code to EAP7 and trying to bring up my machine, the deployment of the ear file seems to be failing with below error while parsing the service.xml. Does EAP7 recognize the jboss-service.xml  ..? What's the use of jboss-service.xml ? Any help would be appreciated, thanks in advance !!

       

       

      2018-04-05 15:43:11,123 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC000001: Failed to start service jboss.deployment.subunit."SNAPSHOT.ear"."SNAPSHOT.jar".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."SNAPSHOT.ear"."SNAPSHOT.jar".PARSE: WFLYSRV0153: Failed to process phase PARSE of subdeployment "SNAPSHOT.jar" of deployment "SNAPSHOT.ear"

              at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:172)

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:2032)

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1955)

              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

              at java.lang.Thread.run(Thread.java:748)

      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYSAR0006: Failed to parse service xml ["/content/SNAPSHOT.ear/SNAPSHOT.jar/META-INF/jboss-service.xml"]

              at org.jboss.as.service.ServiceDeploymentParsingProcessor.deploy(ServiceDeploymentParsingProcessor.java:103)

              at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:165)

              ... 5 more

      Caused by: java.lang.IllegalStateException: Not a textual event (START_ELEMENT)

              at com.ctc.wstx.sr.BasicStreamReader.throwNotTextual(BasicStreamReader.java:5503)

              at com.ctc.wstx.sr.BasicStreamReader.getText(BasicStreamReader.java:857)

              at org.jboss.staxmapper.XMLExtendedStreamReaderImpl.getText(XMLExtendedStreamReaderImpl.java:275)

              at org.jboss.as.service.descriptor.JBossServiceXmlDescriptorParser.unexpectedContent(JBossServiceXmlDescriptorParser.java:638)

              at org.jboss.as.service.descriptor.JBossServiceXmlDescriptorParser.parseMBean(JBossServiceXmlDescriptorParser.java:271)

              at org.jboss.as.service.descriptor.JBossServiceXmlDescriptorParser.readElement(JBossServiceXmlDescriptorParser.java:192)

              at org.jboss.as.service.descriptor.JBossServiceXmlDescriptorParser.readElement(JBossServiceXmlDescriptorParser.java:48)

              at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110)

              at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:69)

              at org.jboss.as.service.ServiceDeploymentParsingProcessor.deploy(ServiceDeploymentParsingProcessor.java:96)

              ... 6 more