tags:

views:

147

answers:

1

I want to use two external jars from EJB:

  1. jar #1 - all interfaces of the EJB (home, remote etc)
  2. jar #2 - some types which I use inside my EJB

What should I do to achieve this? If I put this jars inside ear it doesn't work, and JBoss throws NoClassFoundException

+1  A: 

you need to include them in a lib directory under the ear:

 yourapp.ear
   ->lib
       ->jar1.jar
       ->jar2.jar
Yishai
Stil not working :( Maybe it's important that I'm using and old JBoss version 3.2.1 (cannot change it). Do I need to add sth in deployment descriptors or somewhere else?
Filip
I had to add Class-Path element in manifest and than it didn't matter where jars were.
Filip
@Filip, yes that mattered. I assumed you were using EJB3. For EJB2 the Class-Path element is the solution.
Yishai