Hi there.

On OpenJPA 2.0.0 I try to use the ant based enhancement step. However I 
keep getting this error message:

<openjpa-2.0.0-r422266:935683 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.


So I figure it is something about my persistence.xml file (that already 
worked for runtime enhanced classes). Now where exactly do I have to place 
the file for OpenJPA to find it?
If there is a <properties> or <propertiesFile> attribute, how are these 
specified for the ant task? Unfortunately the documentation seems not to 
be in sync with this error message.
And finally - just if it is the security policy: What could I look out for 
here?

Can somebody shed some more light on this?

Hiran


Hiran Chaudhuri
System Support Programmer / Analyst
IT Service Assurance
Hosting & Regional Services (IH)
Amadeus Data Processing GmbH
Berghamer Strasse 6
85435 Erding
T: +49-8122-43x3662
[email protected]
http://www.amadeus.com




Reply via email to