<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Thinking inside a bigger box - Latest Comments in Superceeded Article: Embedded Web Integration Testing with Jetty</title><link>http://thinkinginsideabiggerbox.disqus.com/</link><description></description><language>en</language><lastBuildDate>Thu, 15 Mar 2007 23:50:47 -0000</lastBuildDate><item><title>Re: 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/#comment-1797259</link><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><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Johannes Brodwall</dc:creator><pubDate>Thu, 15 Mar 2007 23:50:47 -0000</pubDate></item><item><title>Re: 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/#comment-1797258</link><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'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's application context was loaded by Jetty'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><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">suresh</dc:creator><pubDate>Thu, 15 Mar 2007 06:35:23 -0000</pubDate></item><item><title>Re: 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/#comment-1797257</link><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't have any success, feel free to post the problem here, or send me an email.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Johannes Brodwall</dc:creator><pubDate>Wed, 28 Feb 2007 15:18:35 -0000</pubDate></item><item><title>Re: 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/#comment-1797256</link><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><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Martin Gilday</dc:creator><pubDate>Wed, 28 Feb 2007 15:01:41 -0000</pubDate></item><item><title>Re: 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/#comment-1797255</link><description>Thank you  Mr. Johannes for this article</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Niraj Manandhar</dc:creator><pubDate>Sun, 21 Jan 2007 05:11:20 -0000</pubDate></item></channel></rss>