Return-Path: Delivered-To: apmail-cayenne-user-archive@www.apache.org Received: (qmail 40899 invoked from network); 8 Mar 2009 14:29:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Mar 2009 14:29:42 -0000 Received: (qmail 47676 invoked by uid 500); 8 Mar 2009 14:29:42 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 47660 invoked by uid 500); 8 Mar 2009 14:29:42 -0000 Mailing-List: contact user-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cayenne.apache.org Delivered-To: mailing list user@cayenne.apache.org Received: (qmail 47649 invoked by uid 99); 8 Mar 2009 14:29:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Mar 2009 07:29:41 -0700 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of nirvdrum@gmail.com designates 209.85.221.105 as permitted sender) Received: from [209.85.221.105] (HELO mail-qy0-f105.google.com) (209.85.221.105) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Mar 2009 14:29:33 +0000 Received: by qyk3 with SMTP id 3so760558qyk.26 for ; Sun, 08 Mar 2009 07:29:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=NwJHmfDwUB5nMB835bDR1nHzG1XKVV7OVbbyG/DulBE=; b=v2MZThFfMHebz+PEkKE4CtRQU3Yx7nEk32jusL1PJJRr7WhXvJzyFYN58VkInWNi5H yVARsUeoELW+tXF/4zBjoK3cueAHce4qEU4w8DIocpbWNZrOpE8s9XzWaqgk/3wO0Kt2 JuFUP23w6vwIXkaCOD7ILbJ+VVVGtA7xOzuuc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=l6mNPWhWKOvK8ZYQspHRjtYGrwXcj2hhEIF7o0tsXc3Rj/ONyt5E1MybMt3VfSlabn imCl7+1arFo9wg7mFVKKhzp87GfHuJZWDDnOjfaQXwMQQn61Jve2DU8ZZZnq8B3PZjj/ dViNCRbTW19aPA4csvt9+W6iFyaeTshwjEES0= MIME-Version: 1.0 Received: by 10.229.74.17 with SMTP id s17mr3023629qcj.75.1236522552841; Sun, 08 Mar 2009 07:29:12 -0700 (PDT) In-Reply-To: <46203265-79BE-4501-A7B4-23A09353FFB2@gmail.com> References: <46203265-79BE-4501-A7B4-23A09353FFB2@gmail.com> Date: Sun, 8 Mar 2009 10:29:12 -0400 Message-ID: <7e3605160903080729o7170d549ucacb00725bc18d21@mail.gmail.com> Subject: Re: ROP Tutorial (Version 2) problem: No entity mapped for class From: Kevin Menard To: user@cayenne.apache.org Content-Type: multipart/alternative; boundary=00163646d6a084d9ef04649c57bc X-Virus-Checked: Checked by ClamAV on apache.org --00163646d6a084d9ef04649c57bc Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 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) > > --00163646d6a084d9ef04649c57bc--