> Hi All, > > I am using Axis in webMethods to make WebService Call to third party WebServices. > But when I initialise the Service class it gives me the following error > > > java.lang.ExceptionInInitializerError: > org.apache.commons.discovery.DiscoveryException: No implementation defined for > org.apache.commons.logging.LogFactory > at > org.apache.commons.discovery.tools.ClassUtils.verifyAncestory(ClassUtils.java:176) > at > org.apache.commons.discovery.tools.SPInterface.verifyAncestory(SPInterface.java:201) > at > org.apache.commons.discovery.tools.SPInterface.newInstance(SPInterface.java:195) > at > org.apache.commons.discovery.tools.DiscoverClass.newInstance(DiscoverClass.java:579) > at > org.apache.commons.discovery.tools.DiscoverSingleton.find(DiscoverSingleton.java:418) > at > org.apache.commons.discovery.tools.DiscoverSingleton.find(DiscoverSingleton.java:378) > at org.apache.axis.components.logger.LogFactory$1.run(LogFactory.java:84) > at java.security.AccessController.doPrivileged(Native Method) > at > org.apache.axis.components.logger.LogFactory.getLogFactory(LogFactory.java:80) > at org.apache.axis.components.logger.LogFactory.<clinit>(LogFactory.java:72) > at org.apache.axis.handlers.BasicHandler.<clinit>(BasicHandler.java:81) > at org.apache.axis.client.Service.getAxisClient(Service.java:143) > at org.apache.axis.client.Service.<init>(Service.java:152) > at > com.geceef.rki.adapter.helper.RKISoapService.<init>(RKISoapService.java:51) > > But when I run it as a standalone service it runs perfectly fine. > > Can anyone help me with this problem. Also I like to add something which I think > will give you complete picture. > > In webMethods we can create packages which you can think of as different war or ear. > And each package has place to keep jars specific to that package. > So I have kept all the jars which come with Axis there(including log4j.jar which > comes with it). Also, webMethods has a root jars directory where you can keep jars > which you want to share among all the packages. And it has log4j-full.jar which is > required for webMethods internal purpose. So I think that the problem may be with > the two different versions of log4j.jar, one in default jars directory and one in my > package's jar directory. I have tried removing my package's log4j.jar file also, but > It still does not work. > > > Please suggest me how to solve this problem > > Regards, > > Mahendra Pratap Singh >
No implementation defined for org.apache.commons.logging.LogFactory
Singh, MahendraPratap \(GE Commercial Finance, NonGE\) Wed, 26 May 2004 08:31:50 -0700
