2 Replies Latest reply on Aug 17, 2011 3:04 AM by jolly-jor

    About the difference between JBossESB and JBossSOA deploying .

    jolly-jor Newbie

      Hi

       

      I use JBossESB4.9 and JBossSOA 5.1.0.GA.
      And, I have a question about deploying.

       

      I can deploy to JBossESB4.9 with test.war written under.
      but, copy test.war to JBossSOA 5.1.0.GA, test.war is not deployed.

       

      To deploy JBossSOA, do I need to set up something in test.war or jboss files?

      All I want to do is pressing "invoke" bottan of my method in JMX-conlse.

       

      Any comments would be appreciated.

       

      ============================================

      test.war
      test.war
        |
        +-WEB-INF
          |
          +-web.xml
          |
          +-classes
          |  |
          |  +-class files
          | 
          +-config
          |  |
          |  +-spring
          |    |
          |    +-applicationContext.xml
          |   
          +-lib
             |
             +-library files

       

      web.xml
      <?xml version="1.0" encoding="UTF-8"?>
      <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
      version="2.4">
      <display-name>JmxService</display-name>
      <context-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>
            /WEB-INF/config/spring/applicationContext.xml
        </param-value>
      </context-param>
         <!-- Listener contextConfigLocation -->
            <listener>
              <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
            </listener>        
      </web-app>

       

      applicationContext.xml
      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd">
      <beans>
      <bean id="JmxService"
        class="jp.co.test.JmxService">
      </bean>
      <!-- JMX -->
      <bean id="mbeanExporter" class="org.springframework.jmx.export.MBeanExporter">
        <property name="server">
         <bean class="org.jboss.mx.util.MBeanServerLocator"
          factory-method="locateJBoss" />
        </property>
        <property name="beans">
         <map>
          <entry key="jmx:service=testJmxServiceMbean" value-ref="JmxServiceMbean" />
         </map>
        </property>
      </bean>
      </beans>

       

      soa console log
      19:10:17,126 ERROR [AbstractKernelController] Error installing to Configured: name=jboss.web.deployment:war=/test sta
      te=Instantiated mode=Manual requiredState=Configured
      java.lang.RuntimeException: Exception setting attribute PolicyRegistration on mbean jboss.web.deployment:war=/test
              at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:170)
              at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:114)
              at org.jboss.system.microcontainer.ConfigureAction.installAction(ConfigureAction.java:58)
              at org.jboss.system.microcontainer.ConfigureAction.installAction(ConfigureAction.java:42)
              at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContext
      Action.java:62)
              at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:
      71)
              at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:5
      1)
              at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
              at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:297)
              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1652)
              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:938)
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:988)
              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:826)
              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:556)
              at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
              at org.jboss.system.ServiceController.install(ServiceController.java:274)
              at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:90)
              at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
              at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer
      .java:62)
              at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55)
              at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179)
              at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1454)
              at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1172)
              at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1193)
              at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1113)
              at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1652)
              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:938)
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:988)
              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:826)
              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:556)
              at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:789)
              at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:699)
              at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
              at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
              at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53
      )
              at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:
      403)
              at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1652)
              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:938)
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:988)
              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:778)
              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:543)
              at org.jboss.system.server.profileservice.repository.AbstractProfileService.registerProfile(AbstractProfileServi
      ce.java:308)
              at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:256)
              at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
              at org.jboss.Main.boot(Main.java:221)
              at org.jboss.Main$1.run(Main.java:556)
              at java.lang.Thread.run(Thread.java:662)
      Caused by: javax.management.InvalidAttributeValueException: Set attribute  has class class org.jboss.security.plugins.JB
      ossPolicyRegistration loaded from BaseClassLoader@3fe94a{security-classloader:0.0.0$MODULE} that is not assignable to at
      tribute class interface org.jboss.security.authorization.PolicyRegistration loaded from BaseClassLoader@b8aff{vfsfile:/D
      :/ap/jboss-soa-p-5/jboss-as/server/default/deploy/test.war/}
              at org.jboss.mx.interceptor.ModelMBeanAttributeInterceptor.checkAssignable(ModelMBeanAttributeInterceptor.java:2
      29)
              at org.jboss.mx.interceptor.ModelMBeanAttributeInterceptor.invoke(ModelMBeanAttributeInterceptor.java:88)
              at org.jboss.mx.interceptor.PersistenceInterceptor.invoke(PersistenceInterceptor.java:76)
              at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
              at org.jboss.mx.server.AbstractMBeanInvoker.setAttribute(AbstractMBeanInvoker.java:461)
              at org.jboss.mx.server.MBeanServerImpl.setAttribute(MBeanServerImpl.java:617)
              at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:166)
              ... 51 more
      19:10:17,204 ERROR [AbstractKernelController] Error installing to Real: name=vfsfile:/D:/ap/jboss-soa-p-5/jboss-as/serve
      r/default/deploy/test.war/ state=PreReal mode=Manual requiredState=Real
      org.jboss.deployers.spi.DeploymentException: Error deploying: jboss.web.deployment:war=/test
              at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
              at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:118)
              at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
              at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer
      .java:62)
              at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55)
              at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179)
              at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1454)
              at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1172)
              at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1193)
              at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1113)
              at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1652)
              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:938)
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:988)
              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:826)
              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:556)
              at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:789)
              at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:699)
              at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
              at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
              at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53
      )
              at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:
      403)
              at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1652)
              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:938)
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:988)
              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:778)
              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:543)
              at org.jboss.system.server.profileservice.repository.AbstractProfileService.registerProfile(AbstractProfileServi
      ce.java:308)
              at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:256)
              at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
              at org.jboss.Main.boot(Main.java:221)
              at org.jboss.Main$1.run(Main.java:556)
              at java.lang.Thread.run(Thread.java:662)
      Caused by: java.lang.RuntimeException: Exception setting attribute PolicyRegistration on mbean jboss.web.deployment:war=
      /test
              at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:170)
              at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:114)
              at org.jboss.system.microcontainer.ConfigureAction.installAction(ConfigureAction.java:58)
              at org.jboss.system.microcontainer.ConfigureAction.installAction(ConfigureAction.java:42)
              at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContext
      Action.java:62)
              at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:
      71)
              at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:5
      1)
              at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
              at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:297)
              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1652)
              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:938)
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:988)
              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:826)
              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:556)
              at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
              at org.jboss.system.ServiceController.install(ServiceController.java:274)
              at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:90)
              ... 34 more
      Caused by: javax.management.InvalidAttributeValueException: Set attribute  has class class org.jboss.security.plugins.JB
      ossPolicyRegistration loaded from BaseClassLoader@3fe94a{security-classloader:0.0.0$MODULE} that is not assignable to at
      tribute class interface org.jboss.security.authorization.PolicyRegistration loaded from BaseClassLoader@b8aff{vfsfile:/D
      :/ap/jboss-soa-p-5/jboss-as/server/default/deploy/test.war/}
              at org.jboss.mx.interceptor.ModelMBeanAttributeInterceptor.checkAssignable(ModelMBeanAttributeInterceptor.java:2
      29)
              at org.jboss.mx.interceptor.ModelMBeanAttributeInterceptor.invoke(ModelMBeanAttributeInterceptor.java:88)
              at org.jboss.mx.interceptor.PersistenceInterceptor.invoke(PersistenceInterceptor.java:76)
              at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
              at org.jboss.mx.server.AbstractMBeanInvoker.setAttribute(AbstractMBeanInvoker.java:461)
              at org.jboss.mx.server.MBeanServerImpl.setAttribute(MBeanServerImpl.java:617)
              at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:166)
              ... 51 more