1 Reply Latest reply on Feb 20, 2002 7:04 PM by David Jencks

    need urgent help on resource manager

    stealth00 Newbie

      Hi group I asked yesterday but didn't get replies. I am trying to ask again with some detailed information. I have to make it work by tomorrow, hope someone could help me out. ( I am using jboss2.4.4).

      I have two EJB .jar files, one contains a BMP bean and a stateless bean, the other contains a CMP bean and a stateful bean. When I deploy the jar file with BMP and stateless bean, I got the warning that no resource manager found for my datasource. but other than that the jboss starts up fine and both beans worked fine. When I tried to deploy the jar file with CMP and stateful, I got the same warning about no resource manager found, which is followed with exceptions and then it shows the jar file can't be deployed. The resource manager I specified is 'org.jboss.ejb.deployment.JDBCResource'. And I think I got this from some posts on this forum. The part that defines resrouce manager in jboss.xml is:


      <enforce-ejb-restrictions>false</enforce-ejb-restrictions>
      <enterprise-beans>

      <ejb-name>Sun_CMPEntity</ejb-name>
      <jdni-name>Sun_CMPEntity</jdni-name>
      <configuration-name>Standard CMP EntityBean</configuration-name>
      <resource-ref>
      <res-ref-name>jdbc/Sun_EJBProjectPool</res-ref-name>
      <resource-name>Sun_EJBProjectPool</resource-name>
      <jndi-name>Sun_EJBProjectPool</jndi-name>
      </resource-ref>

      false

      <ejb-name>Sun_Stateful</ejb-name>
      <jndi-name>Sun_Stateful</jndi-name>
      <configuration-name>Standard Stateful SessionBean</configuration-name>

      false
      </enterprise-beans>
      <resource-managers>
      <resource-manager res-class="org.jboss.ejb.deployment.JDBCResource">
      <res-name>jdbc/Sun_EJBProjectPool</res-name>
      <res-jndi-name>java:/Sun_EJBProjectPool</res-jndi-name>
      </resource-manager>
      </resource-managers>

      <container-configurations>
      <container-configuration>

      .......


      And the exception stack trace is ( where jbosscmp.jar is my jar file ):

      [INFO,AutoDeployer] Auto deploy of file:/E:/IDEandAppSvr/JBoss-2.4.4/deploy/jbos
      scmp.jar
      [INFO,J2eeDeployer] Deploy J2EE application: file:/E:/IDEandAppSvr/JBoss-2.4.4/d
      eploy/jbosscmp.jar
      [INFO,J2eeDeployer] Create application jbosscmp.jar
      [INFO,J2eeDeployer] install EJB module jbosscmp.jar
      [INFO,ContainerFactory] Deploying:file:/E:/IDEandAppSvr/JBoss-2.4.4/tmp/deploy/D
      efault/jbosscmp.jar
      [INFO,ContainerFactory] Deploying Sun_CMPEntity
      [INFO,ContainerFactory] Deploying Sun_Stateful
      [WARN,EntityContainer] No resource manager found for Sun_EJBProjectPool
      [ERROR,ContainerFactory] DeploymentError
      org.jboss.deployment.DeploymentException: Sun_EJBProjectPool not bound
      at org.jboss.ejb.plugins.jaws.metadata.JawsApplicationMetaData.init(Jaws
      ApplicationMetaData.java:154)
      at org.jboss.ejb.plugins.jaws.metadata.JawsXmlFileLoader.load(JawsXmlFil
      eLoader.java:77)
      at org.jboss.ejb.plugins.jaws.jdbc.JDBCCommandFactory.(JDBCCommand
      Factory.java:133)
      at org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.init(JAWSPersistenc
      eManager.java:83)
      at org.jboss.ejb.plugins.CMPPersistenceManager.init(CMPPersistenceManage
      r.java:110)
      at org.jboss.ejb.EntityContainer.init(EntityContainer.java:292)
      at org.jboss.ejb.Application.init(Application.java:202)
      at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:372)
      at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:306)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
      28)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
      23)
      at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:487)

      at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:
      459)
      at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:190)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
      28)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
      23)
      at org.jboss.deployment.AutoDeployer.deploy(AutoDeployer.java:395)
      at org.jboss.deployment.AutoDeployer.run(AutoDeployer.java:233)
      at org.jboss.deployment.AutoDeployer.startService(AutoDeployer.java:371)

      at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:103
      )
      at java.lang.reflect.Method.invoke(Native Method)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
      28)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
      23)
      at org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(Conf
      igurationService.java:967)
      at $Proxy0.start(Unknown Source)
      at org.jboss.util.ServiceControl.start(ServiceControl.java:79)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
      28)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
      23)
      at org.jboss.Main.(Main.java:208)
      at org.jboss.Main$1.run(Main.java:110)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.jboss.Main.main(Main.java:106)
      [ERROR,J2eeDeployer] Starting jbosscmp.jar failed!
      [ERROR,Default] org.jboss.deployment.DeploymentException: Could not deploy file:
      /E:/IDEandAppSvr/JBoss-2.4.4/tmp/deploy/Default/jbosscmp.jar, Cause: org.jboss.d
      eployment.DeploymentException: Sun_EJBProjectPool not bound
      [ERROR,Default] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactor
      y.java:403)
      [ERROR,Default]
      [ERROR,Default] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactor
      y.java:306)
      [ERROR,Default]
      [ERROR,Default] at java.lang.reflect.Method.invoke(Native Method)
      [ERROR,Default]
      [ERROR,Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe
      rverImpl.java:1628)
      [ERROR,Default]
      [ERROR,Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe
      rverImpl.java:1523)
      [ERROR,Default]
      [ERROR,Default] at org.jboss.deployment.J2eeDeployer.startModules(J2eeDe
      ployer.java:487)
      [ERROR,Default]
      [ERROR,Default] at org.jboss.deployment.J2eeDeployer.startApplication(J2
      eeDeployer.java:459)
      [ERROR,Default]
      [ERROR,Default] at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer
      .java:190)
      [ERROR,Default]
      [ERROR,Default] at java.lang.reflect.Method.invoke(Native Method)
      [ERROR,Default]
      [ERROR,Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe
      rverImpl.java:1628)
      [ERROR,Default]
      [ERROR,Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe
      rverImpl.java:1523)
      [ERROR,Default]
      [ERROR,Default] at org.jboss.deployment.AutoDeployer.deploy(AutoDeployer
      .java:395)
      [ERROR,Default]
      [ERROR,Default] at org.jboss.deployment.AutoDeployer.run(AutoDeployer.ja
      va:233)
      [ERROR,Default]
      [ERROR,Default] at org.jboss.deployment.AutoDeployer.startService(AutoDe
      ployer.java:371)
      [ERROR,Default]
      [ERROR,Default] at org.jboss.util.ServiceMBeanSupport.start(ServiceMBean
      Support.java:103)
      [ERROR,Default]
      [ERROR,Default] at java.lang.reflect.Method.invoke(Native Method)
      [ERROR,Default]
      [ERROR,Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe
      rverImpl.java:1628)
      [ERROR,Default]
      [ERROR,Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe
      rverImpl.java:1523)
      [ERROR,Default]
      [ERROR,Default] at org.jboss.configuration.ConfigurationService$ServiceP
      roxy.invoke(ConfigurationService.java:967)
      [ERROR,Default]
      [ERROR,Default] at $Proxy0.start(Unknown Source)
      [ERROR,Default]
      [ERROR,Default] at org.jboss.util.ServiceControl.start(ServiceControl.ja
      va:79)
      [ERROR,Default]
      [ERROR,Default] at java.lang.reflect.Method.invoke(Native Method)
      [ERROR,Default]
      [ERROR,Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe
      rverImpl.java:1628)
      [ERROR,Default]
      [ERROR,Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe
      rverImpl.java:1523)
      [ERROR,Default]
      [ERROR,Default] at org.jboss.Main.(Main.java:208)
      [ERROR,Default]
      [ERROR,Default] at org.jboss.Main$1.run(Main.java:110)
      [ERROR,Default]
      [ERROR,Default] at java.security.AccessController.doPrivileged(Native Me
      thod)
      [ERROR,Default]
      [ERROR,Default] at org.jboss.Main.main(Main.java:106)
      [ERROR,Default]
      [INFO,J2eeDeployer] Module jbosscmp.jar is not running
      [INFO,J2eeDeployer] Destroying application jbosscmp.jar
      [ERROR,AutoDeployer] DeploymentInfo failed:file:/E:/IDEandAppSvr/JBoss-2.4.4/dep
      loy/jbosscmp.jar
      org.jboss.deployment.J2eeDeploymentException: Error while starting jbosscmp.jar:
      Could not deploy file:/E:/IDEandAppSvr/JBoss-2.4.4/tmp/deploy/Default/jbosscmp.
      jar, Cause: org.jboss.deployment.DeploymentException: Could not deploy file:/E:/
      IDEandAppSvr/JBoss-2.4.4/tmp/deploy/Default/jbosscmp.jar, Cause: org.jboss.deplo
      yment.DeploymentException: Sun_EJBProjectPool not bound
      at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:518)

      at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:
      459)
      at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:190)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
      28)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
      23)
      at org.jboss.deployment.AutoDeployer.deploy(AutoDeployer.java:395)
      at org.jboss.deployment.AutoDeployer.run(AutoDeployer.java:233)
      at org.jboss.deployment.AutoDeployer.startService(AutoDeployer.java:371)

      at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:103
      )
      at java.lang.reflect.Method.invoke(Native Method)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
      28)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
      23)
      at org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(Conf
      igurationService.java:967)
      at $Proxy0.start(Unknown Source)
      at org.jboss.util.ServiceControl.start(ServiceControl.java:79)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
      28)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
      23)
      at org.jboss.Main.(Main.java:208)
      at org.jboss.Main$1.run(Main.java:110)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.jboss.Main.main(Main.java:106)
      [INFO,AutoDeployer] Auto deploy of file:/E:/IDEandAppSvr/JBoss-2.4.4/deploy/lib/
      jbosspool-jdbc.rar
      [INFO,RARDeployer] Attempting to deploy RAR at 'file:/E:/IDEandAppSvr/JBoss-2.4.
      4/deploy/lib/jbosspool-jdbc.rar'
      [INFO,RARMetaData] Loading Minerva Resource Adapter for JDBC 1/2 drivers
      [INFO,RARMetaData] Required license terms present. See deployment descriptor.
      [WARN,MinervaDS] Not setting config property 'Driver'
      [WARN,MinervaDS] Not setting config property 'Password'
      [WARN,MinervaDS] Not setting config property 'UserName'
      [INFO,MinervaDS] Bound connection factory for resource adapter 'Minerva JDBC Loc
      alTransaction ResourceAdapter' to JNDI name 'java:/MinervaDS'
      [INFO,AutoDeployer] Auto deploy of file:/E:/IDEandAppSvr/JBoss-2.4.4/deploy/lib/
      jms-ra.rar
      [INFO,RARDeployer] Attempting to deploy RAR at 'file:/E:/IDEandAppSvr/JBoss-2.4.
      4/deploy/lib/jms-ra.rar'
      [WARN,JmsXA] Using default value 'java:DefaultJMSProvider' for config property '
      JmsProviderAdapterJNDI'
      [INFO,JmsXA] FINE: Setting LogWriter: org.jboss.logging.log4j.CategoryWriter@3c6
      641
      [INFO,JmsXA] Bound connection factory for resource adapter 'JMS Adapter' to JNDI
      name 'java:/JmsXA'
      [INFO,AutoDeployer] Started
      [INFO,JMXAdaptorService] Starting
      [INFO,JMXAdaptorService] Started
      [INFO,RMIConnectorService] Starting
      [INFO,RMIConnectorService] Started
      [INFO,MailService] Starting
      [INFO,MailService] Mail Service 'Mail' bound to java:/Mail
      [INFO,MailService] Started
      [INFO,jdbc/Sun_EJBProjectPool] Starting
      [INFO,jdbc/Sun_EJBProjectPool] XA Connection pool jdbc/Sun_EJBProjectPool bound
      to java:/jdbc/Sun_EJBProjectPool
      [INFO,jdbc/Sun_EJBProjectPool] Started
      [INFO,ServiceControl] Started 47 services
      [INFO,Default] JBoss-2.4.4 Started in 0m:17s.265