Deploying an ejb project from NetBeans that contains both persistence.xml and
containing the required resources fails with following exception,
TopLink, version: Oracle TopLink Essentials - 2.0 (Build b52-rc (06/20/2007))
RAR7010: Pool not reachable.
RAR5114 : Error allocating connection : [This pool is not registered with the
Exception occured in J2EEC Phase
Internal Exception: java.sql.SQLException: This pool is not registered with the
Complete stacktrace is attached.
It appears that the persistence.xml is loaded/executed before the
sun-resources.xml is loaded and hence required resources are not found.
Deploying the app containing persistence.xml but without the sun-resources.xml
succeeds if resources are pre-registered on the server.
Attached project : CustomerCMP-ejb
Deploying the app containing sun-resources.xml but without the persistence.xml
succeeds and the resources defined in the sun-resources.xml are successfully
Attached project : CustomerCMP-ejbWOPersistence
Associated NetBeans issue : http://www.netbeans.org/issues/show_bug.cgi?id=106980