Re: no datamap found???

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Fri Nov 05 2004 - 09:15:01 EST

  • Next message: Gentry, Michael: "RE: cayenne.xml is not found"

    Few things to check:

    1. Your cayenne.xml/*.map.xml files are in the Eclipse run classpath.

    2. [the most likely cause] You don't have any other copies of cayenne.xml
    in the run classpath.

    Look at Cayenne startup messages, they usually indicated which XML files
    are loaded and where they are located.

    Andrus

    > Hi,
    >
    > I sat down tonight to work on a cayenne/tapestry project that I haven't
    > looked at for a month. A month ago, things worked fine. Tonight, after
    > launching the app with jetty launcher and attempting to browse to the
    > application, I'm getting the following error:
    >
    >
    > unlabeledMessage: No DataMap found for query with root: class
    > org.eledge.domain.model.User
    > Stack Trace:
    >
    > *
    > org.objectstyle.cayenne.access.DataDomain.performQueries(DataDomain.java:633)
    > *
    > org.objectstyle.cayenne.access.DataContext.performQueries(DataContext.java:1408)
    > *
    > org.objectstyle.cayenne.access.Transaction.performQueries(Transaction.java:179)
    > *
    > org.objectstyle.cayenne.access.DataContext.performQueries(DataContext.java:1366)
    > *
    > org.objectstyle.cayenne.access.DataContext.performQuery(DataContext.java:1622)
    > *
    > org.objectstyle.cayenne.access.DataContext.performQuery(DataContext.java:1485)
    >
    >
    > This was originally with 1.1B2, but I updated to 1.1RC2 with the same
    > result. I've double checked my xml files for typos, etc.; the project
    > passes validation in the modeler; there /is/ an object entity for
    > "org.eledge.domain.model.User"; what am I forgetting? Thanks in advance
    > for any help.
    >
    > Robert



    This archive was generated by hypermail 2.0.0 : Fri Nov 05 2004 - 09:15:03 EST