Hi,

I have finally got this to work, for the record, this is what I did wrong...

. in the manifest.mf file, my Class-Path entry was the last entry in the
file and did not have a newline character after it - which means it gets
ignored by the JarFile/Manifest processing (standard java).

. I had this manifest.mf in the ear - but jboss looks for it in the ejb jar
itself, but the libraries are at the ear level.




Thus to summarise, if you have 3rd party libraries that your ejb uses and
you don't want to put them into the lib/ext directory of jboss, then you can
build them into your ear (or ejb directly - probably), 

Put them anyhow you want in the ear, I have them in a subdirectory called
library - but this doesn't matter, as you reference them in the manifest -
so as long as the names match, you should be ok.

> > kimptoc@www:~ > jar tvf ejbapp-1.0-alpha.ear

> >  16014 Fri Feb 16 13:11:40 GMT 2001 ejbapp-1.0-alpha.jar
> >      0 Fri Feb 16 13:11:40 GMT 2001 library/
> >1484896 Fri Feb 16 13:11:40 GMT 2001 library/xerces-1.2.1.jar
> >  78541 Fri Feb 16 13:11:40 GMT 2001 library/jdom-b6.jar
> >      0 Fri Feb 16 09:42:20 GMT 2001 META-INF/
> >    119 Thu Feb 15 22:57:06 GMT 2001 META-INF/MANIFEST.MF
> >    147 Fri Feb 16 13:11:40 GMT 2001 META-INF/application.xml

 

Then in the manifest file for your EJB (NOT THE EAR JAR), have a class path
entry - which has a carriage return after it.

> Class-Path: library/xerces-1.2.1.jar library/jdom-b6.jar
> 


Have fun,
Chris 

================================================================================================
This electronic message (email) and any attachments to it are subject to copyright and 
are sent for the personal attention of the addressee. Although you may be the named 
recipient, it may become apparent that this email and its contents are not intended 
for you and an addressing error has been made. This email may include information that 
is legally privileged and exempt from disclosure. If you have received this email in 
error, please advise us immediately and delete this email and any attachments from 
your computer system.Rabobank International is the trading name of Coöperatieve 
Centrale Raiffeisen-Boerenleenbank B.A. which is incorporated in the Netherlands. 
Registered with the Registrar of Companies for England & Wales No. BR002630 and 
regulated by the SFA for the conduct of investment business in the UK.

The presence of this footnote also confirms that this email has been automatically 
checked by Rabobank International for the presence of computer viruses prior to it 
being sent, however, no guarantee is given or implied that this email is virus free 
upon delivery.




--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
List Help?:          [EMAIL PROTECTED]

Reply via email to