No implementation defined for org.apache.commons.logging.LogFactory

Hi People,

I have the problem below when a access one web service developed in Axis.

On my code, a devine the system property called org.apache.commons.logging.LogFactory=org.apache.commons.logging.impl.NoOpLog

so:

System.setProperty(“org.apache.commons.logging.LogFactory”, “org.apache.commons.logging.impl.NoOpLog”);

and i try define the file called

commons-logging.properties, but out sucess.

I like know where i define this implementation.

the version of Lotus note is 6.0.3 and do VM is 1.3.1.

Thanks and regards.

Robson Thanael Poffo

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:45)



at java.security.AccessController.doPrivileged(Native Method)



at org.apache.axis.components.logger.LogFactory.getLogFactory(LogFactory.java:41)



at org.apache.axis.components.logger.LogFactory.<clinit>(LogFactory.java:33)



at org.apache.axis.handlers.BasicHandler.<clinit>(BasicHandler.java:43)



at org.apache.axis.client.Service.getAxisClient(Service.java:104)



at org.apache.axis.client.Service.<init>(Service.java:113)



at oscar.ServiceVisImplServiceLocator.<init>(ServiceVisImplServiceLocator.java:12)



at com.datasul.hcm.controleAcesso.lotus.utils.Utils.<clinit>(Utils.java:26)



at com.datasul.hcm.controleAcesso.lotus.MovtoVisitante.alimentaComponentes(MovtoVisitante.java:237)



at com.datasul.hcm.controleAcesso.lotus.MovtoVisitante.<init>(MovtoVisitante.java:112)



at JavaAgent.NotesMain(JavaAgent.java:43)



at lotus.domino.AgentBase.runNotes(Unknown Source)



at lotus.domino.NotesThread.run(NotesThread.java:208)

Subject: No implementation defined for org.apache.commons.logging.LogFactory

Take a look here re: having to “relax” some security in the java config of domino.

http://www-10.lotus.com/ldd/nd6forum.nsf/55c38d716d632d9b8525689b005ba1c0/40d033fba3897f4d85256cd30034026a?OpenDocument

I also found that when using Axis 1.2.1 and the “commons-logging-1.0.4.jar” that comes with it, even after changing the policy file, I would still get the error.

I reverted to an older commons-logging.jar from an earlier version, and it seems to work after that.

Subject: RE: No implementation defined for org.apache.commons.logging.LogFactory

thanks, it works fine!!!

regards

Subject: RE: No implementation defined for org.apache.commons.logging.LogFactory

Hi, I am trying to create a soap message in my java UDF as:SOAPMessage msg = MessageFactory.newInstance().createMessage();

I am getting ‘java.lang.ExceptionInInitializerError’ error with exception as:

org.apache.commons.discovery.DiscoveryException: No implementation defined for org.apache.commons.logging.LogFactory


Same code is working fine with WSAD5.1 but when I use it in Java UDF with DB2 it throws this error…kindly help.