N
Nirav
Hi,
I'm working on an application consisting of two components, one EJB and
one Web.
Both components share some dependecies like hibernate, spring, xwork
etc. Since EJBs are deployed first, the MANIFEST file there has entries
for classpath for loading these dependencies to ensure classloader for
Web will resolve it ( i'm assuming that ejb classloader will be parent
of web classloaders, the jboss case ), application has one lib
directory in EAR root which contains all the libraries ( i can't move
it to web-inf/lib ).
Now, for reasons, i've to move EJB component to EAR/lib directory,
works fine for EJB but Web component is not getting deployed with
bewildering, as expected, ClassNotFoundException. The problem will not
be resolved even if i write same classpath entries in Web components
MANIFEST, since the parent classloader will not be able to resolve it,
had it been loaded by child web classloader.
My question is, is there any way i can load those dependency before Web
Component is deployed? i've tried adding classpath entries in
EAR/meta-inf/MANIFEST but didn't worked.
Nirav Thaker
I'm working on an application consisting of two components, one EJB and
one Web.
Both components share some dependecies like hibernate, spring, xwork
etc. Since EJBs are deployed first, the MANIFEST file there has entries
for classpath for loading these dependencies to ensure classloader for
Web will resolve it ( i'm assuming that ejb classloader will be parent
of web classloaders, the jboss case ), application has one lib
directory in EAR root which contains all the libraries ( i can't move
it to web-inf/lib ).
Now, for reasons, i've to move EJB component to EAR/lib directory,
works fine for EJB but Web component is not getting deployed with
bewildering, as expected, ClassNotFoundException. The problem will not
be resolved even if i write same classpath entries in Web components
MANIFEST, since the parent classloader will not be able to resolve it,
had it been loaded by child web classloader.
My question is, is there any way i can load those dependency before Web
Component is deployed? i've tried adding classpath entries in
EAR/meta-inf/MANIFEST but didn't worked.
Nirav Thaker