Website in a jar?
March 10th, 2006 by HenI’ve got a little tool called ReportRunner that is currently rather tricky to use - as you have to grab the jar, create the configuration files and get the exploded webapp; ie) lots of jsp and javascript etc.
I’m not too concerned with the config; but does anyone have any thoughts on how better to do the small web wizard? I’d like it to be in the jar if possible - currently I’m slowly migrating the jsp to velocity - but other ideas would be welcomed.

March 10th, 2006 at 1:37 am
I would use an embedded Jetty server and FreeMarker/Velocity templates. If you use something like JarJar (jarjar.sf.net) you could bundle everything into a single jar runnable via “java -jar rr.jar”
March 10th, 2006 at 1:54 am
Check out the Winstone Servlet Container (http://winstone.sourceforge.net/) it has got direct support for putting everything inside one jar and running your application from a single jar.
March 10th, 2006 at 4:09 am
You could always try using slim [1] to render the JSPs rather than converting them to velocity.
They may need some tweaking, (or maybe a lot of tweaking depending on how well they’ve been written) but it’s almost certainly less work than converting them to velocity or freemarker.
[1] http://www.adjective.org/slim/