> -----Original Message----- > From: Karr, David [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, September 25, 2002 11:38 AM > To: [EMAIL PROTECTED] > Subject: Ref. jar file from EJB: MANIFEST.MF Class-Path entry seems to > not work > > I'm using OC4J 9.0.2 on Win2k. > > I am trying to use log4j from my EJB classes. I thought I had > to do the > following to get the classes to load: > > 1. Store "log4j-1.2.3.jar" at the root of my ejb-jar file. > 2. Store a MANIFEST.MF file in "META-INF" with an entry like > the following: > > Class-Path: log4j-1.2.3.jar > > When I deploy the EAR, however, I get an error like this: > > Error in application Felix: Error loading package at > file:/C:/oc4j/j2ee/home/applications/felix/felix-ejb.jar, > Error loading > class 'com.attws.it.bsa.felix.ejb.session.UserManagerBean': > java.lang.NoClassDefFoundError: org/apache/log4j/Category
I resolved this. The additional jar files go in the root of the EAR, but you need a MANIFEST.MF file in the ejb jar to contain a "Class-Path" entry pointing to the jar. I had the Class-Path entry, but in the wrong jar. One odd aspect of this is that the "Class-Path" entry in the ejb jar doesn't reference it with "../" as I would have expected. =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff EJB-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
