Return-Path: Delivered-To: apmail-cayenne-user-archive@www.apache.org Received: (qmail 7791 invoked from network); 21 Sep 2008 22:21:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Sep 2008 22:21:05 -0000 Received: (qmail 16555 invoked by uid 500); 21 Sep 2008 22:21:01 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 16545 invoked by uid 500); 21 Sep 2008 22:21:01 -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 16534 invoked by uid 99); 21 Sep 2008 22:21:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Sep 2008 15:21:01 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [62.179.121.48] (HELO viefep28-int.chello.at) (62.179.121.48) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Sep 2008 22:20:01 +0000 Received: from mail.winnall.net ([84.73.179.131]) by viefep28-int.chello.at (InterMail vM.7.08.02.02 201-2186-121-104-20070414) with ESMTP id <20080921222029.IGOA21636.viefep28-int.chello.at@mail.winnall.net> for ; Mon, 22 Sep 2008 00:20:29 +0200 Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.winnall.net (Postfix) with ESMTP id 555C8DE8405 for ; Mon, 22 Sep 2008 00:20:28 +0200 (CEST) X-Virus-Scanned: amavisd-new at winnall.net Received: from mail.winnall.net ([127.0.0.1]) by localhost (mail.winnall.ch [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VECzpF2nUzoO for ; Mon, 22 Sep 2008 00:20:27 +0200 (CEST) Received: from d-mx-s-l.winnall.ch (d-mx-s-l.winnall.ch [192.168.0.124]) by mail.winnall.net (Postfix) with ESMTP id 7C3F6DE8404 for ; Mon, 22 Sep 2008 00:20:27 +0200 (CEST) Message-Id: <52FF172A-0DA5-405E-989D-8DD70E7A6D62@winnall.ch> From: Stephen Winnall To: user@cayenne.apache.org Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v929.2) Subject: Cayenne configuration with Maven Date: Mon, 22 Sep 2008 00:20:27 +0200 X-Mailer: Apple Mail (2.929.2) X-Virus-Checked: Checked by ClamAV on apache.org I'm trying to set up a new project using Maven. I'm new to Cayenne and Maven. I use NetBeans 6.1 and I've managed to get everything compiled. However, when I try to run it, it falls at the first hurdle. This is my program: public static void main(String[] args) { DataContext context = DataContext.createDataContext(); } It fails with the following messages: Exception in thread "main" org.objectstyle.cayenne.ConfigurationException: [v.1.2.4 October 8 2007] Error during Configuration initialization. [v.1.2.4 October 8 2007] Load failures. Main configuration class: org.objectstyle.cayenne.conf.DefaultConfiguration, details: domain.node.name=XwRepositoryNode, domain.node.datasource=XwRepositoryNode.driver.xml, reason: DataSource load failed - org.apache.cayenne.conf.DriverDataSourceFactory at org .objectstyle .cayenne .conf.Configuration.initializeSharedConfiguration(Configuration.java: 321) at org .objectstyle .cayenne .conf.Configuration.initializeSharedConfiguration(Configuration.java: 294) at org .objectstyle .cayenne .conf.Configuration.initializeSharedConfiguration(Configuration.java: 275) at org .objectstyle .cayenne.conf.Configuration.getSharedConfiguration(Configuration.java: 212) at org .objectstyle .cayenne.access.DataContext.createDataContext(DataContext.java:242) at org.vimia.xw.PopulateNst.main(PopulateNst.java:23) I've got org.apache.cayenne.conf.DriverDataSourceFactory in my classpath by using org.apache.cayenne.unpublished:cayenne-jdk1.5- unpublished:3.0-SNAPSHOT. I downloaded Cayenne 3.0-SNAPSHOT and built and installed it in my local repository. I've tried changing cayenne-log.properties to switch on debugging, but I don't think it is being found. I get the impression that the file XwRepositoryNode.driver.xml is not being found either. I have copied them both manually to the same place as cayenne.xml. I know cayenne.xml is being found because I got a different error complaining about that before I did the manual copy. Where do these files go? How do I tell Maven about these files so it copies them to the right place for run-time? Steve