0 Replies Latest reply on Jun 10, 2004 11:10 AM by twwwt

    Dependency check not working for HA Singleton MBean

    twwwt

      Hello!

      Based on JBoss 3.2.4 I'm developing a HA singleton MBean which is packed together with some Entity Beans to a SAR laying in "deploy-hasingleton". Because of the Entity Beans dependency to a datasource I added:

      <depends optional-attribute-name="ConnectionManager">jboss.jca:service=LocalTxCM,name=fupDS

      to jboss-service.xml. But every time JBoss starts it does not wait for the datasource being deployed before deploying the Entity Beans. On the console I see these exceptions (excerpt):

      16:50:47,484 INFO [EjbModule] Deploying ProcessEJB
      16:50:47,765 WARN [EjbModule] Could not load the org.jboss.resource.connectionmanager.CachedConnectionInterceptor interceptor for this container
      javax.management.InstanceNotFoundException: jboss.jca:service=CachedConnectionManager is not registered.
       at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:462)
       at org.jboss.mx.server.MBeanServerImpl.getAttribute(MBeanServerImpl.java:426)
      
      ...
      
      16:50:48,953 INFO [ServiceConfigurator] Problem configuring service FuP:service=ProcessManagementService
      org.jboss.deployment.DeploymentException: Exception setting attribute javax.management.Attribute: name=ConnectionManager value=jboss.jca:service=LocalTxCM,name=fupDS on mbean FuP:service=ProcessManagementService; - nested throwable: (javax.management.AttributeNotFoundException: not found: ConnectionManager)
       at org.jboss.system.ServiceConfigurator.setAttribute(ServiceConfigurator.java:490)
       at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:375)
       at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:160)
       at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:114)
       at org.jboss.system.ServiceController.install(ServiceController.java:198)
      
      ...
      
      16:50:52,390 ERROR [EntityContainer] Starting failed jboss.j2ee:jndiName=de.fup.server.ejb.entity.ProcessHome,service=EJB
      org.jboss.deployment.DeploymentException: Error: can't find data source: java:/fupDS; - nested throwable: (javax.naming.NameNotFoundException: fupDS not bound)
       at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge.init(JDBCEntityBridge.java:143)
       at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.initStoreManager(JDBCStoreManager.java:428)
       at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:365)
       at org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:147)
       at org.jboss.ejb.EntityContainer.startService(EntityContainer.java:337)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
      
      ...
      
      16:51:18,656 INFO [fupDS] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:service=LocalTxCM,name=fupDS to JNDI name 'java:/fupDS'
      
      



      Any help greatly appreciated.

      Thanks,
      Thorsten