Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-1896

jboss-service.xml parse error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • 7.0.1.Final
    • MSC
    • None
    • Hide

      Deploy sar file with simple jboss-service.xml such as
      <?xml version="1.0" encoding="UTF-8"?>

      <server>
      <mbean code="org.jboss.community.SetUidService" name="SetUid:service=SetUid">
      <attribute name="Username">agweb</attribute>
      <depends>jboss.web:service=WebServer</depends>
      </mbean>
      </server>

      Console output:

      16:36:29,726 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC00001: Failed to start service jboss.deployment.unit."setuid.sar".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."setuid.sar".PARSE: Failed to process phase PARSE of deployment "setuid.sar"
      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121)
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)
      at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [:1.6.0_20]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [:1.6.0_20]
      at java.lang.Thread.run(Thread.java:636) [:1.6.0_20]
      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: Failed to parse service xml ["/content/setuid.sar/META-INF/jboss-service.xml"]
      at org.jboss.as.service.ServiceDeploymentParsingProcessor.deploy(ServiceDeploymentParsingProcessor.java:94)
      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)
      ... 5 more
      Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[3,1]
      Message: Unexpected element 'server'
      at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:98)
      at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:59)
      at org.jboss.as.service.ServiceDeploymentParsingProcessor.deploy(ServiceDeploymentParsingProcessor.java:87)
      ... 6 more

      16:36:29,731 INFO [org.jboss.as.server.controller] (DeploymentScanner-threads - 1) Deployment of "setuid.sar" was rolled back with failure message {"Failed services" => {"jboss.deployment.unit.\"setuid.sar\".PARSE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"setuid.sar\".PARSE: Failed to process phase PARSE of deployment \"setuid.sar\""}}
      16:36:29,735 INFO [org.jboss.as.server.deployment] (MSC service thread 1-26) Stopped deployment setuid.sar in 4ms

      Show
      Deploy sar file with simple jboss-service.xml such as <?xml version="1.0" encoding="UTF-8"?> <server> <mbean code="org.jboss.community.SetUidService" name="SetUid:service=SetUid"> <attribute name="Username">agweb</attribute> <depends>jboss.web:service=WebServer</depends> </mbean> </server> Console output: 16:36:29,726 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC00001: Failed to start service jboss.deployment.unit."setuid.sar".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."setuid.sar".PARSE: Failed to process phase PARSE of deployment "setuid.sar" at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121) at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765) at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [:1.6.0_20] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [:1.6.0_20] at java.lang.Thread.run(Thread.java:636) [:1.6.0_20] Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: Failed to parse service xml ["/content/setuid.sar/META-INF/jboss-service.xml"] at org.jboss.as.service.ServiceDeploymentParsingProcessor.deploy(ServiceDeploymentParsingProcessor.java:94) at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115) ... 5 more Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col] : [3,1] Message: Unexpected element 'server' at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:98) at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:59) at org.jboss.as.service.ServiceDeploymentParsingProcessor.deploy(ServiceDeploymentParsingProcessor.java:87) ... 6 more 16:36:29,731 INFO [org.jboss.as.server.controller] (DeploymentScanner-threads - 1) Deployment of "setuid.sar" was rolled back with failure message {"Failed services" => {"jboss.deployment.unit.\"setuid.sar\".PARSE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"setuid.sar\".PARSE: Failed to process phase PARSE of deployment \"setuid.sar\""}} 16:36:29,735 INFO [org.jboss.as.server.deployment] (MSC service thread 1-26) Stopped deployment setuid.sar in 4ms

      Deployment of sar fails with parsing error of META-INF/jboss-service.xml.

              dlloyd@redhat.com David Lloyd
              rpatrick_jira Robert Patrick (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: