Provide log4j configuration fast and dirty
log4j:WARN No appenders could be found for logger (org.apache.openejb.resource.activemq.ActiveMQResourceAdapter).log4j:WARN Please initialize the log4j system properly.log4j:WARN No appenders could be found for logger (org.apache.openejb.resource.activemq.ActiveMQResourceAdapter).log4j:WARN Please initialize the log4j system properly.
- Create a folder and place a log4j.properteies file in it.
- Edit your log4j.properteies for your needs.
- Add the given folder to your apps classpath (as a first entry)
That’s it.
Some details, to be even more easier to do it…
Debug template
A template log4j.properties for debuging:
log4j.rootLogger=DEBUG, stdout
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%-5p [%c] – <%m>%n
Under Eclipse
If your in Eclipse just add the path to the classpath:
These examples come from a WTP server configuration…
Add external folder (Add Variable String w/ variables did not worked for me).
Select the folder from above… (/tmp/logp in my case)

And there it is:
