This discussion is archived
1 Reply Latest reply: Dec 29, 2011 12:05 AM by 652803 RSS

JCA Classpath - How to use library from rar instead of from WLS

user729765 Newbie
Currently Being Moderated
We have a stand-alone resource adapter that uses the apache commons net library, and relies on features added in version 2.0.

When we deploy to WLS 10.3.2, we get a class loading error when invoking the adapter. Method is not found.

WLS 10.3.2 includes an older version of the library: com.bea.core.apache.commons.net_1.0.0.0_1-4-1.jar.

Despite paclkaging the proper version (2.2) in our rar, the older and incompatible 1.4.1 version from the system classpath is used.

Is there a way to use the version packaged in our stand-alone rar file? I have seen a way to do this for a war file (prefer-web-inf-classes in deployment descriptor).

O know we could to modify the system classpath in the weblogic startup scripts to use the newer library. We prefer not to do this, since we don't know how WLS uses the library internally, and what might be affected by a different version.


  • Correct Answers - 10 points
  • Helpful Answers - 5 points