<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.1.3" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Superceeded Article: Embedded Web Integration Testing with Jetty</title>
	<link>http://www.brodwall.com/johannes/blog/2007/01/20/article-ready-for-edit-embedded-web-integration-testing-with-jetty/</link>
	<description>Johannes Brodwall's Musings on Software Architecture and Programming</description>
	<pubDate>Fri, 10 Oct 2008 22:53:36 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.1.3</generator>

	<item>
		<title>By: Niraj Manandhar</title>
		<link>http://www.brodwall.com/johannes/blog/2007/01/20/article-ready-for-edit-embedded-web-integration-testing-with-jetty/#comment-84344</link>
		<author>Niraj Manandhar</author>
		<pubDate>Sun, 21 Jan 2007 02:11:20 +0000</pubDate>
		<guid>http://www.brodwall.com/johannes/blog/2007/01/20/article-ready-for-edit-embedded-web-integration-testing-with-jetty/#comment-84344</guid>
					<description>Thank you  Mr. Johannes for this article</description>
		<content:encoded><![CDATA[<p>Thank you  Mr. Johannes for this article</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Niraj Manandhar</title>
		<link>http://www.brodwall.com/johannes/blog/2007/01/20/article-ready-for-edit-embedded-web-integration-testing-with-jetty/#comment-922</link>
		<author>Niraj Manandhar</author>
		<pubDate>Sun, 21 Jan 2007 05:11:20 +0000</pubDate>
		<guid>http://www.brodwall.com/johannes/blog/2007/01/20/article-ready-for-edit-embedded-web-integration-testing-with-jetty/#comment-922</guid>
					<description>Thank you  Mr. Johannes for this article</description>
		<content:encoded><![CDATA[<p>Thank you  Mr. Johannes for this article</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Martin Gilday</title>
		<link>http://www.brodwall.com/johannes/blog/2007/01/20/article-ready-for-edit-embedded-web-integration-testing-with-jetty/#comment-84345</link>
		<author>Martin Gilday</author>
		<pubDate>Wed, 28 Feb 2007 12:01:41 +0000</pubDate>
		<guid>http://www.brodwall.com/johannes/blog/2007/01/20/article-ready-for-edit-embedded-web-integration-testing-with-jetty/#comment-84345</guid>
					<description>Thanks for the article,  been very useful in setting up our end to end tests.  &lt;br&gt;I am however having problems with getting JNID working within Jetty.  Can you confirm the quoted code is correct?</description>
		<content:encoded><![CDATA[<p>Thanks for the article,  been very useful in setting up our end to end tests.  <br />I am however having problems with getting JNID working within Jetty.  Can you confirm the quoted code is correct?</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Johannes Brodwall</title>
		<link>http://www.brodwall.com/johannes/blog/2007/01/20/article-ready-for-edit-embedded-web-integration-testing-with-jetty/#comment-84346</link>
		<author>Johannes Brodwall</author>
		<pubDate>Wed, 28 Feb 2007 12:18:35 +0000</pubDate>
		<guid>http://www.brodwall.com/johannes/blog/2007/01/20/article-ready-for-edit-embedded-web-integration-testing-with-jetty/#comment-84346</guid>
					<description>Hi, Martin&lt;br&gt;&lt;br&gt;I am pretty sure it is correct. But make sure that you use the latest version of this article: &lt;a href="http://www.brodwall.com/johannes/blog/2007/02/04/updated-article-embedded-web-integration-testing-with-jetty/"&gt;http://www.brodwall.com/johannes/blog/2007/02/0...&lt;/a&gt;&lt;br&gt;&lt;br&gt;The code for this particular bit is here: &lt;a href="http://svn.brodwall.com/demo/insanejava/trunk/web-demo/src/test/java/no/brodwall/web/integration/JettyTestServer.java"&gt;http://svn.brodwall.com/demo/insanejava/trunk/w...&lt;/a&gt;&lt;br&gt;&lt;br&gt;If you still don&#39;t have any success, feel free to post the problem here, or send me an email.</description>
		<content:encoded><![CDATA[<p>Hi, Martin</p>
<p>I am pretty sure it is correct. But make sure that you use the latest version of this article: <a href="http://www.brodwall.com/johannes/blog/2007/02/04/updated-article-embedded-web-integration-testing-with-jetty/">http://www.brodwall.com/johannes/blog/2007/02/0&#8230;</a></p>
<p>The code for this particular bit is here: <a href="http://svn.brodwall.com/demo/insanejava/trunk/web-demo/src/test/java/no/brodwall/web/integration/JettyTestServer.java">http://svn.brodwall.com/demo/insanejava/trunk/w&#8230;</a></p>
<p>If you still don&#39;t have any success, feel free to post the problem here, or send me an email.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Martin Gilday</title>
		<link>http://www.brodwall.com/johannes/blog/2007/01/20/article-ready-for-edit-embedded-web-integration-testing-with-jetty/#comment-2439</link>
		<author>Martin Gilday</author>
		<pubDate>Wed, 28 Feb 2007 15:01:41 +0000</pubDate>
		<guid>http://www.brodwall.com/johannes/blog/2007/01/20/article-ready-for-edit-embedded-web-integration-testing-with-jetty/#comment-2439</guid>
					<description>Thanks for the article,  been very useful in setting up our end to end tests.  
I am however having problems with getting JNID working within Jetty.  Can you confirm the quoted code is correct?</description>
		<content:encoded><![CDATA[<p>Thanks for the article,  been very useful in setting up our end to end tests.<br />
I am however having problems with getting JNID working within Jetty.  Can you confirm the quoted code is correct?</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Johannes Brodwall</title>
		<link>http://www.brodwall.com/johannes/blog/2007/01/20/article-ready-for-edit-embedded-web-integration-testing-with-jetty/#comment-2440</link>
		<author>Johannes Brodwall</author>
		<pubDate>Wed, 28 Feb 2007 15:18:35 +0000</pubDate>
		<guid>http://www.brodwall.com/johannes/blog/2007/01/20/article-ready-for-edit-embedded-web-integration-testing-with-jetty/#comment-2440</guid>
					<description>Hi, Martin

I am pretty sure it is correct. But make sure that you use the latest version of this article: http://www.brodwall.com/johannes/blog/2007/02/04/updated-article-embedded-web-integration-testing-with-jetty/

The code for this particular bit is here: http://svn.brodwall.com/demo/insanejava/trunk/web-demo/src/test/java/no/brodwall/web/integration/JettyTestServer.java

If you still don't have any success, feel free to post the problem here, or send me an email.</description>
		<content:encoded><![CDATA[<p>Hi, Martin</p>
<p>I am pretty sure it is correct. But make sure that you use the latest version of this article: <a href="http://www.brodwall.com/johannes/blog/2007/02/04/updated-article-embedded-web-integration-testing-with-jetty/" rel="nofollow">http://www.brodwall.com/johannes/blog/2007/02/04/updated-article-embedded-web-integration-testing-with-jetty/</a></p>
<p>The code for this particular bit is here: <a href="http://svn.brodwall.com/demo/insanejava/trunk/web-demo/src/test/java/no/brodwall/web/integration/JettyTestServer.java" rel="nofollow">http://svn.brodwall.com/demo/insanejava/trunk/web-demo/src/test/java/no/brodwall/web/integration/JettyTestServer.java</a></p>
<p>If you still don&#8217;t have any success, feel free to post the problem here, or send me an email.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: suresh</title>
		<link>http://www.brodwall.com/johannes/blog/2007/01/20/article-ready-for-edit-embedded-web-integration-testing-with-jetty/#comment-84347</link>
		<author>suresh</author>
		<pubDate>Thu, 15 Mar 2007 04:35:23 +0000</pubDate>
		<guid>http://www.brodwall.com/johannes/blog/2007/01/20/article-ready-for-edit-embedded-web-integration-testing-with-jetty/#comment-84347</guid>
					<description>Thanks for the article. I ran into an issue with Jetty classloading when running on a linux platform.&lt;br&gt;&lt;br&gt;The code which retrieves Springs WebApplicatonContext using the jetty server&#39;s servlet context was failing. Specifically, the following code was throwing a ClassCastException:&lt;br&gt;&lt;br&gt;            ApplicationContext appctx = WebApplicationContextUtils&lt;br&gt;                .getRequiredWebApplicationContext(servletContext);&lt;br&gt;&lt;br&gt;The reason being that the Spring&#39;s application context was loaded by Jetty&#39;s own classloader, hence cannot be used here.&lt;br&gt;&lt;br&gt;The work around was to set the parentLoaderPriority to true while creating the Jetty server as described here: &lt;a href="http://docs.codehaus.org/display/JETTY/Classloading"&gt;http://docs.codehaus.org/display/JETTY/Classloa...&lt;/a&gt;&lt;br&gt;&lt;br&gt;eg:&lt;br&gt;        WebAppContext context = new WebAppContext();&lt;br&gt;        context.setParentLoaderPriority(true);&lt;br&gt;        context.setContextPath("/");&lt;br&gt;        context.setWar("path/to/war/or/exploded/war");&lt;br&gt;        jettyServer.setHandler(context);&lt;br&gt;&lt;br&gt;The errors happens didnt happen on a Windows XP box. But while running our CI builds on a Redhat EL4 box, the classcast exception was thrown.&lt;br&gt;&lt;br&gt;Redhat EL4&lt;br&gt;JDK 1.5_07-b3&lt;br&gt;Jetty-6.1.1&lt;br&gt;Spring-Framework-2.0.2&lt;br&gt;&lt;br&gt;Hope this might help someone who runs into the same problem.&lt;br&gt;&lt;br&gt;&lt;br&gt;-- suresh --</description>
		<content:encoded><![CDATA[<p>Thanks for the article. I ran into an issue with Jetty classloading when running on a linux platform.</p>
<p>The code which retrieves Springs WebApplicatonContext using the jetty server&#39;s servlet context was failing. Specifically, the following code was throwing a ClassCastException:</p>
<p>            ApplicationContext appctx = WebApplicationContextUtils<br />                .getRequiredWebApplicationContext(servletContext);</p>
<p>The reason being that the Spring&#39;s application context was loaded by Jetty&#39;s own classloader, hence cannot be used here.</p>
<p>The work around was to set the parentLoaderPriority to true while creating the Jetty server as described here: <a href="http://docs.codehaus.org/display/JETTY/Classloading">http://docs.codehaus.org/display/JETTY/Classloa&#8230;</a></p>
<p>eg:<br />        WebAppContext context = new WebAppContext();<br />        context.setParentLoaderPriority(true);<br />        context.setContextPath(&#8221;/&#8221;);<br />        context.setWar(&#8221;path/to/war/or/exploded/war&#8221;);<br />        jettyServer.setHandler(context);</p>
<p>The errors happens didnt happen on a Windows XP box. But while running our CI builds on a Redhat EL4 box, the classcast exception was thrown.</p>
<p>Redhat EL4<br />JDK 1.5_07-b3<br />Jetty-6.1.1<br />Spring-Framework-2.0.2</p>
<p>Hope this might help someone who runs into the same problem.</p>
<p>&#8211; suresh &#8211;</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: suresh</title>
		<link>http://www.brodwall.com/johannes/blog/2007/01/20/article-ready-for-edit-embedded-web-integration-testing-with-jetty/#comment-3017</link>
		<author>suresh</author>
		<pubDate>Thu, 15 Mar 2007 06:35:23 +0000</pubDate>
		<guid>http://www.brodwall.com/johannes/blog/2007/01/20/article-ready-for-edit-embedded-web-integration-testing-with-jetty/#comment-3017</guid>
					<description>Thanks for the article. I ran into an issue with Jetty classloading when running on a linux platform.

The code which retrieves Springs WebApplicatonContext using the jetty server's servlet context was failing. Specifically, the following code was throwing a ClassCastException:

            ApplicationContext appctx = WebApplicationContextUtils
                .getRequiredWebApplicationContext(servletContext);

The reason being that the Spring's application context was loaded by Jetty's own classloader, hence cannot be used here.

The work around was to set the parentLoaderPriority to true while creating the Jetty server as described here: http://docs.codehaus.org/display/JETTY/Classloading

eg:
        WebAppContext context = new WebAppContext();
        context.setParentLoaderPriority(true);
        context.setContextPath("/");
        context.setWar("path/to/war/or/exploded/war");
        jettyServer.setHandler(context);

The errors happens didnt happen on a Windows XP box. But while running our CI builds on a Redhat EL4 box, the classcast exception was thrown.

Redhat EL4
JDK 1.5_07-b3
Jetty-6.1.1
Spring-Framework-2.0.2

Hope this might help someone who runs into the same problem.


-- suresh --</description>
		<content:encoded><![CDATA[<p>Thanks for the article. I ran into an issue with Jetty classloading when running on a linux platform.</p>
<p>The code which retrieves Springs WebApplicatonContext using the jetty server&#8217;s servlet context was failing. Specifically, the following code was throwing a ClassCastException:</p>
<p>            ApplicationContext appctx = WebApplicationContextUtils<br />
                .getRequiredWebApplicationContext(servletContext);</p>
<p>The reason being that the Spring&#8217;s application context was loaded by Jetty&#8217;s own classloader, hence cannot be used here.</p>
<p>The work around was to set the parentLoaderPriority to true while creating the Jetty server as described here: <a href="http://docs.codehaus.org/display/JETTY/Classloading" rel="nofollow">http://docs.codehaus.org/display/JETTY/Classloading</a></p>
<p>eg:<br />
        WebAppContext context = new WebAppContext();<br />
        context.setParentLoaderPriority(true);<br />
        context.setContextPath(&#8221;/&#8221;);<br />
        context.setWar(&#8221;path/to/war/or/exploded/war&#8221;);<br />
        jettyServer.setHandler(context);</p>
<p>The errors happens didnt happen on a Windows XP box. But while running our CI builds on a Redhat EL4 box, the classcast exception was thrown.</p>
<p>Redhat EL4<br />
JDK 1.5_07-b3<br />
Jetty-6.1.1<br />
Spring-Framework-2.0.2</p>
<p>Hope this might help someone who runs into the same problem.</p>
<p>&#8211; suresh &#8211;</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Johannes Brodwall</title>
		<link>http://www.brodwall.com/johannes/blog/2007/01/20/article-ready-for-edit-embedded-web-integration-testing-with-jetty/#comment-84348</link>
		<author>Johannes Brodwall</author>
		<pubDate>Thu, 15 Mar 2007 21:50:47 +0000</pubDate>
		<guid>http://www.brodwall.com/johannes/blog/2007/01/20/article-ready-for-edit-embedded-web-integration-testing-with-jetty/#comment-84348</guid>
					<description>Hi, Suresh.&lt;br&gt;&lt;br&gt;I was not aware of this issue. Thanks for the heads-up and the good feedback. I will have to work on how to integrate it into the text, but I have updated the source code in SVN.&lt;br&gt;&lt;br&gt;&lt;br&gt;~Johannes</description>
		<content:encoded><![CDATA[<p>Hi, Suresh.</p>
<p>I was not aware of this issue. Thanks for the heads-up and the good feedback. I will have to work on how to integrate it into the text, but I have updated the source code in SVN.</p>
<p>~Johannes</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Johannes Brodwall</title>
		<link>http://www.brodwall.com/johannes/blog/2007/01/20/article-ready-for-edit-embedded-web-integration-testing-with-jetty/#comment-3026</link>
		<author>Johannes Brodwall</author>
		<pubDate>Thu, 15 Mar 2007 23:50:47 +0000</pubDate>
		<guid>http://www.brodwall.com/johannes/blog/2007/01/20/article-ready-for-edit-embedded-web-integration-testing-with-jetty/#comment-3026</guid>
					<description>Hi, Suresh.

I was not aware of this issue. Thanks for the heads-up and the good feedback. I will have to work on how to integrate it into the text, but I have updated the source code in SVN.


~Johannes</description>
		<content:encoded><![CDATA[<p>Hi, Suresh.</p>
<p>I was not aware of this issue. Thanks for the heads-up and the good feedback. I will have to work on how to integrate it into the text, but I have updated the source code in SVN.</p>
<p>~Johannes</p>
]]></content:encoded>
				</item>
</channel>
</rss>
