commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From José Antonio Pérez Testa <japte...@indra.es>
Subject Re: No implementation defined for org.apache.commons.logging.LogFactory
Date Wed, 20 Apr 2005 08:58:59 GMT
The error is being generated in applet's side or in server side?
Is log4j.jar included in the applet jar ??

Ali Khawaja wrote:

>I am building an applet that is consuming a webservice. I am doing this in
>JBuilder. It creates all the sources from the wsdl, and creates and signs
>the jar file, but when I try to execute the applet, I get the following
>exception:
>
>----------------------------------------
>
>Caused by: org.apache.commons.discovery.DiscoveryException: No
>implementation defined for org.apache.commons.logging.LogFactory
>
>            at
>org.apache.commons.discovery.tools.DiscoverClass.find(DiscoverClass.java:358
>)
>
>            at
>org.apache.commons.discovery.tools.DiscoverClass.newInstance(DiscoverClass.j
>ava:533)
>
>            at
>org.apache.commons.discovery.tools.DiscoverSingleton.find(DiscoverSingleton.
>java:372)
>
>            at
>org.apache.commons.discovery.tools.DiscoverSingleton.find(DiscoverSingleton.
>java:332)
>
>            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:4
>1)
>
>            at
>org.apache.axis.components.logger.LogFactory.<clinit>(LogFactory.java:33)
>
>            ... 28 more
>
>------------------------------------------
>
> 
>
>I am not doing any logging. I believe this is getting added due to axis or
>something else having dependency on the commons. I have not been able to
>figure out how to fix it. The jar files that are available in my archive are
>(in this order): commons-discovery.jar, log4j-1.2.8.jar, saaj.jar,
>jaxrpc.jar, axis.jar, commons-logging.jar, wsdl4j.jar, axis.ant.jar.
>
> 
>
>In my applet constructor, I have also tried doing the following, using each
>and every combination of the following statements:
>
> 
>
>            System.setProperty(LogFactory.FACTORY_DEFAULT,
>"org.apache.commons.logging.impl.Log4JLogger.class");
>System.setProperty(LogFactory.FACTORY_PROPERTY,"org.apache.commons.logging.i
>mpl.Log4JLogger.class"); 
>
> 
>System.setProperty("LOG_PROPERTY","org.apache.commons.logging.impl.Log4JLogg
>er.class");
>
> 
>
>If I remove commons*.jar from the required libraries, the build fails on the
>ant task! Is there something in its ant task I can do (which was
>automatically generated by JBuilder).
>
> 
>
> 
>
>I am very badly stuck on this for days now and have not been able to figure
>out what I am doing wrong. I'll really really appreciate any help. 
>
>Thanks
>
>Ali
>
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message