Re: [OS-webwork] WebWork2 / Xwork - ant test
On Wed, 23 Jul 2003 01:05 pm, Erik Hatcher wrote: 'cause Ant has some issues in this area. Classloader issues. junit.jar needs to be in the system classpath when Ant is launched. The wrapper (ant.bat/.sh) scripts put all ANT_HOME/lib .jar files into the system classpath automatically for you. The upcoming antlib feature may make this oddity history. I hope! It might. Then again, it might not :-) Conor --- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
[OS-webwork] WebWork2 / Xwork - ant test
Title: Message I think I am having one of those "damn I am so stuipd days". I can't seem to get the ant test target to run for webwork or xwork. It is so strange, because the junit jar is there ... Running : ant test -debug gives me this exception : test: [taskdef] Loading definitions from resource clovertasksCouldn't load ResourceStream for clovertasks [taskdef] Could not load definitions from resource clovertasks. It could not be found.fileset: Setup scanner in dir C:\workspace\titan.xwork\lib with patternSet{ includes: [**/*.jar] excludes: [] }Class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask loaded from parent loader BUILD FAILEDfile:C:/workspace/titan.xwork/build.xml:54: taskdef class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask cannot be found at org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:240) at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:162) at org.apache.tools.ant.Task.perform(Task.java:319) at org.apache.tools.ant.Target.execute(Target.java:309) at org.apache.tools.ant.Target.performTasks(Target.java:336) at org.apache.tools.ant.Project.executeTarget(Project.java:1306) at org.apache.tools.ant.Project.executeTargets(Project.java:1250) at org.apache.tools.ant.Main.runBuild(Main.java:610) at org.apache.tools.ant.Main.start(Main.java:196) at org.apache.tools.ant.Main.main(Main.java:235)Caused by: java.lang.NoClassDefFoundError: junit/framework/TestListener at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:502) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) at java.net.URLClassLoader.defineClass(URLClassLoader.java:250) at java.net.URLClassLoader.access$100(URLClassLoader.java:54) at java.net.URLClassLoader$1.run(URLClassLoader.java:193) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:186) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265) ...
Re: [OS-webwork] WebWork2 / Xwork - ant test
is junit.jar in anthome/lib? On Tuesday, July 22, 2003, at 10:41 PM, Cameron Braid wrote: I think I am having one of those damn I am so stuipd days. I can't seem to get the ant test target to run for webwork or xwork. It is so strange, because the junit jar is there ... Running : ant test -debug gives me this exception : test: [taskdef] Loading definitions from resource clovertasks Couldn't load ResourceStream for clovertasks [taskdef] Could not load definitions from resource clovertasks. It could not be found. fileset: Setup scanner in dir C:\workspace\titan.xwork\lib with patternSet{ includes: [**/*.jar] excludes: [] } Class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask loaded from parent loader BUILD FAILED file:C:/workspace/titan.xwork/build.xml:54: taskdef class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask cannot be found at org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:240) at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:162) at org.apache.tools.ant.Task.perform(Task.java:319) at org.apache.tools.ant.Target.execute(Target.java:309) at org.apache.tools.ant.Target.performTasks(Target.java:336) at org.apache.tools.ant.Project.executeTarget(Project.java:1306) at org.apache.tools.ant.Project.executeTargets(Project.java:1250) at org.apache.tools.ant.Main.runBuild(Main.java:610) at org.apache.tools.ant.Main.start(Main.java:196) at org.apache.tools.ant.Main.main(Main.java:235) Caused by: java.lang.NoClassDefFoundError: junit/framework/TestListener at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:502) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) at java.net.URLClassLoader.defineClass(URLClassLoader.java:250) at java.net.URLClassLoader.access$100(URLClassLoader.java:54) at java.net.URLClassLoader$1.run(URLClassLoader.java:193) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:186) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265) ... --- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
RE: [OS-webwork] WebWork2 / Xwork - ant test
That seemed to fix it.. Why would it need to be there, when it is in the lib/build folder ? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Hani Suleiman Sent: Wednesday, 23 July 2003 12:46 PM To: [EMAIL PROTECTED] Subject: Re: [OS-webwork] WebWork2 / Xwork - ant test is junit.jar in anthome/lib? On Tuesday, July 22, 2003, at 10:41 PM, Cameron Braid wrote: I think I am having one of those damn I am so stuipd days. I can't seem to get the ant test target to run for webwork or xwork. It is so strange, because the junit jar is there ... Running : ant test -debug gives me this exception : test: [taskdef] Loading definitions from resource clovertasks Couldn't load ResourceStream for clovertasks [taskdef] Could not load definitions from resource clovertasks. It could not be found. fileset: Setup scanner in dir C:\workspace\titan.xwork\lib with patternSet{ includes: [**/*.jar] excludes: [] } Class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask loaded from parent loader BUILD FAILED file:C:/workspace/titan.xwork/build.xml:54: taskdef class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask cannot be found at org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:240) at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:162) at org.apache.tools.ant.Task.perform(Task.java:319) at org.apache.tools.ant.Target.execute(Target.java:309) at org.apache.tools.ant.Target.performTasks(Target.java:336) at org.apache.tools.ant.Project.executeTarget(Project.java:1306) at org.apache.tools.ant.Project.executeTargets(Project.java:1250) at org.apache.tools.ant.Main.runBuild(Main.java:610) at org.apache.tools.ant.Main.start(Main.java:196) at org.apache.tools.ant.Main.main(Main.java:235) Caused by: java.lang.NoClassDefFoundError: junit/framework/TestListener at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:502) at java.security.SecureClassLoader.defineClass(SecureClassLoader. java:123) at java.net.URLClassLoader.defineClass(URLClassLoader.java:250) at java.net.URLClassLoader.access$100(URLClassLoader.java:54) at java.net.URLClassLoader$1.run(URLClassLoader.java:193) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:186) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265) ... --- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork --- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
Re: [OS-webwork] WebWork2 / Xwork - ant test
On Tuesday, July 22, 2003, at 10:55 PM, Cameron Braid wrote: That seemed to fix it.. Why would it need to be there, when it is in the lib/build folder ? 'cause Ant has some issues in this area. Classloader issues. junit.jar needs to be in the system classpath when Ant is launched. The wrapper (ant.bat/.sh) scripts put all ANT_HOME/lib .jar files into the system classpath automatically for you. The upcoming antlib feature may make this oddity history. I hope! Erik --- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
RE: [OS-webwork] WebWork2 / Xwork - ant test
Oh. Ok. I have managed to get past that point.. Now something is up with clover. C:\workspace\os.xworkant test Buildfile: build.xml format: [jalopy] Jalopy Java Source Code Formatter 1.0b10 [jalopy] Format 156 source files [jalopy] 153 source files formatted java: test: [javac] Compiling 94 source files to C:\workspace\os.xwork\build\java-test [clover] Clover Version 1.1.1, built on April 17 2003 [clover] Team License registered to the OpenSymphony Project [clover] Updating database at 'build/clover/coverage.db' [clover] Clover all over. Instrumented 94 files. [javac] C:\DOCUME~1\CAMERO~3\LOCALS~1\Temp\clover8101.tmp\src8102.tmp\com\opensympho ny\xwork\ActionChainResult.java:23: cannot resolve symbol [javac] symbol : method getRecorder (char[],long) [javac] location: class com.cortexeb.tools.clover.P [javac] public class ActionChainResult implements Result {public static com.cortexeb.tools.clover.k __CLOVER_1_0 = com.cortexeb. tools.clover.P.getRecorder(new char[] {98,117,105,108,100,47,99,108,111,118,101,114,47,99,111,118,101,114,97,103,1 01,46,100,98},1058 930178844L); [javac] ^ [javac] C:\DOCUME~1\CAMERO~3\LOCALS~1\Temp\clover8101.tmp\src8102.tmp\com\opensympho ny\xwork\ActionChainResult.java:41: cannot resolve symbol [javac] symbol : variable M [javac] location: class com.cortexeb.tools.clover.k [javac] public void setActionName(String actionName) {try { __CLOVER_1_0.M[547]++; [javac] ^ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Erik Hatcher Sent: Wednesday, 23 July 2003 1:06 PM To: [EMAIL PROTECTED] Subject: Re: [OS-webwork] WebWork2 / Xwork - ant test On Tuesday, July 22, 2003, at 10:55 PM, Cameron Braid wrote: That seemed to fix it.. Why would it need to be there, when it is in the lib/build folder ? 'cause Ant has some issues in this area. Classloader issues. junit.jar needs to be in the system classpath when Ant is launched. The wrapper (ant.bat/.sh) scripts put all ANT_HOME/lib .jar files into the system classpath automatically for you. The upcoming antlib feature may make this oddity history. I hope! Erik --- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork --- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork