Hi,
following problem that is somehow related to my earlier problem concerning
the finder methods (one class was loaded by different class loaders =>
class cast exception).
Now, I've got a bean that looks up another bean and I get a class cast
exception again. Problem is that obviously the class of the bean to be looked
up is loaded by the lutris.MultiClassLoader but the stub returned by the JNDI
lookup was loaded by the sun system classloader.
We fixed this problem by changing the code in the
container.EJBContainerManager class when the class loader object is instantiated. We
changed the
constructor so that the loader's parent is the system class loader.
public static EJBContainerManager getInstance() {
if (ejbcontainermanager == null){
ejbcontainermanager = new EJBContainerManager();
cont = new Container();
loader = new MultiClassLoader(
ClassLoader.getSystemClassLoader(), //parent
null, //secondary
null //LogChannel
);
}
return ejbcontainermanager;
}
Anybody had the same problem? Is there another way to fix it?
I'm using JOnAS 2.0 on RMI, WINNT, JDK1.3 .
I downloaded the sources for 2.0.4 and saw that obviously
EJBContainerManager was somehow replaced by EJBService(Impl) but still the
MultiClassLoader
is instantiated without a parent.
Don't know if there is some other place where that might be fixed since I
couldn't build the 2.0.4. Cygwin didn't work for me. Exits right after
calling make with a really short message:
C:\objectweb>make
p was unexpected at this time.
make: *** [all] Error 1
C:\objectweb>
But this isn't so important as the first question.
BR,
Marc
--
Marc Eilens
mailto: [EMAIL PROTECTED]
Sent through GMX FreeMail - http://www.gmx.net
----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".