Re: [Ask]how to run cayenne-1.0b1-dev JUnit test

From: WWFalcon (wwfalco..ofthome.net)
Date: Thu Nov 21 2002 - 20:37:35 EST

  • Next message: xuzhou: "Question about flatten relationship"

    i do as the archive tell me,but it failed.
           [java] [junit] TEST org.objectstyle.cayenne.gen.ClassGeneratorTst FAI
      D
           [java] [junit] TEST org.objectstyle.cayenne.tools.CayenneGeneratorTst
      AILED

           [java] unit-test-report:
           [java] [junitreport] Using Xalan version: Xalan Java 2.2.D11
           [java] [junitreport] Transform time: 10995ms

           [java] BUILD FAILED
           [java] file:F:/cayenne_cvs/cayenne/build-tests.xml:126: Cayenne tests fai
      d, see files in build/tests/out/example1 for details

           [java] Total time: 46 seconds
    i check the xml file "TEST-org.objectstyle.cayenne.gen.ClassGeneratorTst.xml",it has some error as bellow:

         <error message="Can&apos;t initialize VTL" type="org.objectstyle.cayenne.CayenneRuntimeException">org.objectstyle.cayenne.CayenneRuntimeException: Can&apos;t initialize VTL
       at org.objectstyle.cayenne.gen.ClassGenerator.bootstrapVelocity(ClassGenerator.java:133)
       at org.objectstyle.cayenne.gen.ClassGenerator.&lt;init&gt;(ClassGenerator.java:155)
       at org.objectstyle.cayenne.gen.ClassGeneratorTst.setUp(ClassGeneratorTst.java:78)
      Caused by: java.lang.Exception: Problem initializing template loader: org.objectstyle.cayenne.gen.AbsFileResourceLoader
      Error is: java.lang.ClassNotFoundException: org.objectstyle.cayenne.gen.AbsFileResourceLoader
       at java.net.URLClassLoader$1.run(URLClassLoader.java:198)
       at java.security.AccessController.doPrivileged(Native Method)
       at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
       at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
       at java.lang.Class.forName0(Native Method)
       at java.lang.Class.forName(Class.java:140)
    why can not find the class "org.objectstyle.cayenne.gen.AbsFileResourceLoader"?


    ----- Original Message -----
    From: "Holger Hoffstätte" <holger@wizards.de>
    To: "cayenne-devel" <cayenne-devel@objectstyle.org>
    Sent: Thursday, November 21, 2002 10:08 PM
    Subject: Re: [Ask]how to run cayenne-1.0b1-dev JUnit test


    >
    > Hi,
    >
    > check out this message and follow-ups in the archive:
    > http://objectstyle.org/cayenne/lists/cayenne-devel/2002/11/0019.html
    >
    > connection.properties can be found as a template in src/tests/
    > The unit tests were recently rewritten and are still not fully automated
    > and completely runnable from within eclipse, but they do work via ant from
    > the commandline.
    >
    > Holger
    >



    This archive was generated by hypermail 2.0.0 : Thu Nov 21 2002 - 20:55:42 EST