I am trying to get the Caveat Emptor running so I can gain more experience with Hibernate. PS, Mysql 5.0, on a PC Running XP Pro.
I downloaded this file [ caveatemptor.HiA-SE-3.1alpha5.zip ]
Extracted it, and read the [README.txt] file.
I decided to change the database to mysql, so I created a database called [test] whos owner is test and password is test.
I changed the three files as advised in the [README.txt]
To switch to a different database, edit
- src/etc/junit/hibernate.cfg.xml
- src/etc/testng/META-INF/persistence.xml
- src/etc/webapp.test/conf/hibernate.cfg.xml
According to the README.txt, it appears that running the JUNIT tests will create the schema and get all things rolling.
But no matter what target I run, I get the same error(s):
Can some assist with this, I would like to have this running.
Thanks,
Scott
Errors BELOW:
C:\work\caveatemptor\caveatemptor.HiA-SE>ant junit.run
Buildfile: build.xml
BUILD FAILED
C:\work\caveatemptor\caveatemptor.HiA-SE\build.xml:43: taskdef A class needed by class org.apache.tools.ant.taskdefs.optional.juni
t.JUnitTask cannot be found: junit/framework/Test
Total time: 2 seconds
C:\work\caveatemptor\caveatemptor.HiA-SE>ant db.ddl2file
Buildfile: build.xml
BUILD FAILED
C:\work\caveatemptor\caveatemptor.HiA-SE\build.xml:43: taskdef A class needed by class org.apache.tools.ant.taskdefs.optional.juni
t.JUnitTask cannot be found: junit/framework/Test
Total time: 1 second
C:\work\caveatemptor\caveatemptor.HiA-SE>ant -v
Apache Ant version 1.6.5 compiled on June 2 2005
Buildfile: build.xml
Detected Java version: 1.5 in: C:\Java\jdk1.5.0_06\jre
Detected OS: Windows XP
parsing buildfile C:\work\caveatemptor\caveatemptor.HiA-SE\build.xml with URI = file:///C:/work/caveatemptor/caveatemptor.HiA-SE/b
uild.xml
Project base dir set to: C:\work\caveatemptor\caveatemptor.HiA-SE
[property] Loading C:\work\caveatemptor\caveatemptor.HiA-SE\build.properties
BUILD FAILED
C:\work\caveatemptor\caveatemptor.HiA-SE\build.xml:43: taskdef A class needed by class org.apache.tools.ant.taskdefs.optional.juni
t.JUnitTask cannot be found: junit/framework/Test
at org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:487)
at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:183)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:142)
at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:91)
at org.apache.tools.ant.Main.runBuild(Main.java:653)
at org.apache.tools.ant.Main.startAnt(Main.java:187)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
Caused by: java.lang.NoClassDefFoundError: junit/framework/Test
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:457)
... 10 more
--- Nested Exception ---
java.lang.NoClassDefFoundError: junit/framework/Test
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:457)
at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:183)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:142)
at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:91)
at org.apache.tools.ant.Main.runBuild(Main.java:653)
at org.apache.tools.ant.Main.startAnt(Main.java:187)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
Total time: 1 second
C:\work\caveatemptor\caveatemptor.HiA-SE>ant
Buildfile: build.xml
BUILD FAILED
C:\work\caveatemptor\caveatemptor.HiA-SE\build.xml:43: taskdef A class needed by class org.apache.tools.ant.taskdefs.optional.juni
t.JUnitTask cannot be found: junit/framework/Test
Total time: 1 second
C:\work\caveatemptor\caveatemptor.HiA-SE>ant
Buildfile: build.xml
BUILD FAILED
C:\work\caveatemptor\caveatemptor.HiA-SE\build.xml:43: taskdef A class needed by class org.apache.tools.ant.taskdefs.optional.juni
t.JUnitTask cannot be found: junit/framework/Test
Total time: 1 second
C:\work\caveatemptor\caveatemptor.HiA-SE>ant webapp.test.deploy
Buildfile: build.xml
BUILD FAILED
C:\work\caveatemptor\caveatemptor.HiA-SE\build.xml:43: taskdef A class needed by class org.apache.tools.ant.taskdefs.optional.juni
t.JUnitTask cannot be found: junit/framework/Test
Total time: 1 second
C:\work\caveatemptor\caveatemptor.HiA-SE>
|