1 Reply Latest reply on Oct 22, 2007 4:55 PM by DAVID WONG

    ManagedConnectionFactory org.jboss.deployment.DeploymentExce

    DAVID WONG Newbie


      Hi,

      I'm trying to use embedded JBoss with my application without much success; I'm keep getting the following exception (complete log is enclosed at the end as well):

      ERROR 22-10 16:26:37,515 (DeployerWrapper.java:commitDeploy:177) -Error during deployment: jboss.jca:name=DefaultDS,service=ManagedConnectionFactory
      org.jboss.deployment.DeploymentException: Error during install jboss.jca:service=ManagedConnectionFactory,name=DefaultDS
      at org.jboss.deployment.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:52)


      I was able to get the docs\tutorial\plain\plain-java-application sample to work in embedded JBoss though.

      Thanks,
      -David

      C:\views\dw-wxp02__bac_prototype.ntss\vob\enm_bacc\meteorite\meteorite\functest\target\test-classes>c:\j2sdk1.5.0_08\jre\bin\java -cp C:\embedded-jboss-beta2\bootstrap;C:\embedded-jboss-beta2\lib\hibernate-all.jar;C:\embedded-jboss-beta2\lib\jboss-embedded-all.jar;C:\embedded-jboss-beta2\lib\thirdparty-all.jar;c:\embedded-jboss-beta2\bootstrap\deploy\data-ear-1.0-SNAPSHOT.ear;c:\embedded-jboss-beta2\bootstrap\deploy\inventory-ear-1.0-SNAPSHOT.ear;c:\embedded-jboss-beta2\lib\data-ejb-1.0-SNAPSHOT.jar;c:\embedded-jboss-beta2\lib\inventory-ejb-1.0-SNAPSHOT.jar;./ com.cisco.nm.comet.test.inventory.TestInventorySLSB
      WARN 22-10 16:26:34,218 (UnifiedLoaderRepository3.java:addClassLoader:675) -Tried to add non-URLClassLoader. Ignored
      INFO 22-10 16:26:35,171 (TransactionManagerService.java:startService:126) -JBossTS Transaction Service (JTA version) - JBoss Inc.
      INFO 22-10 16:26:35,171 (TransactionManagerService.java:startService:128) -Setting up property manager MBean and JMX layer
      WARN 22-10 16:26:35,218 (TxControl.java::266) -[com.arjuna.ats.arjuna.coordinator.TxControl_1] - Name of XA node not defined. Using -5ed3bf37:d3c:471d077b:0
      INFO 22-10 16:26:35,250 (TransactionStatusManager.java:addService:110) -[com.arjuna.ats.arjuna.recovery.TransactionStatusManager_1] - Starting service com.arjuna.ats.arjuna.recovery.ActionStatusService on port 3388
      INFO 22-10 16:26:35,250 (?:?:?) -TransactionStatusManagerItem - host: 161.44.64.201 port: 3388
      INFO 22-10 16:26:35,281 (TransactionStatusManager.java:start:161) -[com.arjuna.ats.arjuna.recovery.TransactionStatusManager_3] - TransactionStatusManager started on port 3388 with service com.arjuna.ats.arjuna.recovery.ActionStatusService
      INFO 22-10 16:26:35,281 (?:?:?) -Registering mbean for module 'arjuna'
      INFO 22-10 16:26:35,296 (?:?:?) -Initialising JMX agent com.arjuna.ats.internal.jbossatx.agent.LocalJBossAgentImpl
      INFO 22-10 16:26:35,312 (TransactionManagerService.java:startService:163) -Starting recovery manager
      INFO 22-10 16:26:35,312 (?:?:?) -
      --- Start RecoveryActivators
      INFO 22-10 16:26:35,328 (RecoveryManagerImple.java::142) -[com.arjuna.ats.internal.arjuna.recovery.ready] RecoveryManagerImple is ready on port 3,390
      INFO 22-10 16:26:35,328 (TransactionManagerService.java:startService:168) -Recovery manager started
      INFO 22-10 16:26:35,328 (TransactionManagerService.java:startService:191) -Binding TransactionManager JNDI Reference
      INFO 22-10 16:26:37,218 (MCKernelAbstraction.java:install:119) -installing bean: persistence.units:ear=data-ear-1.0-SNAPSHOT.ear,unitName=comet-data with dependencies:
      INFO 22-10 16:26:37,218 (MCKernelAbstraction.java:install:131) - jboss.jca:name=DefaultDS,service=DataSourceBinding
      ERROR 22-10 16:26:37,515 (DeployerWrapper.java:commitDeploy:177) -Error during deployment: jboss.jca:name=DefaultDS,service=ManagedConnectionFactory
      org.jboss.deployment.DeploymentException: Error during install jboss.jca:service=ManagedConnectionFactory,name=DefaultDS
      at org.jboss.deployment.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:52)
      at org.jboss.system.ServiceController.install(ServiceController.java:277)
      at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:94)
      at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
      at org.jboss.deployers.plugins.deployers.helpers.AbstractSimpleRealDeployer.deploy(AbstractSimpleRealDeployer.java:56)
      at org.jboss.deployers.plugins.deployer.AbstractSimpleDeployer.commitDeploy(AbstractSimpleDeployer.java:52)
      at org.jboss.deployers.plugins.deployer.DeployerWrapper.commitDeploy(DeployerWrapper.java:170)
      at org.jboss.deployers.plugins.deployment.MainDeployerImpl.commitDeploy(MainDeployerImpl.java:592)
      at org.jboss.deployers.plugins.deployment.MainDeployerImpl.commitDeploy(MainDeployerImpl.java:603)
      at org.jboss.deployers.plugins.deployment.MainDeployerImpl.process(MainDeployerImpl.java:476)
      at org.jboss.deployers.plugins.deployment.MainDeployerImpl.process(MainDeployerImpl.java:406)
      at org.jboss.embedded.DeploymentScanner.start(DeploymentScanner.java:109)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:55)
      at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:108)
      at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
      at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:103)
      at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:145)
      at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.installAction(KernelControllerContextAction.java:197)
      at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.install(KernelControllerContextAction.java:136)
      at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:233)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:724)
      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:445)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:555)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:489)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:289)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:192)
      at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean(AbstractKernelDeployer.java:302)
      at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBeans(AbstractKernelDeployer.java:272)
      at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(AbstractKernelDeployer.java:119)
      at org.jboss.kernel.plugins.deployment.xml.BeanXMLDeployer.deploy(BeanXMLDeployer.java:96)
      at org.jboss.embedded.Bootstrap.deployBaseBootstrapUrl(Bootstrap.java:150)
      at org.jboss.embedded.Bootstrap.bootstrapURL(Bootstrap.java:162)
      at org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:201)
      at org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:214)
      at com.cisco.nm.comet.test.inventory.TestInventorySLSB.setUp(TestInventorySLSB.java:71)
      at com.cisco.nm.comet.test.inventory.TestInventorySLSB.main(TestInventorySLSB.java:55)
      Caused by: java.lang.IllegalStateException: jboss.jca:name=DefaultDS,service=ManagedConnectionFactory is already installed.
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:264)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:192)
      at org.jboss.system.ServiceController.doInstall(ServiceController.java:638)
      at org.jboss.system.ServiceController.install(ServiceController.java:271)
      ... 39 more

        • 1. Re: ManagedConnectionFactory org.jboss.deployment.Deployment
          DAVID WONG Newbie


          scoll down little more... I see the IllegalStateException. Are they related? And what may cause the problem?

          Caused by: java.lang.IllegalStateException: jboss.jca:name=DefaultDS,service=ManagedConnectionFactory is already installed.
          at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:264)
          at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:192)
          at org.jboss.system.ServiceController.doInstall(ServiceController.java:638)
          at org.jboss.system.ServiceController.install(ServiceController.java:271)
          ... 39 more