Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-4021

'ant junit-lowmem' fails when classpath is not set

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 10.5.1.1
    • None
    • Test
    • Apache Ant version 1.7.1 compiled on December 9 2008
    • Normal
    • Known fix, Newcomer
    • Regression Test Failure

    Description

      '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: org.apache.derbyTesting.functionTests.tests.memory._Suite
      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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kristwaa Kristian Waagan
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: