cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevin Menard <nirvd...@gmail.com>
Subject Re: ROP Tutorial (Version 2) problem: No entity mapped for class
Date Sun, 08 Mar 2009 14:29:12 GMT
Hi Karen,
Are you using the client versions of your DataObjects from the client-side
or are you using the server versions?  Normally you map the two to different
packages.

-- 
Kevin


On Sat, Mar 7, 2009 at 7:53 PM, Karen Harper <karenaharper@gmail.com> wrote:

>
> 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.RemoteSession@3fa6cd[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)
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message