db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kristian Waagan (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DERBY-4021) 'ant junit-lowmem' fails with ant 1.7.1
Date Wed, 04 Feb 2009 12:03:59 GMT

    [ https://issues.apache.org/jira/browse/DERBY-4021?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12670312#action_12670312

Kristian Waagan commented on DERBY-4021:

Thanks, Rick.

>From what I can see, the issue here is rather simple; the classpath isn't set by the JUnit
target. At least I works fine for me if I set the classpath environment variable manually.
The question is, shall we do anything about this?
If so, I see two options:
 a) Print a better error message when the Derby classes aren't found
 b) Add the Derby classes to the classpath, in the following order of preference: sane jars,
insane jars, classes.


> 'ant junit-lowmem' fails with ant 1.7.1
> ---------------------------------------
>                 Key: DERBY-4021
>                 URL: https://issues.apache.org/jira/browse/DERBY-4021
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions:
>         Environment: Apache Ant version 1.7.1 compiled on December 9 2008
>            Reporter: Kristian Waagan
> 'ant junit-lowmem' fails with the following error when run with ant 1.7.1:
> <error message="org.apache.derbyTesting.functionTests.tests.memory._Suite" type="java.lang.ClassNotFoundException">java.lang.ClassNotFoundException:
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
>         at java.lang.Class.forName0(Native Method)
>         at java.lang.Class.forName(Class.java:169)
> Running the target with ant 1.6.5 on the same Derby revision works.
> It is not clear of the problem is due to ant only, or ant and changes in the build system
. If the latter, it is most likely a classpath issue, as the class files are indeed built
and included in the jar file.
> Other targets seems to be running fine.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message