"Jung , Dr. Christoph" wrote:
>
> >You were speaking of ear files... I think what you mean is that in the
> >ear jar file, the shared classes is included so that it is available in
> >the VM that JBoss and the beans runs in?
>
> No, I mean that in the ear jar file (META-INF/Manifest.mf), you rather place
> a
> reference to the jar file (or the directory) where the shared class is
> located in.
> When the ear is deployed, this path is then automatically added to the
> classloader.
Damn, is it really that complicated!?
The Class-Path entry in a MANIFEST.MF file points to a archive
***RELATIVE*** to the archive containing this MANIFEST.MF. This way an
Class-Path entry in the ear files MANIFEST.MF can never reference a
archive INSIDE the ear file. It would try to find the archive outside
the ear file relative to it (but actually the Class-Path entry in the
ear files MANIFEST.MF is never checked).
To reference an archive inside the ear from an other archive inside the
ear, you must add the Class-Path entry to the archives MANIFEST.MF
inside the ear file (your bean archive)!
\Daniel
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]