<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Executable WARs with Jetty</title>
	<atom:link href="http://eclipsesource.com/blogs/2009/10/02/executable-wars-with-jetty/feed/" rel="self" type="application/rss+xml" />
	<link>http://eclipsesource.com/blogs/2009/10/02/executable-wars-with-jetty/</link>
	<description>Eclipse Equinox OSGi</description>
	<lastBuildDate>Wed, 16 May 2012 08:22:45 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Paolo Milani</title>
		<link>http://eclipsesource.com/blogs/2009/10/02/executable-wars-with-jetty/comment-page-1/#comment-14476</link>
		<dc:creator>Paolo Milani</dc:creator>
		<pubDate>Tue, 28 Feb 2012 10:08:53 +0000</pubDate>
		<guid isPermaLink="false">http://eclipsesource.com/blogs/?p=3134#comment-14476</guid>
		<description>In short, I lost the WAR -- but won the battle ;)
The only benefit of packaging a WAR in such a configuration is to build a single artifact that supports 2 different environments.
More precisely a WAR is a particularly structured package that is understood by a standard JEE servlet container.
We don&#039;t need to support a servlet container anymore as we are migrating this app out of a JBoss.
In the case of running an embedded Jetty server, you can get away much more easily by creating a &quot;uber-jar&quot;. 
I used the maven-shade-plugin for that, I found it easier and more controllable than the assembly plugin or onejar.

Hope this gives you some ideas,
cheers</description>
		<content:encoded><![CDATA[<p>In short, I lost the WAR &#8212; but won the battle <img src='http://eclipsesource.com/blogs/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
The only benefit of packaging a WAR in such a configuration is to build a single artifact that supports 2 different environments.<br />
More precisely a WAR is a particularly structured package that is understood by a standard JEE servlet container.<br />
We don&#8217;t need to support a servlet container anymore as we are migrating this app out of a JBoss.<br />
In the case of running an embedded Jetty server, you can get away much more easily by creating a &#8220;uber-jar&#8221;.<br />
I used the maven-shade-plugin for that, I found it easier and more controllable than the assembly plugin or onejar.</p>
<p>Hope this gives you some ideas,<br />
cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: U Wieske</title>
		<link>http://eclipsesource.com/blogs/2009/10/02/executable-wars-with-jetty/comment-page-1/#comment-14449</link>
		<dc:creator>U Wieske</dc:creator>
		<pubDate>Mon, 27 Feb 2012 20:07:24 +0000</pubDate>
		<guid isPermaLink="false">http://eclipsesource.com/blogs/?p=3134#comment-14449</guid>
		<description>Paolo, 

I have the same thoughts as you, about the &quot;hacky&quot; part. Have you already found another alternative for the aforementioned solution?
I keep on getting the same references to the &quot;Start&quot; example solution on Internet.

I wonder.... can these alien resources (classes in the root of this webapp) be served as response of a HTTP request? ..... :-/</description>
		<content:encoded><![CDATA[<p>Paolo, </p>
<p>I have the same thoughts as you, about the &#8220;hacky&#8221; part. Have you already found another alternative for the aforementioned solution?<br />
I keep on getting the same references to the &#8220;Start&#8221; example solution on Internet.</p>
<p>I wonder&#8230;. can these alien resources (classes in the root of this webapp) be served as response of a HTTP request? &#8230;.. :-/</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paolo Milani</title>
		<link>http://eclipsesource.com/blogs/2009/10/02/executable-wars-with-jetty/comment-page-1/#comment-14206</link>
		<dc:creator>Paolo Milani</dc:creator>
		<pubDate>Sun, 12 Feb 2012 16:26:23 +0000</pubDate>
		<guid isPermaLink="false">http://eclipsesource.com/blogs/?p=3134#comment-14206</guid>
		<description>I was doing this myself, as I was also inspired by Hudson/Jenkins.
It seems the only way to support loading via &quot;java -jar&quot; requires to put the main .class and its dependencies in the &quot;root&quot; of the WAR, as it needs to be found via &quot;Main-Class&quot; attribute in MANIFEST.MF.
I can&#039;t get over the fact that sorting out the package structure is hacky.

If anybody knows a different solution, please share!

Anyway, the getProtectionDomain() trick is pretty neat.</description>
		<content:encoded><![CDATA[<p>I was doing this myself, as I was also inspired by Hudson/Jenkins.<br />
It seems the only way to support loading via &#8220;java -jar&#8221; requires to put the main .class and its dependencies in the &#8220;root&#8221; of the WAR, as it needs to be found via &#8220;Main-Class&#8221; attribute in MANIFEST.MF.<br />
I can&#8217;t get over the fact that sorting out the package structure is hacky.</p>
<p>If anybody knows a different solution, please share!</p>
<p>Anyway, the getProtectionDomain() trick is pretty neat.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jan Nielsen</title>
		<link>http://eclipsesource.com/blogs/2009/10/02/executable-wars-with-jetty/comment-page-1/#comment-10450</link>
		<dc:creator>Jan Nielsen</dc:creator>
		<pubDate>Fri, 16 Sep 2011 06:58:55 +0000</pubDate>
		<guid isPermaLink="false">http://eclipsesource.com/blogs/?p=3134#comment-10450</guid>
		<description>And how do you get support for JSP?

I get this: &quot;NO JSP Support for /, did not find org.apache.jasper.servlet.JspServlet&quot;

I have no idea of how to pass in the option, like this: $ java -jar jetty.jar OPTIONS=Server,jsp from 
http://manolocarrasco.blogspot.com/2009/09/tip-enabling-jsp-support-in-jetty700.html</description>
		<content:encoded><![CDATA[<p>And how do you get support for JSP?</p>
<p>I get this: &#8220;NO JSP Support for /, did not find org.apache.jasper.servlet.JspServlet&#8221;</p>
<p>I have no idea of how to pass in the option, like this: $ java -jar jetty.jar OPTIONS=Server,jsp from<br />
<a href="http://manolocarrasco.blogspot.com/2009/09/tip-enabling-jsp-support-in-jetty700.html" rel="nofollow">http://manolocarrasco.blogspot.com/2009/09/tip-enabling-jsp-support-in-jetty700.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frederik Heick</title>
		<link>http://eclipsesource.com/blogs/2009/10/02/executable-wars-with-jetty/comment-page-1/#comment-9533</link>
		<dc:creator>Frederik Heick</dc:creator>
		<pubDate>Fri, 29 Apr 2011 11:59:24 +0000</pubDate>
		<guid isPermaLink="false">http://eclipsesource.com/blogs/?p=3134#comment-9533</guid>
		<description>But how do you build it?
What goal do you use and what dependencies is nessecary?

Need a bit more info.

So if I have Maven project which generates a war file.
How do I make it executable with Jetty.?</description>
		<content:encoded><![CDATA[<p>But how do you build it?<br />
What goal do you use and what dependencies is nessecary?</p>
<p>Need a bit more info.</p>
<p>So if I have Maven project which generates a war file.<br />
How do I make it executable with Jetty.?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Vorburger</title>
		<link>http://eclipsesource.com/blogs/2009/10/02/executable-wars-with-jetty/comment-page-1/#comment-9335</link>
		<dc:creator>Michael Vorburger</dc:creator>
		<pubDate>Wed, 30 Mar 2011 22:06:39 +0000</pubDate>
		<guid isPermaLink="false">http://eclipsesource.com/blogs/?p=3134#comment-9335</guid>
		<description>Note the executable-war-archetype , used as starting-point in the http://Mifos.org WAR, see http://goo.gl/nwZNE.</description>
		<content:encoded><![CDATA[<p>Note the executable-war-archetype , used as starting-point in the <a href="http://Mifos.org" rel="nofollow">http://Mifos.org</a> WAR, see <a href="http://goo.gl/nwZNE" rel="nofollow">http://goo.gl/nwZNE</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Krish Dasari</title>
		<link>http://eclipsesource.com/blogs/2009/10/02/executable-wars-with-jetty/comment-page-1/#comment-8572</link>
		<dc:creator>Krish Dasari</dc:creator>
		<pubDate>Wed, 12 Jan 2011 20:00:05 +0000</pubDate>
		<guid isPermaLink="false">http://eclipsesource.com/blogs/?p=3134#comment-8572</guid>
		<description>Thanks for the tip. I got inspired and did a proof of concept to build an executable war using maven, grails and jetty.
Notes is available @ krishnadasari.blogspot.com</description>
		<content:encoded><![CDATA[<p>Thanks for the tip. I got inspired and did a proof of concept to build an executable war using maven, grails and jetty.<br />
Notes is available @ krishnadasari.blogspot.com</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leonard Axelsson</title>
		<link>http://eclipsesource.com/blogs/2009/10/02/executable-wars-with-jetty/comment-page-1/#comment-3246</link>
		<dc:creator>Leonard Axelsson</dc:creator>
		<pubDate>Thu, 17 Dec 2009 18:39:23 +0000</pubDate>
		<guid isPermaLink="false">http://eclipsesource.com/blogs/?p=3134#comment-3246</guid>
		<description>Thanks for the tip, probably saved me a lot of time :)

Used your example as the base for a gradle script that takes a war and &quot;jettyfies&quot; it. Might be interesting to someone: http://bit.ly/standalone-war</description>
		<content:encoded><![CDATA[<p>Thanks for the tip, probably saved me a lot of time <img src='http://eclipsesource.com/blogs/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Used your example as the base for a gradle script that takes a war and &#8220;jettyfies&#8221; it. Might be interesting to someone: <a href="http://bit.ly/standalone-war" rel="nofollow">http://bit.ly/standalone-war</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fernnado</title>
		<link>http://eclipsesource.com/blogs/2009/10/02/executable-wars-with-jetty/comment-page-1/#comment-2992</link>
		<dc:creator>Fernnado</dc:creator>
		<pubDate>Wed, 14 Oct 2009 17:06:52 +0000</pubDate>
		<guid isPermaLink="false">http://eclipsesource.com/blogs/?p=3134#comment-2992</guid>
		<description>Maybe you should get this into the maven-jetty-plugin, as an option to publish an executable war file :)</description>
		<content:encoded><![CDATA[<p>Maybe you should get this into the maven-jetty-plugin, as an option to publish an executable war file <img src='http://eclipsesource.com/blogs/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Manuel Woelker</title>
		<link>http://eclipsesource.com/blogs/2009/10/02/executable-wars-with-jetty/comment-page-1/#comment-2991</link>
		<dc:creator>Manuel Woelker</dc:creator>
		<pubDate>Tue, 13 Oct 2009 17:45:57 +0000</pubDate>
		<guid isPermaLink="false">http://eclipsesource.com/blogs/?p=3134#comment-2991</guid>
		<description>Good call, Tim. Fixed now. To be honest nowadays I don&#039;t import anything, I just Ctrl-Shift-O it.</description>
		<content:encoded><![CDATA[<p>Good call, Tim. Fixed now. To be honest nowadays I don&#8217;t import anything, I just Ctrl-Shift-O it.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

