users@glassfish.java.net

GF 3.1.1 ... classloading issue (Resource Adapter vs. Enterprise App)

From: Bernhard Thalmayr <bernhard.thalmayr_at_painstakingminds.com>
Date: Mon, 7 Nov 2011 17:03:33 +0100

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