Thanx Oliver! I suspected that the bundle classloader is not visible
to OpenEJB but I wasn't sure about the status of the current OSGi
integration discussion.

Cheers
Daniel

On Mon, Jan 26, 2009 at 1:29 PM, Oliver Günther
<[email protected]> wrote:
> Hi,
>
> to make something long very short. OpenEJB does not run in an OSGi
> environment (e.g. Eclipse RCP), neither local nor remote.
>
> The little bit longer one.
> OpenEJB makes heavy usage of the of Resource (JAR) finding through the
> Classloader.
> Eclipse (OSGi) uses different Classloaders, which do not support the
> classic way of Resource finding.
> The NullPointerException is caused by the OpenEJB, by getting an OSGI
> Resource String
> (e.g. Expects something like /home/OpenEJB/xxx.jar,  gets :
> bundle://42:22/ )
>
> You can overcome this by setting a special OpenEJB option, which
> disables the classpath inspection.
> But then you get completely stuck, if you try to let openejb start you
> EJBs, because it uses the same algorithm to find them.
>
> There is an ongoing thread about the OSGi integration, but the team
> seams to have other priorities, so don't expect it to run
> anytime soon.
>
> PS: Don't try to get it to run in remote mode. The OpenEJB client has
> also some classloading issues, which will not work in Eclipse.
>
> -
> Olli
>
>

Reply via email to