Win a copy of Rust Web Development this week in the Other Languages forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

WAS 7 class loading issue

 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.


java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:45)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:599)
...
...
Caused by: java.lang.NoClassDefFoundError: javax.resource.cci.ConnectionSpec
at java.lang.J9VMInternals.verifyImpl(Native Method)
at java.lang.J9VMInternals.verify(J9VMInternals.java:72)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:134)
at com.triteksol.J2IS.LibraryFactory.createISRA3Library(LibraryFactory.java:105)
at com.dao.FileNetDAO.getConnection(FileNetDAO.java:165)
at com.dao.FileNetDAO.createDocument(FileNetDAO.java:267)
at com.DataFacade.uploadDocument(DataFacade.java:863)
at com.BusinessFacade.uploadDocument(BusinessFacade.java:487)
at com.AttachmentAction.upload(AttachmentAction.java:316)
... 39 more
Caused by: java.lang.ClassNotFoundException: javax.resource.cci.ConnectionSpec
at java.lang.Throwable.<init>(Throwable.java:80)
at java.lang.ClassNotFoundException.<init>(ClassNotFoundException.java:76)
at java.net.URLClassLoader.findClass(URLClassLoader.java:419)
at java.lang.ClassLoader.loadClass(ClassLoader.java:643)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:300)
at java.lang.ClassLoader.loadClass(ClassLoader.java:609)
... 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.
 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can try set class loader policy to parent last.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic