velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rodolfo Sikora <rodo...@oktiva.com.br>
Subject RE: Problems testing Velocity
Date Mon, 02 Dec 2002 16:31:45 GMT
Hi Peter,
	You saw the 2nd part of email (the old one), I've already removed
expresso's junit from the classpath, and got the same error.
	But I'll try again, now on debian.
	10x a lot anyway, I'll send the results soon :D

	
On Mon, 2002-12-02 at 10:16, Peter Romianowski wrote:
> 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>
> 
> 
-- 
Rodolfo Sikora - Desenvolvimento
rodolfo@oktiva.com.br - (85) 281-2223 202
Oktiva Telecomunicações e Informática Ltda.
http://www.oktiva.com.br

Mime
View raw message