The warning comes from log4j not being initialised. Although it does not preven your client app to work, it is noisy.
Put the log4j.xml in attachment in
"/WEB-INF/classes". Axis will pick it up there (as "/log4j.xml"
resource). You can put it somewhere else, but you will have to configure
log4j yourself instead. You will want ot configure the log4j.xml for
your needs.
Hope it helps.
Christian
Faucher
-----Message d'origine-----
De : Dave Hoffer [mailto:[EMAIL PROTECTED]]
Envoyé :
mercredi, février 2, 2005 13:04
À : [EMAIL PROTECTED]
Objet : RE:
Install/Setup/Test of Axis fails
Oops, the instructions didn't say to
include wsdl4j.jar in my AXISCLASSPATH. (This should be updated.)
Now I just have the warning! Any ideas on that?
-dh
-----Original
Message-----
From: Dave Hoffer [mailto:[EMAIL PROTECTED]]
Sent:
Wednesday, February 02, 2005 12:51 PM
To: [EMAIL PROTECTED]
Subject:
Install/Setup/Test of Axis fails
Hello,
I am following the
Installation Instructions for Axis 1.2. I am installing on XP and have
already installed and have running Tomcat 4.1.31. I am also using the
optional Xerces parser and xmlsec.jar. When I validate the Axis installation
with happyaxis all is well.
The problems start when I test deploying a
web service. Following the Installation Instructions, I attempt to deploy
deploy.wsdd in the stock sample project. This process gives me a log4j
warning stating that no appenders could be found. This does not seem
serious because it seems to indicate that it deployed correctly stating "Done
processing".
I then back up two folders and attempt to call GetQuote like
this: java -cp .;%AXISCLASSPATH%
samples.stock.GetQuote
-lhttp://localhost:8080/axis/servlet/AxisServlet
-uuser1 -wpass1 XXX
This returns with a warning regarding log4j. It
then throws and exception java.lang.NoClassDefFoundError:
javax/wsdl/OperationType
What is the cause of this error (and the
warnings)?
-dh
"This e-mail message is confidential, for the exclusive use of the addressee and its contents shall not constitute a commitment by AXA, except as otherwise specifically provided in writing by AXA. Any unauthorized disclosure, use or dissemination, either whole or partial, is prohibited. If you are not the intended recipient of the message, please notify the sender immediately."
<?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender"> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="%d [%t] %p %C - %m%n"/> </layout> </appender> <!-- Level.DEBUG, Level.INFO, Level.WARN, Level.ERROR, Level.FATAL, Level.ALL, Level.OFF --> <logger name="org.apache.axis"> <level value="warn" /> </logger> <root> <priority value="debug" /> <appender-ref ref="CONSOLE" /> </root> </log4j:configuration>