Archive

Posts Tagged ‘jetty 7’

Embedding Jetty 7 into a Java application (and programmatically configuring it)

embedding-jetty-7-into-a-java-application-and-programmatically-configuring-it

I recently had to do this for work and had quite a bit of difficulty due to pretty much all the documentation available on the internets being for Jetty 6 (there has been several API/structural changes that means most of the Jetty 6 documentation is rendered useless).

This guide will show you how to create a Jetty 7 instance in your Java application and configure it programmatically (eliminating the need to load a jetty.xml config file, and therefore disallowing the user from frigging with the config (which was essential for my situation)). Read more…

Merging many .jar files into one .jar file

merging-many-jar-files-into-one-jar-file

Some projects are distributed as a whole bunch of .jar files. For example, the Jetty 7 distribution contains no less than 21 .jar files in its lib/ folder (these are necessary in order to embed it into a Java application). Through trial and error I discovered that pretty much all of them are needed, since they all seem to depend on each other in some way. Read more…