Return-Path: Delivered-To: apmail-openjpa-users-archive@locus.apache.org Received: (qmail 23043 invoked from network); 16 Dec 2008 12:23:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Dec 2008 12:23:51 -0000 Received: (qmail 15014 invoked by uid 500); 16 Dec 2008 12:24:03 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 14977 invoked by uid 500); 16 Dec 2008 12:24:03 -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 14962 invoked by uid 99); 16 Dec 2008 12:24:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Dec 2008 04:24:03 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of phanibalaji.madgula@gmail.com designates 209.85.146.178 as permitted sender) Received: from [209.85.146.178] (HELO wa-out-1112.google.com) (209.85.146.178) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Dec 2008 12:23:49 +0000 Received: by wa-out-1112.google.com with SMTP id m33so2525023wag.9 for ; Tue, 16 Dec 2008 04:23:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=QKPFrGKwINnWalP6PxIIIrR2MGHGcZ9SwwX7SgJmmRw=; b=XHAXbXDfJQvA+zZTtCd8/471fR1xKeA5Mj5Q9xPJXW69bQql4m1vwR5OzfhrRZs/Ow 7GaybG9IdQjNSurWkWES/PJVvXPkwK7+LILsl6ZU8w5M09dQFNzNsY8TZPN1pZ1VdZBU E0812VesEJGtqrJplg1QW3Qjo8DT5ove6vytw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=XjpVmQ7wIXfqHTOlaHhlzfjhKCHeZOh5xFX3FKffrfLz21pmU0XkUDlznQejKT/gj0 2+jbItrxz7m1RUUTlsqW0mZtHPvhgkBKmh9QyPMHW3p0EzWXx92ogwx8JcnxJoVrPIUc oPJPSxGOaHzczPSzBoTj3qNS53cYF2+zwSZ4s= Received: by 10.114.39.5 with SMTP id m5mr5653903wam.214.1229430207534; Tue, 16 Dec 2008 04:23:27 -0800 (PST) Received: by 10.114.168.2 with HTTP; Tue, 16 Dec 2008 04:23:27 -0800 (PST) Message-ID: <83e2fc4d0812160423n59029e15ne4a7cb0f3b545c29@mail.gmail.com> Date: Tue, 16 Dec 2008 17:53:27 +0530 From: "Phani Madgula" To: users , dev Subject: Can somebody tell me how to generate DDLs MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org Hi I am trying to execute the following command. ************ C:\temp\junk\WEB-INF\classes\samples\jpa>java org.apache.openjpa.jdbc.meta.MappingTool -sql DDL.sql -ConnectionDriverName com.ibm.db2.jcc.DB2Driver Product.java I get the following output: -------------------------------------- Some product derivations are being skipped. For information about product derivation status, run: java org.apache.openjpa.lib.conf.ProductDerivations 120 INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DB2Dictionary". Exception in thread "main" org.apache.openjpa.util.MetaDataException: MetaDataFactory could not be configured (conf.newMetaDataFactoryInstance() returned null). This might mean that no configuration properties were found. Ensure that you have a META-INF/persistence.xml file, that it is available in your classpath, or that the properties file you are using for configuration is available. If you are using Ant, please see the or attributes of the task's nested element. This can also occur if your OpenJPA distribution jars are corrupt, or if your security policy is overly strict. at org.apache.openjpa.meta.MetaDataRepository.initializeMetaDataFactory(MetaDataRepository.java:1520) at org.apache.openjpa.meta.MetaDataRepository.endConfiguration(MetaDataRepository.java:1513) at org.apache.openjpa.jdbc.meta.MappingRepository.endConfiguration(MappingRepository.java:1218) 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.newMetaDataRepositoryInstance(OpenJPAConfigurationImpl.java:857) at org.apache.openjpa.conf.OpenJPAConfigurationImpl.getMetaDataRepositoryInstance(OpenJPAConfigurationImpl.java:852) at org.apache.openjpa.jdbc.meta.MappingTool.run(MappingTool.java:1009) at org.apache.openjpa.jdbc.meta.MappingTool.run(MappingTool.java:980) at org.apache.openjpa.jdbc.meta.MappingTool.main(MappingTool.java:921) Can somebody tell me how to generate DDLs without connecting to the database?? or with a connection to database?? Thanks Phani