struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carl Smith <>
Subject multiple struts-config.xml issues with CactusStrutsTestCase
Date Thu, 15 Sep 2005 21:22:47 GMT

I have two struts-config.xml files. One is Struts default struts-config.xml and the other
one is called
struts-my.xml. and I have configued these two xml files in web.xml so that ActionServlet can
take both struts-config.xml
and struts-my.xml. See following:


Now I have a Cactus testing action to test (not included here), I found out
a wired issue: 
if I configure in struts-config.xml, then my test succeed, however if I configure 
in struts-my.xml, the test fails with the following error. Any suggestions?

junit.framework.AssertionFailedError: Cannot find forward 'Your_forwardTarget_Path'  - it
is possible that it is not mapped correctly.
 at java.lang.Throwable.<init>(
 at java.lang.Throwable.<init>(



import org.apache.cactus.WebRequest;
import org.apache.cactus.client.authentication.BasicAuthentication;

import servletunit.struts.CactusStrutsTestCase;

public class MyActionTest extends CactusStrutsTestCase {
 public MyActionTest(String testingName){
 public void begin(WebRequest req){
  req.setAuthentication(new BasicAuthentication("username","password"));
 public void testDisplay() throws Exception {

Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message