Seems like this problem has occurred due to version conflict of log4j. May be you are using a different version of log4j
Sameera On Wed, Jul 1, 2009 at 10:51 AM, Demetris G <demet...@ece.neu.edu> wrote: > > Axis is running as a bundle in Knopflerfish OSGi - any idea why this code > > line = "http://127.0.0.1:8080/axis/services/remoteBooks?wsdl" > get = new GetMethod( line ); > would cause this exception?? I have the log4j jars included as imports and > in the > classpath. Or at least what does this mean? Thanks. > > Sending [HTTP GET] to [ > http://127.0.0.1:8080/axis/services/remoteBooks?wsdl] > java.lang.ExceptionInInitializerError > at java.lang.Class.runStaticInitializers(Unknown Source) > at java.lang.Class.runStaticInitializers(Unknown Source) > at DA.DiscoveryAgent$ServerConnection.run(Unknown Source) > at java.lang.Thread.startup(Unknown Source) > Caused by: org.apache.commons.logging.LogConfigurationException: > java.lang.NoSuchMethodError: org.apache.log4j.Priority: method > <init>(ILjava/lang/String;I)V not found (Caused by > java.lang.NoSuchMethodError: org.apache.log4j.Priority: method > <init>(ILjava/lang/String;I)V not found) > at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(Unknown > Source) > at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(Unknown > Source) > at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(Unknown > Source) > at org.apache.commons.logging.LogFactory.getLog(Unknown Source) > at org.apache.commons.httpclient.HttpMethodBase.<clinit>(Unknown > Source) > ... 4 more > Caused by: java.lang.NoSuchMethodError: org.apache.log4j.Priority: method > <init>(ILjava/lang/String;I)V not found > at org.apache.log4j.Level.<init>(Unknown Source) > at org.apache.log4j.Level.<clinit>(Unknown Source) > at java.lang.Class.runStaticInitializers(Unknown Source) > at java.lang.Class.forName0(Native Method) > at java.lang.Class.forName(Unknown Source) > at org.apache.commons.logging.impl.Log4JLogger.class$(Unknown Source) > at org.apache.commons.logging.impl.Log4JLogger.<clinit>(Unknown > Source) > at java.lang.Class.runStaticInitializers(Unknown Source) > at java.lang.reflect.Constructor.newInstance(Unknown Source) > ... 9 more > > > Thanks >