<?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>Fri, 03 Feb 2012 14:17:31 +0100</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
	<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>
	<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>
</channel>
</rss>

