You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by ne...@bt.com on 2003/09/04 10:59:05 UTC
web service client - incompatible arguments
I am trying to run a web service client in order to interact with a simple
web service that I have successfully deployed onto Axis, within Tomcat.
My web service client code compiles OK (like the example given in the Axis
user guide), however when I run the code (while I have Tomcat and Axis
running) I get the error at the bottom of this mail.
My best inexperienced guess is that there is a conflict between
log4j-1.2.8.jar file classes? If so how would I best resolve this.
I am running Axis v1.1 and jakarta-tomcat-4.1.27-LE-jdk14.
Any help would be much appreciated. Thanks, N. Robinson
java.lang.ExceptionInInitializerError
at org.apache.axis.client.Service.getAxisClient(Service.java:143)
at org.apache.axis.client.Service.<init>(Service.java:152)
at TestClient.main(TestClient.java:23)
Caused by: org.apache.commons.logging.LogConfigurationException:
java.lang.reflect.InvocationTargetException
at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.ja
va:532)
at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.ja
va:272)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:414)
at
org.apache.axis.components.logger.LogFactory.getLog(LogFactory.java:76)
at
org.apache.axis.handlers.BasicHandler.<clinit>(BasicHandler.java:81)
... 3 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces
sorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc
torAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.ja
va:525)
... 7 more
Caused by: java.lang.VerifyError: (class: org/apache/log4j/LogManager,
method: <clinit> signature: ()V) Incompatible argument to function
at org.apache.log4j.Logger.getLogger(Logger.java:85)
at
org.apache.commons.logging.impl.Log4JLogger.<init>(Log4JLogger.java:102)
... 12 more
Exception in thread "main"
Re: web service client - incompatible arguments
Posted by "Jeyakumaran.C" <jk...@vijayaba.cse.mrt.ac.lk>.
web service client - incompatible argumentswht is yr log4j jar file.Is it log4j-1.2.4.jar?
Or make sure the particular jar files are correctly set in to the classpath.
regards,
Jeyakumaran.C
----- Original Message -----
From: neil.2.robinson@bt.com
To: axis-user@ws.apache.org
Sent: Thursday, September 04, 2003 2:59 PM
Subject: web service client - incompatible arguments
I am trying to run a web service client in order to interact with a simple web service that I have successfully deployed onto Axis, within Tomcat.
My web service client code compiles OK (like the example given in the Axis user guide), however when I run the code (while I have Tomcat and Axis running) I get the error at the bottom of this mail.
My best inexperienced guess is that there is a conflict between log4j-1.2.8.jar file classes? If so how would I best resolve this.
I am running Axis v1.1 and jakarta-tomcat-4.1.27-LE-jdk14.
Any help would be much appreciated. Thanks, N. Robinson
java.lang.ExceptionInInitializerError
at org.apache.axis.client.Service.getAxisClient(Service.java:143)
at org.apache.axis.client.Service.<init>(Service.java:152)
at TestClient.main(TestClient.java:23)
Caused by: org.apache.commons.logging.LogConfigurationException: java.lang.reflect.InvocationTargetException
at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:532)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:272)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:414)
at org.apache.axis.components.logger.LogFactory.getLog(LogFactory.java:76)
at org.apache.axis.handlers.BasicHandler.<clinit>(BasicHandler.java:81)
... 3 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:525)
... 7 more
Caused by: java.lang.VerifyError: (class: org/apache/log4j/LogManager, method: <clinit> signature: ()V) Incompatible argument to function
at org.apache.log4j.Logger.getLogger(Logger.java:85)
at org.apache.commons.logging.impl.Log4JLogger.<init>(Log4JLogger.java:102)
... 12 more
Exception in thread "main"