Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring 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 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

Cannot Find class

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

This is my first time to write EJBs on WSAD. I have a session bean that uses the commons-lar.jar from jakarta. I imported it and everything was compiled properly.

At runtime, an external app instantiates and calls a method from the bean. However, when a StringUtil class method is called, the WSAD returns a NoClassDef error. I already put the commons-lang.jar in the EJB Export package for use of clients. I also tried manually setting the classpath environment variable to no avail.

How can I set up the classpath in WASD 5.1 for my project such that external JARS can be seen by my EJBs at runtime? Thank you.

regards,
Clarence
 
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you add the jar file to the MANIFEST.MF?

Nick
 
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Clarence, you might want to try this approach...

Find the JDK folder that your WSAD is using and put the JARs in the jre\lib... Then try to access those JARs from your EJBs...

Hope it helps...
 
Do you pee on your compost? Does this 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