StrutsTestCase requires your WEB-INF/struts-config.xml to be in the classpath. So make sure the directory above WEB-INF is in your classpath. Then by default it will find your file. If you specify a file or path in the setConfigFile() method that too must be in the classpath.
-kevin > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Thursday, July 04, 2002 12:16 AM > To: Struts Users Mailing List > Subject: Antwort: StrutsTestCase - setConfigFile() > > > > forgot about this: I am using Struts 1.0.1 and StrutsTestCase 1.6 > > ### > > I did read the faq and searched the archive, but I still get the following > error ... > > I played around with the method > > setConfigFile(pathname); > > in my MockStrutsTestCase > and always get a > Missing Resource ... /WEB-INF/struts-config.xml > or a > NullPointerException > > ### > public void setUp() throws Exception > { > cat.debug("setUp() ... start"); > > // never forget this! > super.setUp(); > > // Missing configuration resource for path ... > this.setConfigFile("/Programme/IBM/Application > Developer/workspace/MANTemplateWebApp/webApplication/WEB-INF/struts-co > nfig.xml" > > ); > > // java.lang.NullPointerException > // this.setConfigFile("./struts-config.xml"); > > cat.debug("setUp() ... finished"); > } > ### > > Any idea - help is very much appreciated! > > Toni > > **************************************************** > MAN Nutzfahrzeuge AG > Anton Grimm > Abt. IDP (SoftwareProduktionsumgebungen) > Dachauerstr.667 > 80995 M�nchen > > Tel.: 089/1580-1054 > Fax: 089/1580-911054 > E-Mail: [EMAIL PROTECTED] > **************************************************** > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

