-
Subscribe -
Community
-
Top Commenters
-
Popular Threads
-
Recent Comments
- Thanks for your comment. I've encountered people who talk about non-distributed SOA. I think that is an idea that is totally boring, as it says nothing that hasn't been said for twenty...
- In the text you, like most I think, define services to be distributed. I do not understand why everybody i
- Hi, Eve Thanks for the offer. Let me know if there's any way I can make it easier. Do you think I should consolidate all the articles into one, for example?
- I'd be more than happy to read drafts, run through example code, and whatnot. I've done a little bit of Rails work, but I'm enough of a noob that I'll be able to give good feedback...
- I've never had much luck with the precreated keys. But then again, I use the convention of a null-key to indicate unsaved objects, so I'd run into other problems. FWIW, it sounds like your...
Jump to original thread »
Do you speak test? In that case: Hello web application:
public class WebIntegrationTest extends net.sourceforge.jwebunit.WebTestCase {
public void testIndex() {
beginAt("/index.html");
assertTextPresent("Hello world");
}%0 ... Continue reading »
public class WebIntegrationTest extends net.sourceforge.jwebunit.WebTestCase {
public void testIndex() {
beginAt("/index.html");
assertTextPresent("Hello world");
}%0 ... Continue reading »
1 year ago
1 year ago
I am however having problems with getting JNID working within Jetty. Can you confirm the quoted code is correct?
1 year ago
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/0...
The code for this particular bit is here: http://svn.brodwall.com/demo/insanejava/trunk/w...
If you still don't have any success, feel free to post the problem here, or send me an email.
1 year ago
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/Classloa...
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 --
1 year ago
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