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

Bulent Ozhorasan <[email protected]>
Newsgroups gmane.text.xml.axis.user
Message-ID <[email protected]>
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 Contains info about the web service
services folder
com.companyname...interfacename1 (contains implementation class name)
com.companyname...interfacename2 (contains implementation class name)

com.companyname...interfacename3 (contains implementation class name)

com folder
companyname folder
bla bla.class compiled class files here


In my Eclipse Development environment, my methods run w/o any problem but when they run
in Axis2 Tomcat platform, ServiceLoader class can not load implementation classes.
What can be the problem?
Any help is appreciated.
Thanks.
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.