Re: Error during Configuration initialization

From: Mike Kienenberger (mkienen..laska.net)
Date: Wed Jan 12 2005 - 12:12:20 EST

  • Next message: Joshua Pyle: "Question about the deleteObject call of DataContext"

    emre <emre.yilma..tr.com.tr> wrote:
    > Can anybody explain wyh get an error like this whereas I put the=20
    > cayenne.xml in the same location with main class.

    Because the Configuration class you're using (DefaultConfiguration ) expects
    to find it at "./cayenne.xml" not at "./tr/com/htr/hgys/db/cayenne.xml"

    Try setting DefaultConfiguration.addClassPath("tr/com/htr/hgys/db").

    -Mike

            /**
             * Adds a custom path for class path lookups.
             * Format should be "my/package/name" <i>without</i> leading "/".
             *
             * This allows for easy customization of custom search paths after
             * Constructor invocation:
             * <pre>
             * conf = new DefaultConfiguration();
             * conf.addClassPath("my/package/name");
             * Configuration.initializeSharedConfiguration(conf);
             * </pre>
             *
             */
            public void addClassPath(String customPath) {



    This archive was generated by hypermail 2.0.0 : Wed Jan 12 2005 - 12:12:20 EST