NoClassDefFoundError: org/slf4j/impl/StaticLoggerBinder

You have included a dependency on the SLF4J API, which is what you use in your application for logging, but you must also include an implementation that does the real logging work. For example to log through Log4J you would add this dependency: <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-log4j12</artifactId> <version>1.5.2</version> </dependency> The recommended implementation would be logback-classic, which … Read more

Glueing tile images together using imagemagick’s montage command without resizing

I was looking to do something similar and ended up here (I guess your “as many keywords as possible” thing worked). Here’s what I came up with that worked for me. (geometry and tile adjusted for your needs) montage -border 0 -geometry 660x -tile 3×3 tile* final.jpg The files get added to the tiles horizontally, … Read more

Can I serve JSPs from inside a JAR in lib, or is there a workaround?

Servlet 3.0 which Tomcat 7 supports includes the ability to package jsps into a jar. You need to: place your jsps in META-INF/resources directory of your jar optionally include a web-fragment.xml in the META-INF directory of your jar place the jar in WEB-INF/lib directory of your war You should then be able to reference your … Read more

Why would I use a templating engine? jsp include and jstl vs tiles, freemarker, velocity, sitemesh

A few arguments for Velocity (I haven’t used Freemarker): Potential to re-use templates outside of a web context, such as in sending emails Velocity’s template language syntax is far simpler than JSP EL or tag libraries Strict separation of view logic from any other sort of logic – no possible option to drop down to … Read more