May be you can try to put jar1.jar and     jar2.jar to the lib directory of
your application under tomcat (mostly it is webapps/axis2/web-inf/lib)
instead of package them.

Ryan.

2008/3/14, Lucente, Richard D <[EMAIL PROTECTED]>:
>
> It's probably helpful to mention I'm using axis2-1.2 with
> jboss-4.0.5.GA.  The api's I have don't quite match those in the linked
> article, but I'll try what you suggest and let you know how that goes.
>
> -----Original Message-----
> From: Deepal Jayasinghe [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 13, 2008 1:26 AM
> To: [email protected]
> Subject: Re: classloading question with axis2 and jboss
>
>
> > I deployed a service.aar file with the following internal structure:
> >
> > service.aar
> >   META-INF
> >     MANIFEST.MF
> >     services.xml
> >     xsd0.xsd
> >     service.wsdl
> >   lib
> >     jar1.jar
> >     jar2.jar
> >   classes
> >     class1.class
> >
> > When class1 attempts to access a class in jar1.jar, the tomcat
> > webappclassloader fails to see the jars in the aar file and instead
> > delegates to its parent which is a jboss class loader.  This attempts
> > to find the class in other jboss class directories and then returns a
> > ClassNotFoundException.
> >
> > Axis2 is deployed as an exploded war directory within jboss.  My aar
> > file is deployed to mywar/WEB-INF/services.
> >
> > What do I need to do to load embedded jars from aar files within the
> > jboss/tomcat environment?  Should I just put these jars in the
> > mywar/WEB-INF/lib directory (which means other services see them as
> > well)?  I would prefer the isolation that comes with embedded jars if
> > possible.
> >
> Well I have tested this and I am sure this is working fine. But one more
> thing its depend on where you trying to load the class. If you trying to
> load the class at the service invocation time you will not have any
> problem but if you trying to do this at the deployment time you might
> have some problem unless you follow the following KB.
>
> http://wso2.org/library/98
>
> Anyway I am more than happy to help you if you can send me you aar file
> (or create a JIRA)
>
> Thank you!
> Deepal
> > -
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to