Hi, 
We have had the same problem cropping up from time to time. Simply doing
an ant 'setup' followed by 'test-all' solves our problem. 

    <target name="test-all-clean_setup" depends="clean,setup,test-all"
        description="does a clean, then a setup, then runs all tests for
dao, 
                service, web and jsp">
    </target>

Regards
Jon 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matt
Raible
Sent: 27 April 2007 20:18
To: [email protected]
Subject: Re: [appfuse-user] Web Tests failing because of
BaseControllerTestCase

You might try downloading and re-installing Ant - maybe there's
something in your $ANT_HOME/lib directory.

Matt

On 4/27/07, joejakes <[EMAIL PROTECTED]> wrote:
>
> Hi Matt,
>
> I tried to run the tests in Eclipse after setting the Ant Runtime 
> configurations. The tests are successfully passing in Eclipse but it 
> is failing on the command-line. So I guess it has got something to do 
> with the ant configuration.
>
> Do you have any idea what is causing the trouble? I would like to run 
> the tests on the command-line as I find the execution faster.
Thanks!!!
>
>
>
> mraible wrote:
> >
> > I'd suggest searching for BaseFormControllerTestCase and see if 
> > there's duplicates (or possibly a .class file checked in).  Another 
> > thing you could so is download 1.9.4, create a project with the same

> > name/packages and then use Beyond Compare to diff the two projects.
> >
> > Matt
> >
> > On 4/25/07, joejakes <[EMAIL PROTECTED]> wrote:
> >>
> >> Hi Matt,
> >>
> >> I have got a clean system classpath. I tried downloading Appfuse 
> >> now and went through your tutorial quickly. When I run ant test-web

> >> for your tutorial project, it seems to be passing all the tests. So

> >> I believe it is a configuration problem in the current project. As

> >> you know the internals of Appfuse very well, could you give some 
> >> suggestions as to how to proceed further?
> >>
> >>
> >>
> >> mraible wrote:
> >> >
> >> > NoClassDefFound usually implies duplicate classes rather than a
> >> > missing class.  Do you have a clean system classpath?
> >> >
> >> > Matt
> >> >
> >> > On 4/25/07, joejakes <[EMAIL PROTECTED]> wrote:
> >> >>
> >> >> I am running the code on:
> >> >>
> >> >> Win XP Machine
> >> >> Ant 1.6
> >> >> JDK 5
> >> >> Is this any problem that's got to do with the classpath
settings??
> >> >>
> >> >>
> >> >> mraible wrote:
> >> >> >
> >> >> > What's your environment - it's probably an environment issue
(i.e.
> >> JDK
> >> >> 6
> >> >> > vs. 5).
> >> >> >
> >> >> > Matt
> >> >> >
> >> >> > On 4/25/07, joejakes <[EMAIL PROTECTED]> wrote:
> >> >> >>
> >> >> >> Hi,
> >> >> >>
> >> >> >> There is a  BaseControllerTestCase in the mentioned folder.
Is
> >> there
> >> >> any
> >> >> >> other way other than downloading the springmvc version of
Appfuse
> >> to
> >> >> sove
> >> >> >> this problem?  This is because I am a consultant and have
> >> downloaded
> >> >> the
> >> >> >> code for a MVC application built on Appfuse from my client's
> >> >> repository
> >> >> >> server. Any suggestions are welcomed. Thanks!!!
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >> mraible wrote:
> >> >> >> >
> >> >> >> > If you cd'd into extra/spring and ran "mvn install", that
means
> >> you
> >> >> >> > installed it.  In reality, the results of downloading vs.
> >> installing
> >> >> >> > should be the same.  However, we have seen issues with
folks
> >> >> >> > installing on some OSs - that's why we recommend the
download.
> >> If
> >> >> you
> >> >> >> > look in test/web/**/action - is there a
BaseControllerTestCase?
> >> If
> >> >> >> > not, something probably failed in the install.  I'd
recommend
> >> >> >> > downloading the springmvc version of AppFuse to solve this
> >> problem.
> >> >> >> >
> >> >> >> > Matt
> >> >> >> >
> >> >> >> > On 4/25/07, joejakes <[EMAIL PROTECTED]> wrote:
> >> >> >> >>
> >> >> >> >> Hi Matt,
> >> >> >> >>
> >> >> >> >> Thanks for your quick reply. I guess I installed Spring
MVC. I
> >> am
> >> >> not
> >> >> >> >> very
> >> >> >> >> sure about it. Is there any way by which you can say the
> >> >> difference?
> >> >> >> >>
> >> >> >> >> I tried running "ant clean test-web", but am getting the
same
> >> >> error.
> >> >> >> >> Thanks!!
> >> >> >> >>
> >> >> >> >>
> >> >> >> >>
> >> >> >> >> mraible wrote:
> >> >> >> >> >
> >> >> >> >> > Did you install Spring MVC or download the springmvc
version
> >> of
> >> >> >> >> > AppFuse?  You might try running "ant clean test-web".
> >> >> >> >> >
> >> >> >> >> > Matt
> >> >> >> >> >
> >> >> >> >> > On 4/25/07, joejakes <[EMAIL PROTECTED]> wrote:
> >> >> >> >> >>
> >> >> >> >> >> Hi,
> >> >> >> >> >>
> >> >> >> >> >> I am a newbie to Appfuse and am trying to develop a web
> >> >> application
> >> >> >> in
> >> >> >> >> >> Appfuse. I am using the command-line to run my ant
tests.
> >> >> However,
> >> >> >> >> when I
> >> >> >> >> >> try to run
> >> >> >> >> >>
> >> >> >> >> >> ant test-web
> >> >> >> >> >>
> >> >> >> >> >> from the command-line, I get the following error on all
> >> classes
> >> >> >> that
> >> >> >> >> >> extend
> >> >> >> >> >> BaseControllerTestCase.
> >> >> >> >> >>
> >> >> >> >> >> com.appfuse.webapp.action.BaseControllerTestCase
> >> >> >> >> >>
> >> >> >> >> >> java.lang.NoClassDefFoundError:
> >> >> >> >> >> com.appfuse.webapp.action.BaseControllerTestCase at
> >> >> >> >> >> java.lang.Class.forName0(Native Method) at
> >> >> >> >> >> java.lang.Class.forName(Class.java:164)
> >> >> >> >> >>
> >> >> >> >> >> It seems to be a minor configuration problem. Could
somebody
> >> >> help
> >> >> >> me
> >> >> >> >> to
> >> >> >> >> >> solve this issue? Thanks!!
> >> >> >> >> >> --
> >> >> >> >> >> View this message in context:
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >>
http://www.nabble.com/Web-Tests-failing-because-of-BaseControllerTestCas
e-tf3647290s2369.html#a10186913
> >> >> >> >> >> Sent from the AppFuse - User mailing list archive at
> >> Nabble.com.
> >> >> >> >> >>
> >> >> >> >> >>
> >> >> >>
> >>
---------------------------------------------------------------------
> >> >> >> >> >> To unsubscribe, e-mail:
> >> [EMAIL PROTECTED]
> >> >> >> >> >> For additional commands, e-mail:
> >> [EMAIL PROTECTED]
> >> >> >> >> >>
> >> >> >> >> >>
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> > --
> >> >> >> >> > http://raibledesigns.com
> >> >> >> >> >
> >> >> >> >> >
> >> >> >>
> >>
---------------------------------------------------------------------
> >> >> >> >> > To unsubscribe, e-mail:
[EMAIL PROTECTED]
> >> >> >> >> > For additional commands, e-mail:
> >> [EMAIL PROTECTED]
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >>
> >> >> >> >> --
> >> >> >> >> View this message in context:
> >> >> >> >>
> >> >> >>
> >> >>
> >>
http://www.nabble.com/Web-Tests-failing-because-of-BaseControllerTestCas
e-tf3647290s2369.html#a10187227
> >> >> >> >> Sent from the AppFuse - User mailing list archive at
Nabble.com.
> >> >> >> >>
> >> >> >> >>
> >> >>
---------------------------------------------------------------------
> >> >> >> >> To unsubscribe, e-mail:
[EMAIL PROTECTED]
> >> >> >> >> For additional commands, e-mail:
[EMAIL PROTECTED]
> >> >> >> >>
> >> >> >> >>
> >> >> >> >
> >> >> >> >
> >> >> >> > --
> >> >> >> > http://raibledesigns.com
> >> >> >> >
> >> >> >> >
> >> >>
---------------------------------------------------------------------
> >> >> >> > To unsubscribe, e-mail:
[EMAIL PROTECTED]
> >> >> >> > For additional commands, e-mail:
[EMAIL PROTECTED]
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >>
> >> >> >> --
> >> >> >> View this message in context:
> >> >> >>
> >> >>
> >>
http://www.nabble.com/Web-Tests-failing-because-of-BaseControllerTestCas
e-tf3647290s2369.html#a10188076
> >> >> >> Sent from the AppFuse - User mailing list archive at
Nabble.com.
> >> >> >>
> >> >> >>
> >>
---------------------------------------------------------------------
> >> >> >> To unsubscribe, e-mail:
[EMAIL PROTECTED]
> >> >> >> For additional commands, e-mail:
[EMAIL PROTECTED]
> >> >> >>
> >> >> >>
> >> >> >
> >> >> >
> >> >> > --
> >> >> > http://raibledesigns.com
> >> >> >
> >> >> >
> >>
---------------------------------------------------------------------
> >> >> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> >> > For additional commands, e-mail:
[EMAIL PROTECTED]
> >> >> >
> >> >> >
> >> >> >
> >> >>
> >> >> --
> >> >> View this message in context:
> >> >>
> >>
http://www.nabble.com/Web-Tests-failing-because-of-BaseControllerTestCas
e-tf3647290s2369.html#a10188380
> >> >> Sent from the AppFuse - User mailing list archive at Nabble.com.
> >> >>
> >> >>
---------------------------------------------------------------------
> >> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >> >>
> >> >>
> >> >
> >> >
> >> > --
> >> > http://raibledesigns.com
> >> >
> >> >
---------------------------------------------------------------------
> >> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> > For additional commands, e-mail: [EMAIL PROTECTED]
> >> >
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >>
http://www.nabble.com/Web-Tests-failing-because-of-BaseControllerTestCas
e-tf3647290s2369.html#a10189303
> >> Sent from the AppFuse - User mailing list archive at Nabble.com.
> >>
> >>
---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> >
> > --
> > http://raibledesigns.com
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
> --
> View this message in context:
http://www.nabble.com/Web-Tests-failing-because-of-BaseControllerTestCas
e-tf3647290s2369.html#a10224765
> Sent from the AppFuse - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
http://raibledesigns.com

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


______________________________________________        
This email has been scanned by Netintelligence        
http://www.netintelligence.com/email

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

Reply via email to