Hm.  This might be a problem with web.xml.

If I deploy app-cactus.war to my app server (jboss, for instance), I can
click through links, but the pages are blank, as if the jsp pages were
throwing exceptions.

However, if I rename the war file to app.war (remove -cactus), I can
click around the application just fine.

I also note that a colleague has added a <displayname> element to the
web.xml file.  Commenting that out hasn't solved the problem, yet.

Is there any way to make the maven task use a different name of the war
file (just for debugging, since I don't knowingly require any particular
context)?

Keith

On Fri, 2004-01-02 at 18:03, Keith Irwin wrote:
> Folks--
> 
> I'm using maven and can't seem to test my struts actions with struts
> test case.
> 
> Figured I'd bypass it and just use ServletTestCase instead but keep
> getting a nullpointer exception.
> 
> 
> public void beginTest(WebRequest request) {
>    request.setURL("localhost:8080", "/public", "/home.do", null, null);
> }
> 
> public void testTest() {
>    WPAActionServlet servlet = new WPAActionServlet();
>    try {
>       servlet.config();
>       servlet.service(request, response);
>    }
> 
>    catch (Exception e) {
>     "...."
>    }
> }
> 
> I get a NullPointerException every time.  (WPAActionServlet is an
> extension of the ActionServlet).
> 
> Is testing Struts actions with ServletTestCase a bit less trivial than
> the above suggests?  (The WPAActionServlet seems to work in that I can
> tell from logs that it's loading all its plugins.)
> 
> Keith
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to