hello,
i just debugged the OpenEJB block in intellij idea,
below is the classloader hirarchy i got from intellij.
+ java.net.URLClassLoader (1)
|
`-+ org.apache.avalon.phoenix.components.classloader.PolicyClassLoader (2)
|
`-+ sun.misc.Launcher$AppClassLoader (3)
|
`-+ sun.misc.Launcher$ExtClassLoader (4)
1) contains the Java Enterprise Beans
2) contains all the jars located in SAR-INF/lib
and needed by OpenEJB
3) contains the phoenix-loader jar
4) contains all jars from $PHOENIX_HOME/lib
needed by phoenix
while loading an enterprise bean, the bean itself gets
loaded but not the interface that is implemented by
the bean. allthough the ejb-1.0.jar is definitly in CL #2.
this seems totally weird to me and i am not making
any progress with this issue.
regards
daniel s. haischt
--
> -----Urspr�ngliche Nachricht-----
> Von: Peter Donald [mailto:[EMAIL PROTECTED]]
> Gesendet: Montag, 14. Oktober 2002 15:05
> An: Avalon-Phoenix Developers List
> Betreff: Re: [QUESTION] having classloader problems with OpenEJB
>
>
> Hi,
>
> On Sun, 13 Oct 2002 22:25, Daniel S. Haischt wrote:
> > as documented in the jdk documentation, each CL delegates
> > class loading requests via loadClass() to its parent CL.
>
> right.
>
> > while the EJB Bean CL tries to load beans, the beans CL also
> > tries to load the common EJB interfaces located in the ejb-1.0.jar file.
> >
> > because the bean CL only has references to EJBs, it delegates the
> > loadClass() to its parent class loader, which is in fact the Phoenix
> > class loader. as shown above that CL contains the EJB interfaces.
> >
> > Allthough i am getting the following error message while starting the
> > avalon block for OpenEJB.
>
> wierd - not what I would expect. Can you show me the way you are
> constructing
> the URLClassLoader. Hopefully I will be able to figure it out from that.
>
> --
> Cheers,
>
> Peter Donald
> Duct tape is like the force. It has a light side, and a dark side, and
> it binds the universe together ...
> -- Carl Zwanzig
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
>
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>