Discussions

EJB programming & troubleshooting: java.rmi.RemoteException: Could not create Entity EJB

  1. Any ideas what common mistakes generate this exception? Any help is appreciated thanks...

    I have succesfully deployed the EJB from the examples in the **\j2sdkee1.2.1\doc\guides\ejb\examples\account** following the instructions therein.

    The EJB is deployed on the same machine as I'm running the client, and I have checked that the JNDI name in the JAR matches the initial context lookup string.

    /////////////////////////////////////
    //COMMAND LINE FOR TESTING THE CLIENT

    C:\j2sdkee1.2.1\doc\guides\ejb\examples\account>java -classpath ".;c:\j2sdkee1.2.1\lib\j2ee.jar;C:\Java\J2EE Deployment\Account\AccountClient.jar;" AccountClient

    ////////////
    //EXCEPTION

    Caught an exception.
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
            java.rmi.RemoteException: Could not create Entity EJB

  2. Is that the only message given by that exception???
    if not can you post the full text of the exception message.

    Test the JDBC driver and the connection pool etc . I mean try connecting to the database using the connection pool from a command line program.