Tom:
Thanks for the pointer, but it still isn't working. Here is some sample code inside the RMI server that illustrates the failure:
String s = RMIClassLoader.getClassAnnotation(PersistenceBrokerFactory.class);
ClassLoader cl = RMIClassLoader.getClassLoader(s);
org.apache.ojb.broker.util.ClassHelper.setClassLoader(cl);
PersistenceBroker pbroker = PersistenceBrokerFactory.defaultPersistenceBroker();
System.out.println("PBroker: " + pbroker.toString());
This produces the error:
-------
[BOOT] ERROR: Creation of PersistenceBrokerFactory (PBF) instance failed, can't get PBF class object
------
Any other ideas?
Brad
At 04:54 PM 6/15/2004 +0200, you wrote:
Bradford Pielech wrote:
The problem occurs the very first time we call anything to do with PersistenceBroker. Another thing of note is that the RMI server and OJB / MySQL libraries are all on the same machine.
This seems to be a classloader problem, perhaps the thread's context classloader is the RMI classloader (which does not find OJB's classes) ? If you're using a fresh version of OJB (rc7 or CVS), then you can put breakpoints into the org.apache.ojb.broker.util.ClassHelper#getClass and #newInstance methods to see which classloader is used (the PersistenceBrokerFactory is present otherwise you'd get a different error, so this occurs within OJB). Using the ClassHelper class, you can also define which classloader OJB uses.
Tom
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]