Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / August 2006

Tip: Looking for answers? Try searching our database.

Axis 1.x: clearing up the log4j error message

Thread view: 
bruce_phipps@my-deja.com - 08 Aug 2006 14:18 GMT
I'm a newbie learning Axis1.x ( I know there is an Axis2, but our
developers at work are still using 1.x).

Things are going well. I have worked through most of the basic samples
OK. But I get a recurring log4j error, which is not fatal but I would
like to fix it .

bash-3.00$ java org.apache.axis.wsdl.WSDL2Java
log4j:WARN No appenders could be found for logger
(org.apache.axis.i18n.ProjectResourceBundle).
log4j:WARN Please initialize the log4j system properly.
................

How can I clear this up?

Thanks
Bruce
jagonzal@gmail.com - 08 Aug 2006 16:46 GMT
> I'm a newbie learning Axis1.x ( I know there is an Axis2, but our
> developers at work are still using 1.x).
[quoted text clipped - 10 lines]
>
> How can I clear this up?

You need to provide a log4j configuration file.

More info here: http://logging.apache.org/
Arne Vajhøj - 11 Aug 2006 02:02 GMT
> Things are going well. I have worked through most of the basic samples
> OK. But I get a recurring log4j error, which is not fatal but I would
[quoted text clipped - 7 lines]
>
> How can I clear this up?

bash-3.00$ java -Dlog4j.configuration=file:log4j.properties
org.apache.axis.wsdl.WSDL2Java

where log4j.properties contain:

log4j.rootLogger=INFO,Console
log4j.appender.Console=org.apache.log4j.ConsoleAppender
log4j.appender.Console.layout=org.apache.log4j.SimpleLayout

Arne

PS: Why not use the ant task for this ?


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.