Return-Path: Delivered-To: apmail-openjpa-users-archive@locus.apache.org Received: (qmail 10790 invoked from network); 26 Oct 2007 06:02:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Oct 2007 06:02:43 -0000 Received: (qmail 95185 invoked by uid 500); 26 Oct 2007 06:02:31 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 95162 invoked by uid 500); 26 Oct 2007 06:02:31 -0000 Mailing-List: contact users-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@openjpa.apache.org Delivered-To: mailing list users@openjpa.apache.org Received: (qmail 95153 invoked by uid 99); 26 Oct 2007 06:02:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Oct 2007 23:02:31 -0700 X-ASF-Spam-Status: No, hits=3.2 required=10.0 tests=HTML_MESSAGE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [64.233.166.183] (HELO py-out-1112.google.com) (64.233.166.183) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Oct 2007 06:02:33 +0000 Received: by py-out-1112.google.com with SMTP id f47so1213076pye for ; Thu, 25 Oct 2007 23:02:09 -0700 (PDT) Received: by 10.64.209.6 with SMTP id h6mr5632390qbg.1193378529120; Thu, 25 Oct 2007 23:02:09 -0700 (PDT) Received: from PTAH ( [99.231.156.157]) by mx.google.com with ESMTPS id e14sm1864285qbe.2007.10.25.23.02.04 (version=SSLv3 cipher=RC4-MD5); Thu, 25 Oct 2007 23:02:05 -0700 (PDT) Reply-To: From: "Brill Pappin" To: Subject: Help - following the docs but just can't get it to work Date: Fri, 26 Oct 2007 02:02:02 -0400 Message-ID: <002801c81795$bb21ce60$d9267505@PTAH> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0029_01C81774.34102E60" X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcgXlbZAHKvL6WqzT6ue7fLGFZXPnw== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-Virus-Checked: Checked by ClamAV on apache.org ------=_NextPart_000_0029_01C81774.34102E60 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit I can't wait to use this library... it's simplicity is exciting... However I just can't seem to get it to work. I just keep getting an exception: org.apache.openjpa.persistence.ArgumentException: A JDBC Driver or DataSource class name must be specified in the ConnectionDriverName property. at org.apache.openjpa.jdbc.schema.DataSourceFactory.newDataSource(DataSourceFac tory.java:72) at org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl.createConnectionFactory(J DBCConfigurationImpl.java:803) at org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl.getDBDictionaryInstance(J DBCConfigurationImpl.java:568) at org.apache.openjpa.jdbc.meta.MappingRepository.endConfiguration(MappingRepos itory.java:1221) at org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations. java:467) at org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations. java:392) at org.apache.openjpa.lib.conf.PluginValue.instantiate(PluginValue.java:102) at org.apache.openjpa.lib.conf.ObjectValue.instantiate(ObjectValue.java:82) at org.apache.openjpa.conf.OpenJPAConfigurationImpl.newMetaDataRepositoryInstan ce(OpenJPAConfigurationImpl.java:857) at org.apache.openjpa.conf.OpenJPAConfigurationImpl.getMetaDataRepositoryInstan ce(OpenJPAConfigurationImpl.java:852) at org.apache.openjpa.kernel.AbstractBrokerFactory.makeReadOnly(AbstractBrokerF actory.java:628) at org.apache.openjpa.kernel.AbstractBrokerFactory.newBroker(AbstractBrokerFact ory.java:169) at org.apache.openjpa.kernel.DelegatingBrokerFactory.newBroker(DelegatingBroker Factory.java:142) at org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager( EntityManagerFactoryImpl.java:192) at org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager( EntityManagerFactoryImpl.java:145) at org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager( EntityManagerFactoryImpl.java:56) [...] As far as I can tell after reading the documention, i've got the config properly set up as: META-INF/persistence.xml JTA org.apache.openjpa.persistence.PersistenceProviderImpl ... ... <= all the classes here. I've also tried: - removing the "openjpa." in the property names. - using the openjpa.xml instead. In case it helps, all the tools give the same error. the stop complaining when I specify the property names on the command line (havn't actually got them to work but thats a different problem). Also, I'm a Maven 2 user, so my classes are in src/main/java and my resources are in src/main/resources and the openjpa-maven-plugin gives the same error (so its not liking the config as well). does anyone have any idea what the heck is going on? - Brill Pappin ------=_NextPart_000_0029_01C81774.34102E60--