users@glassfish.java.net

Re: GF 3.1.1 possible class-loading issue - resource adapter WITHIN enterprise app

From: Jagadish Prasath Ramu <jagadish.ramu_at_oracle.com>
Date: Tue, 08 Nov 2011 22:23:05 +0530

Hi Bernhard,
Yes, RAR should be available to the ejb modules in the setup that you
have stated.
Is it possible for you to get a reproducible test-case to see what
causes this difference in behavior ?

Thanks,
-Jagadish

On Tue, 2011-11-08 at 11:50 +0100, Bernhard Thalmayr wrote:
> Hi experts,
>
> another slightly different issue ...
>
> Enterprise Archive including
> - EJB archive
> and
> - resource adapter archive
>
> EJBs within EJB archive use classes from a jar within the 'rar'.
>
> However I get the following error when the GF tries to load the EJBs
>
> [#|2011-11-08T10:13:39.151+0100|SEVERE|glassfish3.1.1|global|
> _ThreadID=1;_ThreadName=Thread-2;|Class
> [ org/universe/exception/UniverseBusinessException ] not found. Error
> while loading [ class org.universe.impl.UniversMailAdapterMDB ]|#]
>
> AFAI interpret connector architecture 1.6 spec (sections 20.2.0.4,
> 20.3) the classes from the 'rar' should be available to the EJBs
> wiithin the 'ear'.
>
> Am I interpreting the spec incorreclty?
>
> Does this error matter at all?
>
> TIA,
> Bernhard