Anna,

This is probably unrelated but it looks like your 'org.apache...' and
'org.activeio...' loggers are missing appenders.  e.g.

log4j.logger.org.apache.activemq=INFO, stdout
log4j.logger.org.apache.activemq.spring=WARN, stdout
log4j.logger.org.apache.activemq.store.journal=INFO, stdout
log4j.logger.org.activeio.journal=INFO, stdout

Other than that, the file looks correct to me.  Do you have any
indication that your log4j.properties file is actually being read and
used?  For example, do you see a 'servicemix-test.log' in the 'target'
directory?  When you say you added it to the classpath, where did you
put it?

You said you were getting these errors while compiling.  What command
were you running?   mvn install?

- Jeff

On Sun, Nov 16, 2008 at 6:56 AM, asilchenko <[EMAIL PROTECTED]> wrote:
>
> Hi Jeff,
> I added "log4j.logger.org.codehaus.xfire=INFO, stdout" line to properties
> file file but still seeing warning messages. My log4j.properties file is
> pasted below.
> ===============
> log4j.rootLogger=DEBUG, stdout
>
> log4j.logger.org.apache.activemq=INFO
> log4j.logger.org.apache.activemq.spring=WARN
> log4j.logger.org.apache.activemq.store.journal=INFO
> log4j.logger.org.activeio.journal=INFO
>
> # CONSOLE appender not used by default
> log4j.appender.stdout=org.apache.log4j.ConsoleAppender
> log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
> log4j.appender.stdout.layout.ConversionPattern=%d [%-15.15t] %-5p
> %-30.30c{1} - %m%n
>
> # File appender
> log4j.appender.out=org.apache.log4j.FileAppender
> log4j.appender.out.layout=org.apache.log4j.PatternLayout
> log4j.appender.out.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} -
> %m%n
> log4j.appender.out.file=target/servicemix-test.log
> log4j.appender.out.append=true
>
> # XFire logger
> log4j.logger.org.codehaus.xfire=INFO, stdout
> ===============
>
> Thank you very much for your response and information,
> Anna
>
>
> Jeff Peterson-3 wrote:
>>
>> Anna,
>>
>> That "error" message is really just a warning which can safely be
>> ignored.  If you want it to go away, you can add the following line to
>> your log4j.properties
>>
>> log4j.logger.org.codehaus.xfire=INFO, YourAppender
>>
>> Replace "INFO" with your desired logging level and "YourAppender" with
>> the name of your log4j appender.
>>
>> Regards,
>>
>> Jeff
>>
>>
>> On Sat, Nov 15, 2008 at 6:59 PM, asilchenko <[EMAIL PROTECTED]>
>> wrote:
>>>
>>> I am getting following errors when compiling servicemix example. (I have
>>> my
>>> log4j.properties added to classpath but still getting the errors.) Could
>>> anyone help with fixing this errors?
>>>
>>> ERROR log4j:WARN No appenders could be found for logger
>>> (org.codehaus.xfire.gen.Wsdl11Generator).
>>> ERROR log4j:WARN Please initialize the log4j system properly.
>>>
>>> Thank you,
>>> Anna
>>> --
>>> View this message in context:
>>> http://www.nabble.com/ERROR-log4j%3AWARN-No-appenders-could-be-found-for-logger-%28org.codehaus.xfire.gen.Wsdl11Generator%29.-tp20521893p20521893.html
>>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>>
>>>
>>
>>
>
> --
> View this message in context: 
> http://www.nabble.com/ERROR-log4j%3AWARN-No-appenders-could-be-found-for-logger-%28org.codehaus.xfire.gen.Wsdl11Generator%29.-tp20521893p20526070.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>

Reply via email to