[EMAIL PROTECTED] wrote:
>
> 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
>
Hi Marc,
Thank you for your contribution.
As we said before we are not able to reproduce your problem,
but we are changing the code that instantiate a multiClassLoader
by using the constructor with 3 parameters.
This modification will be in the JOnAS2.1 that will be available
very soon (the end of the week or the following)
When you'll get JOnAS 2.1 can you tell us if the problem is fixed?
Thanks,
Regards,
--
Philippe
Philippe Coq Evidian Phone: (33) 04 76 29 78 49
Bull S.A - 1 rue de Provence - 38432 Echirolles Cedex France
Download our EJBServer at http://www.objectweb.org
----
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".