Re: ServiceLoader usage in Axis2 web service code deployed on Tomcat web server

2013-01-26 Thread Bulent Ozhorasan
Thanks for the reply.  java.util.ServiceLoader class has a method load(Class service, ClassLoader loader) AxisService myService = messageContext.getAxisConfiguration().getAxisService("serviceName"); AxisService myService = msgCtx.getAxisService(); ClassLoader clsLoader = myService.getServiceCla

Re: ServiceLoader usage in Axis2 web service code deployed on Tomcat web server

2013-01-26 Thread Deepal Jayasinghe
You need to change your service class loader to use the correct class loader. The reason is each service in Axis2 gets its own class loader. The following FAQ might help you: http://axis.apache.org/axis2/java/core/faq.html#b1 Deepal > Hi, > > I have a .aar file deployed on Tomcat,Axis2 platform i

ServiceLoader usage in Axis2 web service code deployed on Tomcat web server

2013-01-26 Thread Bulent Ozhorasan
Hi, I have a .aar file deployed on Tomcat,Axis2 platform in Ubuntu. I'm using Oracle JDK1.7 Tomcat 7.0.35 and Axis2 1.6.2 Recently I made a refactoring to use ServiceLoader class to load implementations of some classes dynamically. Here is my aar file structure: META-INF folder services.xml Con