• 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
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Exception: NoClassDefFoundError... when importing a class

 
Ranch Hand
Posts: 173
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I am trying to use a class from a 3rd party jar file in my MD bean. I have included it in the libraries through properties > libraries > Add External Jars.
When i import the class from the package/jar WASD does not complain but when i export the EAR and port it to Websphere it throws NoClassDefFoundError.
Am i trying to use an external jar the wrong way or is there something else wrong? Do i also have to make some kind of reference to the jar files from websphere, if yes how do i do that?
I am using WASD5 and WAS5.0 by the way.
Regards
Gul
[ January 14, 2004: Message edited by: pervaiz gul ]
 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess you need to add that library in Websphere Admin Console using Environmet -> Shared Libraries -> New -> (Give name & path for the library). While installing/deploying the enterprise application you need to mention the newly created Shared Library name.
 
Gul Khan
Ranch Hand
Posts: 173
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Chandra, i did that it worked.. Also had to include the library name in the server > application > libraries > New > library name.
 
I've never won anything before. Not even a tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic