users@glassfish.java.net

Re: Classic EJB v3 and OSGI Client

From: Sahoo <sanjeeb.sahoo_at_oracle.com>
Date: Wed, 06 Apr 2011 09:38:01 +0530

Can you supply the full stack trace? Also, send us relevant data like
"OSGi manifest," "ejb look up code."

Sahoo


On Wednesday 06 April 2011 12:38 AM, forums_at_java.net wrote:
> Hello Colleagues,
>
> I've got EJB v3 (non-OSGI) and 2 client applications (Both client
> contains
> EJB's interfaces)
>
>
> 1) OSGI-module
> 2) Classic web
>
> Classic web + EJB = work fine
>
> OSGI-module + EJB = works fine only if OSGI installed after EJB starts.
>
> If OSGI=module started before EJB I got *java.lang.LinkageError: loader
> constraint violation: loader (instance of
> org/apache/felix/framework/ModuleImpl$ModuleClassLoaderJava5) previously
> initiated loading for a different type with name "org...*
>
> I think if EJB started before OSGI-module it use it's own interfaces and
> classes, and when OSGI-module started before EJB than EJB use
> interfaces from
> OSGI-module.
>
> *How to manage classloading of that interfaces in glassfish 3.1 ?*
>
>
>
>
>
>
> --
>
> [Message sent by forum member 'mgubaidullin']
>
> View Post: http://forums.java.net/node/789000
>
>