openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "nick_j_mann@uk.ibm.com" <nick_j_m...@uk.ibm.com>
Subject Re: Mapping tool and openjpa.ConnectionFactory
Date Mon, 16 Feb 2009 15:31:24 GMT

Thank you!
We were so certain it was... we didnt check, and it wasnt!! JPA runtime was
succeeding as the persistence.xml was available to the enhancer at build
time.

now that its on the cp its going fine

Nick


Rick Curtis wrote:
> 
> Nick -
> Is the persistence.xml file in the classpath?
> 
> Rick
> 
> 
> nick_j_mann@uk.ibm.com wrote:
>> 
>> Doing something like this...  
>> 
>> Options opts = new Options();
>> String[] toolArgs = opts.setFromCmdLine(options);			
>> MappingTool.run(conf, toolArgs,opts);
>> 
>> conf contains the openjpa.ConnectionFactory object that obtains
>> connections. it does not contain the openjpa.user (etc) properties
>> toolArgs are empty
>> opts contains -schemaAction -a
>> 
>> The error is that inside jpa the metaDataFactory cannot be created 
>> 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.
>> 
>> 
>> 
> 
> 

-- 
View this message in context: http://n2.nabble.com/Mapping-tool-and-openjpa.ConnectionFactory-tp2334727p2335405.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.


Mime
View raw message