RE: Runtime Error: how to find cayenne.xml

From: John Poole (john..IXXURESCANADA.com)
Date: Thu Mar 06 2003 - 11:11:04 EST

  • Next message: Holger Hoffstätte: "Re: Runtime Error: how to find cayenne.xml"

    "Domain configuration file "cayenne.xml" is not found"

    We get this message about 50% of the time when we start up tomcat. It doesn't seem to happen twice in a row, so it's not a big issue, but is this a known problem?

    The only thing we're doing differently from the example configuration wise is using a jndi connection to the database.

    John

    -----Original Message-----
    From: Holger Hoffstätte [mailto:holge..izards.de]
    Sent: March 6, 2003 3:48 AM
    To: 'cayenne-user'
    Subject: Re: Runtime Error: how to find cayenne.xml

    Dave Paules wrote:
    > Hi Holger!
    > You've solved the problem when the *.xml and PackageConfiguration files are
    > not in a jar. :) Great work.
    >
    > However, once I put the entire database/ folder (and all its nested classes
    > and files) in a jar, I got right back to the error:
    > Domain configuration file "cayenne.xml" is not found.

    Take this, you evil bug reporter! :)
    Introducing the idea of a resource path by using File.separator was a good
    idea gone wrong, since it needs to be '/' for JAR file loading. duh!

    Holger



    This archive was generated by hypermail 2.0.0 : Thu Mar 06 2003 - 11:14:13 EST