File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Websphere and the fly likes WAS 7 class loading issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "WAS 7 class loading issue" Watch "WAS 7 class loading issue" New topic

WAS 7 class loading issue

Manoj Maniraj
Ranch Hand

Joined: Mar 25, 2009
Posts: 38
Im migrating my application from WAS 6.1 to 7. We are using IS in our application and for connectivity we use ISRA.jar. Now the problems is after migrating to WAS 7. Im getting below exception while getting the connection thru ISRA.

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
Caused by: java.lang.NoClassDefFoundError: javax.resource.cci.ConnectionSpec
at java.lang.J9VMInternals.verifyImpl(Native Method)
at java.lang.J9VMInternals.verify(
at java.lang.J9VMInternals.initialize(
at com.triteksol.J2IS.LibraryFactory.createISRA3Library(
at com.dao.FileNetDAO.getConnection(
at com.dao.FileNetDAO.createDocument(
at com.DataFacade.uploadDocument(
at com.BusinessFacade.uploadDocument(
at com.AttachmentAction.upload(
... 39 more
Caused by: java.lang.ClassNotFoundException: javax.resource.cci.ConnectionSpec
at java.lang.Throwable.<init>(
at java.lang.ClassNotFoundException.<init>(
at java.lang.ClassLoader.loadClass(
at sun.misc.Launcher$AppClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(
... 48 more

ConnectionSpec is an abstract class present in j2ee.jar. I see the this jar is in WAS lib folder. But Im not sure why the WAS is not able to load this class.

Apprciate your help.
Anton Novopashin

Joined: Feb 25, 2008
Posts: 19
You can try set class loader policy to parent last.

OCJP (1Z0-851).
Integration Developer (000-607).
WAS Admin (000-377).
I agree. Here's the link:
subject: WAS 7 class loading issue
jQuery in Action, 3rd edition