Logging with log4j in jetty-maven-plugin

The jetty-maven-plugin is a great way to run a webapp during development. But the main problem is that it doesn’t print debug messages when you are using commons-logging. The reason is that it by default uses org.apache.commons.logging.impl.SimpleLog. This logger can’t print debug messages. Here is the solution on how to change this default behaviour so that it use Log4J instead.

Continue reading

Automagic taglib descriptors with XDoclet and Maven 2

From time to time I do write JSP taglibs. The java-part of this is almost fun. But writing the tld-files by hand is something that simply is just boring. Therefor I use XDoclet (webdoclet) to generate these tld-files for me. This small tutorial will show you what XDoclet tags you must set in your taglib class, and finally how to get XDoclet doing the magic with Maven 2.

Continue reading