-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: CaveatEmptor Possible Bug alpha5.zip
PostPosted: Tue Apr 11, 2006 1:50 pm 
Beginner
Beginner

Joined: Thu Dec 15, 2005 12:02 pm
Posts: 23
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>


Top
 Profile  
 
 Post subject: It was the Ant Problem from README
PostPosted: Tue Apr 11, 2006 2:25 pm 
Beginner
Beginner

Joined: Thu Dec 15, 2005 12:02 pm
Posts: 23
Well this has been resolved. The problem was right there in the README.txt file. I had to mess around with removing the .jar files *xalan, and junit* then all began to work.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.