1 Reply Latest reply on Oct 18, 2011 8:28 AM by Ales Justin

    Trying to migrate vom 6 to 7.0.2: how to migrate jboss-beans.xml (jboss:bean-deployer:2.0)

    Hans Schwäbli Newbie

      We use several jboss-beans.xml files. All works fine in JBoss AS 6. But when they are deployed inside an EAR in JBoss AS 7, a deployment error occurs.

       

      13:21:19,361 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC00001: Failed to start service jboss.deployment.unit."base-test-ear.ear".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."base-test-ear.ear".PARSE: Failed to process phase PARSE of deployment "base-test-ear.ear"

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

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

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

          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_11]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_11]

          at java.lang.Thread.run(Thread.java:619) [:1.6.0_11]

      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: Failed to parse POJO xml ["/D:/abx-dev/abx-tax-quest/appserver/jboss-as-7.0.2.Final/bin/content/base-test-ear.ear/base-jboss-1.0.1-SNAPSHOT.jar/META-INF/jboss-beans.xml"]

          at org.jboss.as.pojo.KernelDeploymentParsingProcessor.parseDescriptor(KernelDeploymentParsingProcessor.java:130)

          at org.jboss.as.pojo.KernelDeploymentParsingProcessor.parseDescriptors(KernelDeploymentParsingProcessor.java:104)

          at org.jboss.as.pojo.KernelDeploymentParsingProcessor.deploy(KernelDeploymentParsingProcessor.java:76)

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

          ... 5 more

      Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[2,1]

      Message: Unexpected element '{urn:jboss:bean-deployer:2.0}deployment'

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

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

          at org.jboss.as.pojo.KernelDeploymentParsingProcessor.parseDescriptor(KernelDeploymentParsingProcessor.java:123)

          ... 8 more

       

      Our jboss-beans.xml files look like this:

       

      <?xml version="1.0" encoding="UTF-8"?>

      <deployment xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

                  xsi:schemaLocation="urn:jboss:bean-deployer:2.0 bean-deployer_2_0.xsd"

                  xmlns="urn:jboss:bean-deployer:2.0">

       

          <bean name="HibernateConfigService" class="ch.abraxas.base.jboss.service.HibernateConfigService"/>

         

          <bean name="ContainerBootstrap_Delegate" class="ch.abraxas.base.jboss.service.ServiceLifeCycleDelegate">

              <property name="delegatee"><inject bean="ContainerBootstrap"/></property>

          </bean>

          <bean name="ContainerBootstrap" class="ch.abraxas.base.jboss.service.ContainerBootstrap">

              <!-- <property name="hibernateConf"><inject bean="HibernateConfigService"/></property>  -->

              <!-- Make sure the HibernateConfigService has already created the Hibernate configuration

                  in its start-up code. -->

              <depends>HibernateConfigService</depends>

              <depends>Parameter_Delegate</depends>

          </bean>

         

      </deployment>

       

      How to migrate these jboss-beans.xml files to JBoss AS 7?