If you are developing with Java, I’m sure you ran into a console output that looks like this:
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.
The message is clean: provide a log4j configuration. But, hey, I just want to debug/test/… it… Or I just want to change the debug level, but I cannot modify the app, or cannot find the (right) configuration…
I just need a fast solution for this.
So here it is:
- 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)
Categories: eclipse, FLOSS, open source, oss, software development debug, eclipse, howto, java, log4j, logging, wtp
This is just a short description on how to use OpenEJB with Tomcat to debug it within Eclipse.
The point is to be able to debug EJB applications from within Eclipse with a lightweight Tomcat container using OpenEJB.
Categories: eclipse, FLOSS, howto, java, open source, oss, software development debug, deploy, eclipse, howto, java, open source, openejb, software, software development, tomcat, war