Re: Service Classpath

"robertlazarski ." <[email protected]>
Newsgroups gmane.text.xml.axis.user
Message-ID <CABpPLBW5BPNS238g7D-SfnuU-aWvcdO+r5V4LMLD5TERR-7MAA@mail.gmail.com>
On Mon, Jun 2, 2014 at 10:34 AM, Billy Buzzard
<[email protected]> wrote:
> This thread originally asked about Service Classpath and it was hijacked
> asking how to make a web service using Kepler and Axis2.  Please in the
> future create a new thread if  you want to ask a question that is NOT
> related to the subject.
>
>
>
> The original question about Service Classpath remains unanswered.
<snip>
>
> On Tue, May 27, 2014 at 7:45 PM, Billy Buzzard
> <[email protected]> wrote:
>
> I wrote a couple of Axis2 Web Services using Eclipse and both seem to work
> fine.  I am working on a larger web service that requires a couple of jar
> files to the included on the classpath.  I placed the jar files in the Axis2
> lib folder and that works, but I would like to keep the jar files in a
> location specific to the service.
>
>
>
> The Axis2 Service Archiver allows the user to add jar files to the lib
> folder in the aar file.  How do I add those jar files to the classpath of
> that service?
>

You can change the behavior of the Axis2 Service classloader via the
ServiceTCCL param in services.xml . This article is a quick summary:

http://wso2.com/node/1131

You can see how the Axis2 Spring config uses ServiceTCCL here:

http://axis.apache.org/axis2/java/core/docs/spring.html

 - R
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.