axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Amila Suriarachchi <amilasuriarach...@gmail.com>
Subject Re: Axis2 consumer within Axis2 provider classpath issue
Date Tue, 10 Feb 2009 05:45:44 GMT
On Wed, Jan 14, 2009 at 3:10 PM, Paul French <paul.french@kirona.com> wrote:

>  Apologies for jumping in on this thread but I too would be very
> interested in the recommended way to provide an AXIS2 web service which may
> contain AXIS2 client stubs to other web services.
>

Then the best way is to put them to  WEB-INF/lib folder

>
> I believe I read some where that you need to use the same
> ConfigurationContext for both? This would only make sense to me if you plan
> to provide the same handlers and modules for both.
>

> For example I have a web service client stub that works great (as a jar
> file) - the axis2.xml file is in the classpath
>
> I have an AXIS2 web service which works great where the axis2.xml file is
> in the WEB-INF directory. (axis2 included as part of the web application)
>
> How would you combine the two?
>

Do you want to use the client code inside your service?
Then either you can use the ConfigurationContext object which server use or
can create a new one using ConfigurationContextFactory method. In this case
using fileSystem.

thanks,
Amila.

>
>  ------------------------------
> *From:* Hundtofte, Rex A [mailto:rex.hundtofte@eds.com]
> *Sent:* 14 January 2009 05:43
> *To:* axis-user@ws.apache.org
> *Subject:* Axis2 consumer within Axis2 provider classpath issue
>
>  I am getting a NoClassDefFoundError when my Axis2 consumer code is
> executed inside of an Axis2 provided web service.  I have an aar file
> deployed to my web server, the consumer code and generated client stub
> classes are in separate jar files under the WEB-INF/lib directory.  The
> incoming request processes fine but apparently the classloader that needs to
> load the consumer Axis2 classes cannot find the Axis2 classes.  I appreciate
> any tips on how I might resolve this issue?
>
> Thanks,
> Rex Hundtofte
>
>
> __________ NOD32 3763 (20090113) Information __________
>
> This message was checked by NOD32 antivirus system.
> http://www.eset.com
>



-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/

Mime
View raw message