1 Reply Latest reply on Jan 17, 2005 3:32 PM by Adrian Brock

    ManagedConnectionPool destroyed, then cannot be re-created

    David Tauzell Newbie

      I'm using JBoss 3.2.6. I occasionaly have a problem where the ManagedConnectionPool is destroyed. Then when my application tries to get a database connection JBoss appears to try and recreate the ManageConnectionPool, but fails.

      Here is some relavent output show it fail to re-create:

      DEBUG [org.jboss.resource.connectionmanager.JBossManagedCon
      nectionPool] Started jboss.jca:service=ManagedConnectionPool,name=RxHubTxDS
      2005-01-09 10:04:05,851 ERROR
      
      [org.jboss.resource.connectionmanager.TxConnectionMan
      ager] Starting failed jboss.jca:service=LocalTxCM,name=RxHubTxDS
      java.lang.ClassCastException: org.jboss.resource.connectionmanager.CachedConnection
       Manager
       at org.jboss.resource.connectionmanager.BaseConnectionManager2.startService
       ()V(BaseConnectionManager2.java:312)
       at org.jboss.resource.connectionmanager.TxConnectionManager.startService()V
      (TxConnectionManager.java:272)
      


      I tried to track down line 312 in the BaseConnectionManager2 to see what might cause the ClassCastException but that just gives me:
       {
       throw new DeploymentException("cached ConnectionManager not found: " +
      ccmName);
      


      That leads me to believe that for some reason the CachedConnectionManager is not being destoryed.

      Any ideas?

      -Dave