db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rick Hillegas <rick.hille...@gmail.com>
Subject Re: Running Regression Tests
Date Fri, 06 May 2016 00:50:06 GMT
On 5/5/16 12:15 PM, Danoja Dias wrote:
>
> Hi All,
> /
> I ran following code to run all tests,
> java  junit.textui.TestRunner 
> <http://wiki.apache.org/db-derby/TestRunner> 
> org.apache.derbyTesting.functionTests.suites.All
>
> /
> /But I get this message .
> Failed to invoke class 
> org.apache.derbyTesting.functionTests.tests.lang._Suite
> java.lang.reflect.InvocationTargetException
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>     at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:497)
>     at 
> org.apache.derbyTesting.functionTests.suites.AllPackages.invokeSuite(AllPackages.java:176)
>     at 
> org.apache.derbyTesting.functionTests.suites.AllPackages.suite(AllPackages.java:60)
>     at org.apache.derbyTesting.functionTests.suites.All.suite(All.java:50)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>     at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:497)
>     at junit.runner.BaseTestRunner.getTest(BaseTestRunner.java:126)
>     at junit.textui.TestRunner.start(TestRunner.java:184)
>     at junit.textui.TestRunner.main(TestRunner.java:143)
> Caused by: java.lang.NoClassDefFoundError: 
> org/apache/lucene/analysis/Analyzer
>     at 
> org.apache.derbyTesting.functionTests.tests.lang.LuceneSuite.suite(LuceneSuite.java:66)
>     at 
> org.apache.derbyTesting.functionTests.tests.lang._Suite.suite(_Suite.java:258)
>     ... 14 more
> Caused by: java.lang.ClassNotFoundException: 
> org.apache.lucene.analysis.Analyzer
>     at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
>     at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
>     at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>     ... 16 more
> Failed to invoke suite():java.lang.reflect.InvocationTargetException
>
>
> /
> /What am I doing worng? Why is this message comes?/
> -- 
> Thanks,
> Best Regards,
> Danoja Dias.
Hi Danoja,

This error indicates that your classpath does not include the lucene jar 
files which are in the source tree at

tools/java/lucene-analyzers-common.jar
tools/java/lucene-core.jar
tools/java/lucene-queryparser.jar

Hope this helps,
-Rick


Mime
View raw message