Hi Bernhard,
GlassFish 3.0 and above is based on the latest Connectors Specification
(1.6) and hence all applications will not have access to all deployed
resource-adapters.
If an application refers the resource-adapter via
<resource-ref>/<resource-env-ref>/<message-listener> elements in
web.xml/ejb-jar.xml etc., (or the equivalent annotations), then the
resource-adapter classes will be available for the application. Please
check whether your application has a valid reference via any of these.
Alternately, you can switch to GF 2.1 equivalent using
asadmin set server.connector-service.class-loading-policy="global"
[server restart required]
Reference :
http://download.oracle.com/docs/cd/E18930_01/html/821-2418/bealr.html#gjjyy
If you tried applibs as an alternate option, make sure that
"com.filenet.is.ra.cci.FN_IS_CciConnectionSpec" is bundled / made
available only once (either in the rar or in in the applibs directory).
Thanks,
-Jagadish
On Mon, 2011-11-07 at 17:03 +0100, Bernhard Thalmayr wrote:
> Hi experts,
>
> I deployed a Resource Adapter Archive and configured the resources.
>
> Afterwards I deployed an Enterprise Application Archive (consisting
> only of a Web App).
>
> Both are from provided by some manufacturer.
>
> The Web App depends upon classes within the 'rar'.
>
> For some reaons I get a 'class-not-found' exception (although I
> thought according to dev guide) the the connector class-loader is a
> parent of the web-app classloader.
>
> When copying the 'jar' of the 'rar' into 'applib' directory and
> deploying the 'ear' with '--libraries' option I get a
>
> java.lang.ClassCastException:
> com.filenet.is.ra.cci.FN_IS_CciConnectionSpec cannot be cast to
> com.filenet.is.ra.cci.FN_IS_CciConnectionSpec
>
> Everything worked fine in GF 2.1 ...
>
> I guess I missed something, but I don't see other options yet.
>
> Any pointers available?
>
> TIA,
> Bernhard
>