Hiroshi Higuchi (2247990) wrote:
Hello!

Hello Hiroshi,

When I run OpenEJB outside my application, i.e. remote server, I can
access entity beans stored in a database. However, it is not the case
when I run it as a local server. It throws the following exception when
it tries to retrieve an entity bean via home interface.


It seems to be failing to make connection to the database, so I thought
the configuration file may be incorrect. However, it works fine if
OpenEJB runs as a remote server using the same configuration files.

I can retrieve the home interface from the server. What I cannot do is
accessing/creating entity beans in a database. I really appreciate a lot
if somebody could help me out here.

Thank you!!


OpenEJB 0.9.2 Java version 1.4.2_03

java.rmi.RemoteException: The bean encountered a non-application exception.; nested exception is: java.rmi.RemoteException: Castor JDO DatabaseNotFoundException thrown when attempting to begin a local transaciton; nested exception is: org.exolab.castor.jdo.DatabaseNotFoundException: Nested error: java.net.MalformedURLException: unknown protocol: c

I don't know why it fails when the configuration is used by the Local Server, and neither does it when used in the remote mode. The only explanation is that both use different configuration files.


As to the exception above, it seems that one of the file paths specified in the config files starts with 'c:/'. I guess you work on Windows and that's why you specified it that way. Change the file path so that it starts with 'file://c:/'.

As to the difference in OpenEJB runs when running remotely vs embedded (locally), are you sure that the same config files are used? Try deleting one of them so OpenEJB will end up with an exception that it missed that.

----------------------------------------------------
Hiroshi Higuchi <[EMAIL PROTECTED]>
University of New South Wales (Sydney Australia)
----------------------------------------------------

Jacek

Reply via email to