Re: StrutsTestCases

2006-04-28 Thread Chaitanya Parkhi
hi ichy,i tried your suggestion but still prob is still ther. On 4/28/06, ichy <[EMAIL PROTECTED]> wrote: > > hi Chaitanya > > when i use strutstestcase, i usually specify config file in setUp() as > > public void setUp() throws Exception { >super.setUp(); >setConfigFile("/WEB-INF/config/

Re: StrutsTestCases

2006-04-28 Thread ichy
hi Chaitanya when i use strutstestcase, i usually specify config file in setUp() as public void setUp() throws Exception { super.setUp(); setConfigFile("/WEB-INF/config/struts-config.xml"); } according to javadoc, the path can be either an absolute path like you set or a relative pa

Re: StrutsTestCases

2006-04-28 Thread Chaitanya Parkhi
hi Ed,ya this is the same problem i m trying to solve. i hav removed that addtional slash before "D:" but still its not working, & also i i forgot to mention in my first mail that i m getting follwing warnings on my consol window: log4j:WARN No appenders could be found for logger ( servletunit.s

Re: StrutsTestCases

2006-04-27 Thread Chaitanya Parkhi
hi Ed,ya this is the same problem i m trying to solve. i hav removed that addtional slash before "D:" but still its not working, & also i i forgot to mention in my first mail that i m getting follwing warnings on my consol window: log4j:WARN No appenders could be found for logger ( servletunit.s

Re: StrutsTestCases

2006-04-27 Thread Ed Griebel
There was a question about this a couple of days ago where web.xml was not being found. Also, it looks like you have a leading slash before the "D:" in setConfigFile(), that could be the problem. HTH -ed On 4/27/06, Chaitanya Parkhi <[EMAIL PROTECTED]> wrote: > hi friends i m working on Struts

RE: StrutsTestCases

2006-04-24 Thread Anuradha S.Athreya
U need to set the contect path of ur application: setContextDirectory(new File(Your_Application_ContextPath)); -Original Message- From: Phil Zoio [mailto:[EMAIL PROTECTED] Sent: Monday, April 24, 2006 3:39 PM To: Struts Users Mailing List Subject: Re: StrutsTestCases You should be able

Re: StrutsTestCases

2006-04-24 Thread Phil Zoio
You should be able to solve the problem by adding the WEB-INF directory onto your classpath. I couldn't get it to work otherwise Chaitanya Parkhi wrote: hi guys i hav created a java file by using MockObjectStrutsTestCases which tests for a simple login form which takes Login Name & password as

Re: StrutsTestCases

2006-04-24 Thread Li
A web application that is packed as a war file and deployed to Tomcat or JBoss can work properly without having web.xml. Since you are using struts and jsp. You need tell the server what is the servlet parser as well as someother info. So make sure there is a "VALID" web.xml in your application fol