• 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:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Dealing with NoClassDefFoundError

 
Ranch Hand
Posts: 163
Eclipse IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 1381
39
IBM DB2 Netbeans IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 28370
99
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 1381
39
IBM DB2 Netbeans IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Note to self: don't get into a fist fight with a cactus. Command this tiny ad to do it:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic