Re: [Httpunit-develop] Setting default servelt for ServletRunner
Brought to you by:
russgold
From: Russell G. <rus...@ht...> - 2005-05-27 11:18:40
|
On May 26, 2005, at 4:52 AM, Morris, C (Chris) wrote: > Hi, > > Than you for HTTPUnit, this is a very cool package. > > I am testing with the ServletRunner. I can get pages from my > servlets fine, > but when I make a request that requires a page to be parsed, I get: > > com.meterware.httpunit.HttpNotFoundException: Error on HTTP > request: 404 No servlet mapping defined [http://localhost:8081/pims/ > javascript/pims.js] > > It didn't help to add > runner.registerServlet("default", > "org.apache.catalina.servlets.DefaultServlet"); > > I see from the change list that the ServletRunner > suports the default servlet, but how do I configure this? > I haven't provided the relevant file path anywhere, > unless it guesses it from the file path for my web.xml. You need to map "*.js" to the JavaScript servlet. I don't recall what Tomcat calls it these days. |