You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Jeff Wang <je...@apple.com> on 2007/09/05 02:45:38 UTC
Loading JAR Files
Hello,
I am having trouble loading JAR files in my AAR. I put all the
required JAR files in the WEB-INF/lib directory of the AAR. I am
using the Eclipse plug in to create the AAR. However, when I run the
web service, it cannot load the classes in my jar file. I've had to
resort to putting it in the lib directory or services/lib dir of the
main axis2.war to be accessible. Do I need to configure something to
get these jars to load within my aar file?? I'm using axis2, version
1.3.
thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: Loading JAR Files
Posted by Jeff Wang <je...@apple.com>.
Hello,
thanks for the reply. I'm able to put the JARS in the correct
location. However, the axis2 class loaders don't load them. I've
had to put them outside of my Axis Archive to get them loaded
otherwise I will get runtime classNotFound exceptions. Have you ever
had problems with axis2 not loading jars in the lib directory?
thanks,
Jeff
On Sep 4, 2007, at 7:53 PM, Lahiru Sandakith wrote:
> Hi Jeff,
>
> Normally when we create the service archive using the Axis2 Eclipse
> Service Archive Creation Plugin we have to include the 3rd party
> jars at Page 4 [1], and it will put that into the archive lib at
> the archive creation time then axis2 class loading will handle the
> rest when we deploy that.
>
> Thanks
>
> Lahiru
>
> [1] http://ws.apache.org/axis2/tools/1_3/eclipse/servicearchiver-
> plugin.html
>
> On 9/5/07, Jeff Wang <jeffrey.wang@apple.com > wrote:
> Hello,
>
> I am having trouble loading JAR files in my AAR. I put all the
> required JAR files in the WEB-INF/lib directory of the AAR. I am
> using the Eclipse plug in to create the AAR. However, when I run the
> web service, it cannot load the classes in my jar file. I've had to
> resort to putting it in the lib directory or services/lib dir of the
> main axis2.war to be accessible. Do I need to configure something to
> get these jars to load within my aar file?? I'm using axis2, version
> 1.3.
>
> thanks
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>
>
> --
> Thanks
> Lahiru Sandakith
>
> http://sandakith.wordpress.com/
> GPG Key Fingerprint : 8CD8 68E0 4CBC 75CB 25BC 1AB1 FE5E 7464 1F01
> 9A0F
Re: Loading JAR Files
Posted by Lahiru Sandakith <sa...@gmail.com>.
Hi Jeff,
Normally when we create the service archive using the Axis2 Eclipse Service
Archive Creation Plugin we have to include the 3rd party jars at Page 4 [1],
and it will put that into the archive lib at the archive creation time then
axis2 class loading will handle the rest when we deploy that.
Thanks
Lahiru
[1] http://ws.apache.org/axis2/tools/1_3/eclipse/servicearchiver-plugin.html
**
On 9/5/07, Jeff Wang <je...@apple.com> wrote:
>
> Hello,
>
> I am having trouble loading JAR files in my AAR. I put all the
> required JAR files in the WEB-INF/lib directory of the AAR. I am
> using the Eclipse plug in to create the AAR. However, when I run the
> web service, it cannot load the classes in my jar file. I've had to
> resort to putting it in the lib directory or services/lib dir of the
> main axis2.war to be accessible. Do I need to configure something to
> get these jars to load within my aar file?? I'm using axis2, version
> 1.3.
>
> thanks
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
--
Thanks
Lahiru Sandakith
http://sandakith.wordpress.com/
GPG Key Fingerprint : 8CD8 68E0 4CBC 75CB 25BC 1AB1 FE5E 7464 1F01 9A0F