1 Reply Latest reply on Dec 20, 2002 6:20 AM by Wyvis

    Re-deployment Error

    Wyvis Newbie

      I just upgrade my JBoss 2.4 installation to 2.4.10 (with Tomcat 4.0.6) and I am having a few problems when re-deploying some CMP beans.

      I have an EAR which contains a Jar with several CMP beans in it. On startup the data source initalises and the beans are deployed succesfully. After deployment the application works OK.

      However, when I re-deploy the EAR I get the following error:

      [INFO,ContainerFactory] Deploying DatabaseSampleEJB
      [WARN,JawsApplicationMetaData] Connection init failed
      java.lang.RuntimeException: No ManagedConnections Available!
      at org.jboss.pool.ObjectPool.getObject(ObjectPool.java:696)
      ...blah, blah

      Followed by...

      ERROR,ContainerFactory] DeploymentError
      java.sql.SQLException: Connection unavailable: java.lang.RuntimeException: No ManagedConnections Available!
      at org.jboss.ejb.plugins.jaws.metadata.JawsApplicationMetaData.
      ...blah, blah...

      If I restart the service and deploy again everything is fine.

      Can anyone tell me what would cause this error and how I fix it?