<?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>Sat, 20 Mar 2010 03:13:03 +0100</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<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>
	<item>
		<title>By: Tim Perrett</title>
		<link>http://eclipsesource.com/blogs/2009/10/02/executable-wars-with-jetty/comment-page-1/#comment-2989</link>
		<dc:creator>Tim Perrett</dc:creator>
		<pubDate>Mon, 12 Oct 2009 16:04:11 +0000</pubDate>
		<guid isPermaLink="false">http://eclipsesource.com/blogs/?p=3134#comment-2989</guid>
		<description>Hey Manuel,

This is great stuff - although, you really need to include the import statements in your code snippet so people know where those classes are coming from as its not clear.</description>
		<content:encoded><![CDATA[<p>Hey Manuel,</p>
<p>This is great stuff &#8211; although, you really need to include the import statements in your code snippet so people know where those classes are coming from as its not clear.</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-2977</link>
		<dc:creator>Manuel Woelker</dc:creator>
		<pubDate>Thu, 08 Oct 2009 19:09:45 +0000</pubDate>
		<guid isPermaLink="false">http://eclipsesource.com/blogs/?p=3134#comment-2977</guid>
		<description>Joel, your MANIFEST.MF is probably okay, but I don&#039;t think plain Java supports jars-in-jars (or jars-in-wars in this case). I simply have the jetty classes right along side everything else in the war. So the top level in the war looks like this:

META-INF/
WEB-INF/
org/
javax/
Start.class

The manifest is in META-INF, the web-app itself in WEB-INF, Jetty resides in org/mortbay/jetty, the servlet API is under javax/servlet and the Start.class is referenced in the manifest. I used Jetty 6.1.17 [1], unpacked all the jars from the lib directory and then added both the org and the javax directories to the war, followed by Start.class and the META-INF/ folder with the manifest.

Hope that helps, good luck.

[1] http://dist.codehaus.org/jetty/jetty-6.1.17/jetty-6.1.17.zip</description>
		<content:encoded><![CDATA[<p>Joel, your MANIFEST.MF is probably okay, but I don&#8217;t think plain Java supports jars-in-jars (or jars-in-wars in this case). I simply have the jetty classes right along side everything else in the war. So the top level in the war looks like this:</p>
<p>META-INF/<br />
WEB-INF/<br />
org/<br />
javax/<br />
Start.class</p>
<p>The manifest is in META-INF, the web-app itself in WEB-INF, Jetty resides in org/mortbay/jetty, the servlet API is under javax/servlet and the Start.class is referenced in the manifest. I used Jetty 6.1.17 [1], unpacked all the jars from the lib directory and then added both the org and the javax directories to the war, followed by Start.class and the META-INF/ folder with the manifest.</p>
<p>Hope that helps, good luck.</p>
<p>[1] <a href="http://dist.codehaus.org/jetty/jetty-6.1.17/jetty-6.1.17.zip" rel="nofollow">http://dist.codehaus.org/jetty/jetty-6.1.17/jetty-6.1.17.zip</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joel</title>
		<link>http://eclipsesource.com/blogs/2009/10/02/executable-wars-with-jetty/comment-page-1/#comment-2975</link>
		<dc:creator>Joel</dc:creator>
		<pubDate>Thu, 08 Oct 2009 17:46:18 +0000</pubDate>
		<guid isPermaLink="false">http://eclipsesource.com/blogs/?p=3134#comment-2975</guid>
		<description>Thx for the info, I was looking to do the same thing. But i can&#039;t make it runnable like hudson. When executing my war with &quot;java -jar myWar.war&quot;, I always get the following exception : Exception in thread &quot;main&quot; java.lang.NoClassDefFoundError: org/mortbay/jetty/Connector

Could you tell me how you configured the manifest file so it worked? 

Currently, i setted my &quot;Main&quot; class in the root of the jar, just like hudson and configured the manifest to use it. But jetty&#039;s jar is in WEB-INF\lib\ unlike winstone in hudson that is in the root.

I tried to set an explicit classpath in the manifest without any success.

If you could provide the layout of your packaged WAR with the manifest you are using, it would really be appreciated.</description>
		<content:encoded><![CDATA[<p>Thx for the info, I was looking to do the same thing. But i can&#8217;t make it runnable like hudson. When executing my war with &#8220;java -jar myWar.war&#8221;, I always get the following exception : Exception in thread &#8220;main&#8221; java.lang.NoClassDefFoundError: org/mortbay/jetty/Connector</p>
<p>Could you tell me how you configured the manifest file so it worked? </p>
<p>Currently, i setted my &#8220;Main&#8221; class in the root of the jar, just like hudson and configured the manifest to use it. But jetty&#8217;s jar is in WEB-INF\lib\ unlike winstone in hudson that is in the root.</p>
<p>I tried to set an explicit classpath in the manifest without any success.</p>
<p>If you could provide the layout of your packaged WAR with the manifest you are using, it would really be appreciated.</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-2974</link>
		<dc:creator>Manuel Woelker</dc:creator>
		<pubDate>Thu, 08 Oct 2009 16:58:57 +0000</pubDate>
		<guid isPermaLink="false">http://eclipsesource.com/blogs/?p=3134#comment-2974</guid>
		<description>So it was right under my nose all along.

I tried mashing up the demo war and Jetty and I can report that it works flawlessly. It adds about 3MB to the file size, so not too bad. Might be worth considering for small demos and such.</description>
		<content:encoded><![CDATA[<p>So it was right under my nose all along.</p>
<p>I tried mashing up the demo war and Jetty and I can report that it works flawlessly. It adds about 3MB to the file size, so not too bad. Might be worth considering for small demos and such.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Benjamin Muskalla</title>
		<link>http://eclipsesource.com/blogs/2009/10/02/executable-wars-with-jetty/comment-page-1/#comment-2969</link>
		<dc:creator>Benjamin Muskalla</dc:creator>
		<pubDate>Wed, 07 Oct 2009 18:37:39 +0000</pubDate>
		<guid isPermaLink="false">http://eclipsesource.com/blogs/?p=3134#comment-2969</guid>
		<description>Manuel, there is a &lt;a href=&quot;http://rap.eclipsesource.com/download/rapdemo.war&quot; rel=&quot;nofollow&quot;&gt;WAR&lt;/a&gt; containing all the regular rap demos apps.</description>
		<content:encoded><![CDATA[<p>Manuel, there is a <a href="http://rap.eclipsesource.com/download/rapdemo.war" rel="nofollow">WAR</a> containing all the regular rap demos apps.</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-2961</link>
		<dc:creator>Manuel Woelker</dc:creator>
		<pubDate>Tue, 06 Oct 2009 11:17:59 +0000</pubDate>
		<guid isPermaLink="false">http://eclipsesource.com/blogs/?p=3134#comment-2961</guid>
		<description>@Benny: Haven&#039;t tried it yet, mostly because I couldn&#039;t find a premade war, and I didn&#039;t want to go through the hassle of creating one myself. If you could provide me with a hello-world RAP WAR (or point me to one) I&#039;d be happy to try that out.

@sud: glassfish might be option too. Jetty is still fairly light-weight. I don&#039;t know any specifics but it would seem as if the overhead for glassfish would be a lot bigger (the glassfish installer weighs in at around 50 MB). There is an &lt;a href=&quot;http://www.slideshare.net/pelegri/glassfish-embedded-api-presentation&quot; rel=&quot;nofollow&quot;&gt;embedded glassfish project&lt;/a&gt; for that purpose, but the JAR still weighs in at around 17MB. So depending on your definition of lightweight this may not be an option.</description>
		<content:encoded><![CDATA[<p>@Benny: Haven&#8217;t tried it yet, mostly because I couldn&#8217;t find a premade war, and I didn&#8217;t want to go through the hassle of creating one myself. If you could provide me with a hello-world RAP WAR (or point me to one) I&#8217;d be happy to try that out.</p>
<p>@sud: glassfish might be option too. Jetty is still fairly light-weight. I don&#8217;t know any specifics but it would seem as if the overhead for glassfish would be a lot bigger (the glassfish installer weighs in at around 50 MB). There is an <a href="http://www.slideshare.net/pelegri/glassfish-embedded-api-presentation" rel="nofollow">embedded glassfish project</a> for that purpose, but the JAR still weighs in at around 17MB. So depending on your definition of lightweight this may not be an option.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sud</title>
		<link>http://eclipsesource.com/blogs/2009/10/02/executable-wars-with-jetty/comment-page-1/#comment-2929</link>
		<dc:creator>sud</dc:creator>
		<pubDate>Fri, 02 Oct 2009 12:53:03 +0000</pubDate>
		<guid isPermaLink="false">http://eclipsesource.com/blogs/?p=3134#comment-2929</guid>
		<description>This is interesting. I&#039;m curious to see what the same code would like for embedded glassfish. I remember seeing it somewhere and it may have been even simpler.</description>
		<content:encoded><![CDATA[<p>This is interesting. I&#8217;m curious to see what the same code would like for embedded glassfish. I remember seeing it somewhere and it may have been even simpler.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
