Return-Path: X-Original-To: apmail-cayenne-user-archive@www.apache.org Delivered-To: apmail-cayenne-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 423591805C for ; Mon, 6 Jul 2015 00:27:52 +0000 (UTC) Received: (qmail 65697 invoked by uid 500); 6 Jul 2015 00:27:52 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 65665 invoked by uid 500); 6 Jul 2015 00:27:52 -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 65654 invoked by uid 99); 6 Jul 2015 00:27:51 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Jul 2015 00:27:51 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 767E8D25E0 for ; Mon, 6 Jul 2015 00:27:51 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.43 X-Spam-Level: X-Spam-Status: No, score=0.43 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-0.571, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 6c2ty3zop8we for ; Mon, 6 Jul 2015 00:27:45 +0000 (UTC) Received: from elasmtp-spurfowl.atl.sa.earthlink.net (elasmtp-spurfowl.atl.sa.earthlink.net [209.86.89.66]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTP id D9ABE2122B for ; Mon, 6 Jul 2015 00:27:44 +0000 (UTC) Received: from [70.184.178.197] (helo=[192.168.1.144]) by elasmtp-spurfowl.atl.sa.earthlink.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.67) (envelope-from ) id 1ZBuG2-0004FX-9F for user@cayenne.apache.org; Sun, 05 Jul 2015 20:27:38 -0400 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2102\)) Subject: Re: Migration to 4.0 From: Joe Baldwin In-Reply-To: <5E01678F-D352-4EA7-804C-AA9CF9C135D7@objectstyle.org> Date: Sun, 5 Jul 2015 20:27:37 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: <28FF5697-9591-4DF0-AFE2-9D906D10EFB8@earthlink.net> References: <5E01678F-D352-4EA7-804C-AA9CF9C135D7@objectstyle.org> To: user@cayenne.apache.org X-Mailer: Apple Mail (2.2102) X-ELNK-Trace: ddf0204093c7bf071aa676d7e74259b7b3291a7d08dfec79fcae12e54243614b7973a000c88a7c4e350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 70.184.178.197 Andrus, in the interim, I did some hacking and found out that I needed cayenne-di-4.0.M2.jar as well cayenne-server-4.0.M2.jar The error, without the the di jar was that Modules were missing. So, = if I haven=E2=80=99t missed anything, you need server, di, and all the = 3rd party jars at a minimum. Does this sound correct? Joe > On Jul 5, 2015, at 8:20 PM, Andrus Adamchik = wrote: >=20 > Yes. Alternatively you can use ServerRuntimeBuilder (especially if you = have various customizations), but ServerRuntime constructor works just = as well.=20 >=20 > Andrus >=20 >=20 >> On Jul 4, 2015, at 1:30 PM, Joe Baldwin = wrote: >>=20 >> Is this example from = (https://cayenne.apache.org/docs/4.0/tutorial/ch05.html = ) still = considered correct? (Specifically the ServerRuntime instantiation): >>=20 >>=20 >> package org.example.cayenne; >> import org.apache.cayenne.ObjectContext; >> import org.apache.cayenne.configuration.server.ServerRuntime; >>=20 >> public class Main { =20 >> public static void main(String[] args) { >> ServerRuntime cayenneRuntime =3D new = ServerRuntime("cayenne-project.xml"); >> ObjectContext context =3D cayenneRuntime.newContext(); >> } >> } >=20