Andrew Janke created AXIS2-5639:
-----------------------------------
Summary: wsdl2java issues log4j warnings every run
Key: AXIS2-5639
URL: https://issues.apache.org/jira/browse/AXIS2-5639
Project: Axis2
Issue Type: New Feature
Components: wsdl
Affects Versions: 1.6.2
Environment: Windows 7 Pro x64 SP1, Java 1.7.0_51
Reporter: Andrew Janke
Priority: Minor
Annoyance: The wsdl2java is emitting log4j config warnings on every invocation
on Windows. (Doesn't do this on Mac OS X 10.9 for me.)
c:\>wsdl2java
Using AXIS2_HOME: C:\local\java\axis2-1.6.2
Using JAVA_HOME: C:\Program Files\Java\jdk1.7.0_51
log4j:WARN No appenders could be found for logger
(org.apache.axis2.i18n.ProjectResourceBundle).
log4j:WARN Please initialize the log4j system properly.
Usage: WSDL2Java [options] -uri <url or path> : A url or path to a WSDL
Looks like the same issue as in AXIS2-734
(https://issues.apache.org/jira/browse/AXIS2-734) item 1. But the workaround it
mentions doesn't work, probably because paths have changed since whatever
release it was using.
In 1.6.2, I can get rid of the warnings with a similar workaround: add this to
wsdl2java.bat at line 69, after "set AXIS2_CLASS_PATH=%AXIS2_HOME%":
set AXIS2_CLASS_PATH=%AXIS2_CLASS_PATH%;%AXIS2_HOME%\conf
Can wsdl2java be fixed to not emit the log4j warnings by default?
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]