cannot open Connection pool - Weblogic 5.1

Discussions

EJB programming & troubleshooting: cannot open Connection pool - Weblogic 5.1

  1. cannot open Connection pool - Weblogic 5.1 (2 messages)

    I am Working on a entity bean in WEblogic server 5.1. I get the following error, stating that could not open the connection pool. I have checked the same. I am new to this, please, do any one have idea on this

    This is the following error message.

    java.rmi.UnmarshalException: Weblogic RemoteException(weblogic.rjvm.PeerGoneException) remapped from:weblogic.rjvm.PeerGoneException:
     - with nested exception:
    [weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Unsolicited error response for #-1weblogic.rmi.UnmarshalException: Failed to marshal error response: 'weblogic.ejb.common.DeploymentException: Could not setup the persistence store for this bean.; nested exception is:
    weblogic.cmp.rdbms.ConnectionPoolException: Could not open connection pool named 'oraclepool'. Cannot deploy CMP Entity Bean.' because exception
     - with nested exception:
    [java.io.NotSerializableException: weblogic.ejb.deployment.dd.EntityBeanDescriptor] ]]; nested exception is:
    weblogic.rjvm.PeerGoneException:
     - with nested exception:
    [weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Unsolicited error response for #-1weblogic.rmi.UnmarshalException: Failed to marshal error response: 'weblogic.ejb.common.DeploymentException: Could not setup the persistence store for this bean.; nested exception is:
    weblogic.cmp.rdbms.ConnectionPoolException: Could not open connection pool named 'oraclepool'. Cannot deploy CMP Entity Bean.' because exception
     - with nested exception:
    [java.io.NotSerializableException: weblogic.ejb.deployment.dd.EntityBeanDescriptor] ]]

    weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Unsolicited error response for #-1weblogic.rmi.UnmarshalException: Failed to marshal error response: 'weblogic.ejb.common.DeploymentException: Could not setup the persistence store for this bean.; nested exception is:
    weblogic.cmp.rdbms.ConnectionPoolException: Could not open connection pool named 'oraclepool'. Cannot deploy CMP Entity Bean.' because exception
     - with nested exception:
    [java.io.NotSerializableException: weblogic.ejb.deployment.dd.EntityBeanDescriptor] ]

    at weblogic.rjvm.RJVMImpl.dispatch(RJVMImpl.java:776)

    at weblogic.rjvm.ConnectionManagerClient.handleRJVM(ConnectionManagerClient.java:34)

    at weblogic.rjvm.ConnectionManager.dispatch(ConnectionManager.java:630)

    at weblogic.socket.JVMAbbrevSocket.dispatch(JVMAbbrevSocket.java:393)

    at weblogic.socket.JVMSocketT3.dispatch(JVMSocketT3.java:355)

    at weblogic.socket.JavaSocketMuxer.processSockets(JavaSocketMuxer.java:247)

    at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:23)

    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:135)



    --------------- nested within: ------------------

    weblogic.rjvm.PeerGoneException:
     - with nested exception:
    [weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Unsolicited error response for #-1weblogic.rmi.UnmarshalException: Failed to marshal error response: 'weblogic.ejb.common.DeploymentException: Could not setup the persistence store for this bean.; nested exception is:
    weblogic.cmp.rdbms.ConnectionPoolException: Could not open connection pool named 'oraclepool'. Cannot deploy CMP Entity Bean.' because exception
     - with nested exception:
    [java.io.NotSerializableException: weblogic.ejb.deployment.dd.EntityBeanDescriptor] ]]

    at weblogic.rmi.extensions.AbstractRequest.sendReceive(AbstractRequest.java:76)

    at weblogic.ejb.common.EJBManager_WLStub.deploy(EJBManager_WLStub.java:304)

    at weblogic.ejb.ui.deployer.WLSDeployAgent$DeployThread.run(WLSDeployAgent.java:328)

    Deployment failed.


    Ranjit
  2. Here are some checkpoints:
    1. Check to see if the database driver is in your weblogic classpath.
    2. When you start weblogic server, look at the console messages to see if the connection pool has been created.
    3. Make sure that you datasource points correctly to this pool in your bean.
    javax.sql.DataSource ds = (javax.sql.DataSource) initCtx.lookup("java:comp/env/jdbc/oraclePool");


  3. In the message above, point # 3 is meant for BMP.