• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Dealing with NoClassDefFoundError

 
Ranch Hand
Posts: 163
Eclipse IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an EAR project in Rational App Developer (8.0.4) that utilizes a utility jar (DA.jar). DA.jar resides in a directory that's a shared library reference for Websphere. This works without issue.

I would like to move DA.jar to my EAR project, but doing so gives me a NoClassDefFoundError. I've tried putting DA.jar in the web module's WEB-INF/lib directory; I've tried declaring it in the Ear Deployment Assembly screen. Nothing works.

My classloader policy is parent first for both the server and application.



 
Bill Clar
Ranch Hand
Posts: 163
Eclipse IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Too little reward for such a monumental task. I'll keep DA.jar in multiple places until such time that I can see about porting this application to a reputable app server.
 
Bartender
Posts: 1268
39
IBM DB2 Netbeans IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which version of WAS are you working with? In WAS 8.x you may define your DA.jar as utility jar in an EAR so that all related modules can use classes it exposes with no pain.
 
Marshal
Posts: 25682
69
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I worked with RAD and Websphere I used to go through hell when I did something as simple as renaming a tag library. Somehow no matter what I tracked down and deleted, Websphere would somehow manage to remember (and use) the old version. It was like trying to take a steak away from a pit bull. Uninstalling the application and reinstalling it was a minimum requirement, but there was always more to it than that.

Yeah, this probably isn't helpful, except to maybe support your decision to leave it alone.
 
Claude Moore
Bartender
Posts: 1268
39
IBM DB2 Netbeans IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Paul Clapham wrote:When I worked with RAD and Websphere I used to go through hell when I did something as simple as renaming a tag library. Somehow no matter what I tracked down and deleted, Websphere would somehow manage to remember (and use) the old version. It was like trying to take a steak away from a pit bull. Uninstalling the application and reinstalling it was a minimum requirement, but there was always more to it than that.

Yeah, this probably isn't helpful, except to maybe support your decision to leave it alone.


Well, I am not a websphere advocate, but I think that we can agree on the fact that renaming a tag library should be simple, but it is not an ordinary operation... Anyway, you are right. Sometime websphere is an headache factory...
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic