Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 7.0.1.Final
    • Fix Version/s: None
    • Component/s: MSC
    • Labels:
      None
    • Environment:

      [root@flare sarBuild]# uname -a
      Linux flare 2.6.32-131.0.15.el6.x86_64 #1 SMP Tue May 10 15:42:40 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
      24GB Memory

    • Steps to Reproduce:
      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

      Description

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

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                dmlloyd David Lloyd
                Reporter:
                rpatrick Robert Patrick
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: