openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Phani Madgula" <>
Subject Can somebody tell me how to generate DDLs
Date Tue, 16 Dec 2008 12:23:27 GMT
I am trying to execute the following command.

org.apache.openjpa.jdbc.meta.MappingTool -sql DDL.sql

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
Exception in thread "main" <openjpa-1.0.0-r5715:6560 fatal user error>
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 <properties> or
<propertiesFile> attributes of the task's nested <config> 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(
        at org.apache.openjpa.meta.MetaDataRepository.endConfiguration(
        at org.apache.openjpa.jdbc.meta.MappingRepository.endConfiguration(
        at org.apache.openjpa.lib.conf.Configurations.configureInstance(
        at org.apache.openjpa.lib.conf.Configurations.configureInstance(
        at org.apache.openjpa.lib.conf.PluginValue.instantiate(
        at org.apache.openjpa.lib.conf.ObjectValue.instantiate(
        at org.apache.openjpa.conf.OpenJPAConfigurationImpl.newMetaDataRepositoryInstance(
        at org.apache.openjpa.conf.OpenJPAConfigurationImpl.getMetaDataRepositoryInstance(
        at org.apache.openjpa.jdbc.meta.MappingTool.main(

Can somebody tell me how to generate DDLs without connecting to the
database?? or with a connection to database??


View raw message