[Httpunit-develop] Setting default servelt for ServletRunner
Brought to you by:
russgold
From: Morris, C \(Chris\) <c.m...@dl...> - 2005-05-26 08:52:44
|
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. regards, Chris ____________________________________________ Chris Morris C.M...@dl... Tel: +44 1925 603689 Fax: +44 1925 603825 Mobile: 07921-717915 http://www.pims-lims.org/project/ Daresbury Lab, Daresbury, Warrington, UK, WA4 4AD com.meterware.httpunit.HttpNotFoundException: Error on HTTP request: 404 No servlet mapping defined [http://localhost:8081/pims/javascript/pims.js] |