Hi Jessica,
I just specify below line for the jar I need to use (in same EAR file with EJB) at orion-application.xml)
<library path="myjar.jar" />
I�m not familiar with orion, but there is one pitfall you�d like to avoid: don�t add the common libraries to the system classpath; this will require restarting the server if these libraries change and you�ll lose all the deployment capabilities that your app server provides.
I don't want to put those helper jar to classpath or app server common lib, it should have a way to specify the jar I need to use during deployment right? All jar are in one EAR, just don't know why OC4J can't find the require jar.
Yes Jessica you right, there is a way to pack common libraries within the same ear. Unfortunately J2EE doesn�t specify any standard folder (like WEB-INF/lib for web app) from where the ear class loader could load common libraries. Therefore you have to turn to the manifest files. Hence you�ll pack the common libraries within your ear, let�s say in the ear�s root, just like your ejb. Finally edit the MANIFEST.MF of all your ejb-jar files (that need to include the common libs) to include this line:
Where common1.jar and common2.jar are all common libraries.
Regards.