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 yssr <ys...@yahoo.com> on 2004/09/30 08:06:41 UTC

AXIS log4j

Hi 

   java samples.userguide.example3.Client
-lhttp://localhost:8080/axiso/services/MyService "test
me ok"  
log4j:WARN No appenders could be found for logger
(org.apache.axis.i18n.ProjectResourceBundle).
log4j:WARN Please initialize the log4j system
properly.
You typed : test me ok

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: AXIS log4j

Posted by sm...@spansurf.com.
This is not actually an error, it just means that the logging system cannot be 
initiated because it has not been told what to do.

Add a log4j.properties file directly to your classes directory or anywhere on 
your classpath.

Use the following as a starting point.

# Set root category priority to INFO and its only appender to CONSOLE.
log4j.rootCategory=DEBUG, LOGFILE

# Set the enterprise logger category to FATAL and its only appender to CONSOLE.
log4j.logger.org.apache.axis.enterprise=FATAL, CONSOLE

# CONSOLE is set to be a ConsoleAppender using a PatternLayout.
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
log4j.appender.CONSOLE.Threshold=DEBUG
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
log4j.appender.CONSOLE.layout.ConversionPattern=- %m%n

# LOGFILE is set to be a File appender using a PatternLayout.
log4j.appender.LOGFILE=org.apache.log4j.FileAppender
log4j.appender.LOGFILE.File=C:\axis.log
log4j.appender.LOGFILE.Append=true
log4j.appender.LOGFILE.Threshold=DEBUG
log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout
log4j.appender.LOGFILE.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n


Your classes diectory will be something like webapps/<name>/WEB-INF/classes 
where name is your webapp context.

Regards

Steve


Quoting yssr <ys...@yahoo.com>:

> i am using axis on tomcat
> i simply copied the axis directory of
> axis1xxx/.../webaps to tomcat/.../webapps
> but can i do to remove the following error
> 
> 
> 
> 
> 
> --- smcardle@spansurf.com wrote:
> 
> > You do not have a log4j properties file in your
> > class path.
> > 
> > Regards
> > 
> > 
> > Quoting yssr <ys...@yahoo.com>:
> > 
> > > Hi 
> > > 
> > >    java samples.userguide.example3.Client
> > > -lhttp://localhost:8080/axiso/services/MyService
> > "test
> > > me ok"  
> > > log4j:WARN No appenders could be found for logger
> > > (org.apache.axis.i18n.ProjectResourceBundle).
> > > log4j:WARN Please initialize the log4j system
> > > properly.
> > > You typed : test me ok
> > > 
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Tired of spam?  Yahoo! Mail has the best spam
> > protection around 
> > > http://mail.yahoo.com 
> > > 
> > 
> > 
> > 
> > 
> > 
> 
> 
> 
> 		
> _______________________________
> Do you Yahoo!?
> Declare Yourself - Register online to vote today!
> http://vote.yahoo.com
> 





Re: AXIS log4j

Posted by yssr <ys...@yahoo.com>.
i am using axis on tomcat
i simply copied the axis directory of
axis1xxx/.../webaps to tomcat/.../webapps
but can i do to remove the following error





--- smcardle@spansurf.com wrote:

> You do not have a log4j properties file in your
> class path.
> 
> Regards
> 
> 
> Quoting yssr <ys...@yahoo.com>:
> 
> > Hi 
> > 
> >    java samples.userguide.example3.Client
> > -lhttp://localhost:8080/axiso/services/MyService
> "test
> > me ok"  
> > log4j:WARN No appenders could be found for logger
> > (org.apache.axis.i18n.ProjectResourceBundle).
> > log4j:WARN Please initialize the log4j system
> > properly.
> > You typed : test me ok
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam
> protection around 
> > http://mail.yahoo.com 
> > 
> 
> 
> 
> 
> 



		
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com

Re: AXIS log4j

Posted by sm...@spansurf.com.
You do not have a log4j properties file in your class path.

Regards


Quoting yssr <ys...@yahoo.com>:

> Hi 
> 
>    java samples.userguide.example3.Client
> -lhttp://localhost:8080/axiso/services/MyService "test
> me ok"  
> log4j:WARN No appenders could be found for logger
> (org.apache.axis.i18n.ProjectResourceBundle).
> log4j:WARN Please initialize the log4j system
> properly.
> You typed : test me ok
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
>