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.
getConnection(JawsApplicationMetaData.java:121)
...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?
Thanks.
I forgot to mention the same EAR will deploy and re-deploy correctly on 2.4.4 (Tomcat 4.0.1).
Any help appreciated.
Thanks.