If you're using Struts 2, you might be interested in this:

http://cwiki.apache.org/S2PLUGINS/osgi-plugin.html

Though, it's still experimental...