velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Romianowski" <megap...@gmx.de>
Subject RE: Problems testing Velocity
Date Mon, 02 Dec 2002 13:16:21 GMT
Hi,

  I still think there's a collision between two junit-jars.
Could you please remove C:\expresso\webapps\ROOT\WEB-INF\lib\junit.jar
from your classpath (it's still there :). I now tested the
build and testcases with the standard windows console and
it still worked (I usually use cygwin on windoofs btw).

Peter

..: My analysis are based on the first 3 rules in Java-Debugging:
  1. Look at the CLASSPATH
  2. Look at the CLASSPATH
  3. Look at the CLASSPATH

:)

> -----Original Message-----
> From: Rodolfo Sikora [mailto:rodolfo@oktiva.com.br] 
> Sent: Thursday, November 28, 2002 5:38 AM
> To: velocity-user@jakarta.apache.org
> Subject: Problems testing Velocity
> 
> 
> Hi there!
> 
> I compilled velocity right now. No problems at all.
> Once it was compilled, I tryied:
> 
> C:\velocity-1.3.1-rc2\build>c:\ant\bin\ant test
> Buildfile: build.xml
> 
> env:
>      [echo] java.home = C:\j2sdk1.4.1\jre
>      [echo] user.home = C:\Documents and Settings\vo0do0
>      [echo] java.class.path = 
> C:\j2sdk1.4.1\lib\tools.jar;c:\ant\lib\xml-apis.ja
> r;c:\ant\lib\xercesImpl.jar;c:\ant\lib\optional.jar;c:\ant\lib
> \ant.jar;C:\expres
> so\webapps\ROOT\WEB-INF\lib\junit.jar
> 
> 
> prepare:
> 
> compile:
> 
> compile-copy:
> 
> test:
> 
> test-template:
>      [echo] Running Template tests...
>      [java] java.lang.NoClassDefFoundError: junit/framework/TestCase
>      [java]     at java.lang.ClassLoader.defineClass0(Native Method)
>      [java]     at 
> java.lang.ClassLoader.defineClass(ClassLoader.java:502)
>      [java]     at 
> java.security.SecureClassLoader.defineClass(SecureClassLoader
> .java:123)
>      [java]     at 
> java.net.URLClassLoader.defineClass(URLClassLoader.java:250)
>      [java]     at 
> java.net.URLClassLoader.access$100(URLClassLoader.java:54)
>      [java]     at 
> java.net.URLClassLoader$1.run(URLClassLoader.java:193)
>      [java]     at 
> java.security.AccessController.doPrivileged(Native Method)
>      [java]     at 
> java.net.URLClassLoader.findClass(URLClassLoader.java:186)
>      [java]     at 
> java.lang.ClassLoader.loadClass(ClassLoader.java:299)
>      [java]     at 
> java.lang.ClassLoader.loadClass(ClassLoader.java:255)
>      [java]     at 
> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
> 
>      [java]     at java.lang.ClassLoader.defineClass0(Native Method)
>      [java]     at 
> java.lang.ClassLoader.defineClass(ClassLoader.java:502)
>      [java]     at 
> java.security.SecureClassLoader.defineClass(SecureClassLoader
> .java:123)
>      [java]     at 
> java.net.URLClassLoader.defineClass(URLClassLoader.java:250)
>      [java]     at 
> java.net.URLClassLoader.access$100(URLClassLoader.java:54)
>      [java]     at 
> java.net.URLClassLoader$1.run(URLClassLoader.java:193)
>      [java]     at 
> java.security.AccessController.doPrivileged(Native Method)
>      [java]     at 
> java.net.URLClassLoader.findClass(URLClassLoader.java:186)
>      [java]     at 
> java.lang.ClassLoader.loadClass(ClassLoader.java:299)
>      [java]     at 
> java.lang.ClassLoader.loadClass(ClassLoader.java:292)
>      [java]     at 
> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
> 
>      [java]     at 
> java.lang.ClassLoader.loadClass(ClassLoader.java:255)
>      [java]     at 
> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
> 
>      [java]     at java.lang.Class.forName0(Native Method)
>      [java]     at java.lang.Class.forName(Class.java:140)
>      [java]     at 
> junit.runner.StandardTestSuiteLoader.load(StandardTestSuiteLo
> ader.java:11)
>      [java]     at 
> junit.runner.BaseTestRunner.loadSuiteClass(BaseTestRunner.jav
> a:135)
>      [java]     at 
> junit.runner.BaseTestRunner.getTest(BaseTestRunner.java:32)
>      [java]     at junit.textui.TestRunner.start(TestRunner.java:233)
>      [java]     at junit.textui.TestRunner.main(TestRunner.java:112)
>      [java] Exception in thread "main"
> 
> BUILD FAILED
> file:C:/velocity-1.3.1-rc2/build/testcases.xml:82: Java returned: 1
> 
> Total time: 3 seconds
> C:\velocity-1.3.1-rc2\build>
> 
> How can u see, problems testing velocity.
> 
> can anybody help me?
> 
> tkz
> 


--
To unsubscribe, e-mail:   <mailto:velocity-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:velocity-user-help@jakarta.apache.org>


Mime
View raw message