4 Replies Latest reply on Feb 21, 2012 4:17 AM by zgood

    XMBean in jboss as 7

    zgood

      Hello all!

      My envirement is JBoss 7.1.0 CR1.

      I am trying to deploy jar with xmbean. After deploy, in logs i see:

       

      {noformat}

      09:34:08,185 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-10) Starting deployment of "test.jar"

      09:34:08,205 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-10) MSC00001: Failed to start service jboss.deployment.unit."test.jar".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."test.jar".PARSE: Failed to process phase PARSE of deployment "test.jar"

      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121) [jboss-as-server-7.1.0.CR1.jar:7.1.0.CR1]

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

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

      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [:1.6.0_22]

      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [:1.6.0_22]

      at java.lang.Thread.run(Thread.java:679) [:1.6.0_22]

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

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

      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115) [jboss-as-server-7.1.0.CR1.jar:7.1.0.CR1]

      ... 5 more

      Caused by: com.ctc.wstx.exc.WstxParsingException: Received event DTD, instead of START_ELEMENT or END_ELEMENT.

      at [row,col {unknown-source}]: [4,53]

      at com.ctc.wstx.sr.StreamScanner.constructWfcException(StreamScanner.java:606)

      at com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.java:479)

      at com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.java:464)

      at com.ctc.wstx.sr.BasicStreamReader.nextTag(BasicStreamReader.java:1143)

      at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:57) [staxmapper-1.0.0.Final.jar:1.0.0.Final]

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

      ... 6 more

      {noformat}

       

      If i delete DOCTYPE section, i see:

      {noformat}

      Unexpected content of type 'element start' named 'mbean'

      {noformat}

       

      Does JBoss As 7.1.0.CR1 support xmbean?

        • 1. Re: XMBean in jboss as 7
          dimitris

          The old XMBeans are not supported in AS7.

          • 2. Re: XMBean in jboss as 7
            zgood

            Thanks for reply, Dimitris!

            Is there any way to define mbean in JBoss as 7, and change default methods and attributes description?

            • 3. Re: XMBean in jboss as 7
              frankthetank

              Dimitris,

              Are there any plans to have something similar for AS7? I would really like to see something in this form for AS7 as our implementations rely heavily on them.

               

              @Zufar:

              You can simply just copy the old code and place it into your own jar file and deploy it.

              I did it for some tests and it works, more or less. I used it only for creating extra threads that would then send Messages.

              Send me your email via PM and I will send you what I have.

              • 4. Re: XMBean in jboss as 7
                zgood

                Thanks for reply!

                Old code will work. But what about method an attributes description? Is there way to modify description? In xmbeans i can do this with extended xmbean descriptor.