Hi Marc,

the spec states that you use the standard jar extensssion mechanism for
utiliy jars.
Put the helper/utility jars on the same level as your ejb.jar:s and be sure
to reference them from the manifests of your ejb.jars.

WR

> -----Ursprungligt meddelande-----
> Från: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]För Marc Eilens
> Skickat: den 22 november 2001 10:20
> Till: Orion-Interest
> Ämne: Class-Path entries in Manifest.mf for EJBs
>
>
> Hello,
>
> I've got a problem deploying my EAR file on ORION.
> I packed my two EJBs together with a WAR file into the EAR file. The two
> EJBs share references to classes in a library jar.
> As far as I understand the packaging of EARs I can create a 'lib'
> subfolder
> in the EAR and add Class-Path entries in the Manifest files of the EJBs.
>
> The EAR deploys well on JBoss, but not on ORION.
>
> This is my structure in the EAR:
>
> |- bsebos.jar
> |- som.jar
> |- ie.war
> |- appclient.jar (just including an xml descriptor to expose the two beans
> in JNDI)
> |- lib
>     |- ois.jar
>     |- bo.jar
>     |- sales.jar
> |- META-INF
>     |- MANIFEST.MF
>     |- application.xml
>
> The Manifest file of the bsebos.jar for example looks as follows:
> >>
> Manifest-Version: 1.0
> Created-By: 1.3.0 (Sun Microsystems Inc.)
> Class-Path: ../lib/ois.jar ../lib/bo.jar ../lib/sales.jar
> <<
>
> I did not create Orion-specific descriptors. I think they will be
> generated
> automatically on deployment if not existing, aren't they?
> Does anybody had the same problem or knows what I have to do?
>
> I somehow got it to work a few days ago, somehow, but I don't know what to
> do to get it working again. I changed my build scripts a bit and
> built a new
> EAR file and it just won't deploy. I always get this error:
> >>
> Auto-unpacking C:\orion\applications\ie.ear... done.
> Auto-unpacking C:\orion\applications\ie\ie.war... done.
> Auto-deploying IE3.6 (New server version detected)...
> Error in application IE3.6: Error loading package at
> file:/C:/orion/applications/ie/som.jar, Error loading class
> 'mpress.ois.modules.sales.order.ejb.SalesOrderManagerEJB':
> java.lang.NoClassDefFoundError: impress/ois/bo/ejb/CEManagerEJB
> Error in application IE3.6: Error loading package at
> file:/C:/orion/applications/ie/bsebos.jar, Error loading class
> 'impress.ois.modules.session.ejb.OISSessionEJB':
> java.lang.NoClassDefFoundError: impress/ois/base/session/ISession
> Installed IE3.6...
> <<
>
> These classes are packed in the jars located in the lib directory
> in the EAR
> file and are specified to be included in the classpath in the
> Manifest files
> of the EJBs.
> So theoretically, it should work, but it doesn't. They aren't deployed
> correctly.
>
> Additionally, something's not ok with the applicatin client jar, too. As
> said already, I got it to work a few days ago. Then, upon
> deployment, ORION
> changed my appclient.jar and added an xml descriptor and a jndi.properties
> to this jar. This also doesn't happen anymore.
>
> So, I'm currently quite confused and appreciate any help.
>
> Regards,
> Marc
>
> Marc Eilens
> Research & Development
> Engineering
>
> IMPRESS SOFTWARE AG
>
> mailto:[EMAIL PROTECTED]
> http://www.IMPRESS.com
>


Reply via email to