ROP Tutorial (Version 2) problem: No entity mapped for class

From: Karen Harper (karenaharpe..mail.com)
Date: Sat Mar 07 2009 - 18:53:12 EST

  • Next message: Zissis Trabaris: "RE: Child commit and rollback question"

    Hello,

    I am working through the ROP tutorial with Version 2.0.4 and Hessian
    3.0.13. I have set up the web service and the client, and I know my
    client is connecting because the first connections to clear the
    database tables work. But, when I try to create a data object on the
    client side, it appears I have missed something (see stack below).
    Insight would be most appreciated.

    Thanks,
    Karen

    Mar 7, 2009 5:57:52 PM
    org.apache.cayenne.remote.hessian.HessianConnection connect
    INFO: Connecting to [http://localhost:8080/example-web-tomcat/cayenne-service
    ] - dedicated session.
    Mar 7, 2009 5:57:52 PM
    org.apache.cayenne.remote.hessian.HessianConnection connect
    INFO: === Connected, session:
    org
    .apache
    .cayenne
    .remote
    .RemoteSessio..fa6cd[sessionId=112D519F5ADB9D2BEA685B84C6521D45] -
    took 122 ms.
    Mar 7, 2009 5:57:52 PM org.apache.cayenne.remote.BaseConnection
    sendMessage
    INFO: --- Message 0: Bootstrap
    Mar 7, 2009 5:57:52 PM org.apache.cayenne.remote.BaseConnection
    sendMessage
    INFO: === Message 0: Bootstrap done - took 19 ms.
    Mar 7, 2009 5:57:52 PM org.apache.cayenne.remote.BaseConnection
    sendMessage
    INFO: --- Message 1: Query
    Mar 7, 2009 5:57:52 PM org.apache.cayenne.remote.BaseConnection
    sendMessage
    INFO: === Message 1: Query done - took 12 ms.
    Exception in thread "main" org.apache.cayenne.CayenneRuntimeException:
    [v.2.0.4 October 8 2007] No entity mapped for class: class
    cayenne.tutorial.client.Artist
            at org.apache.cayenne.CayenneContext.newObject(CayenneContext.java:266)
            at
    cayenne
    .tutorial
    .client
    .CayenneTutorialClientApp
    .dataObjectsChapter(CayenneTutorialClientApp.java:52)
            at
    cayenne
    .tutorial
    .client.CayenneTutorialClientApp.main(CayenneTutorialClientApp.java:41)



    This archive was generated by hypermail 2.0.0 : Sat Mar 07 2009 - 18:53:50 EST