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.

openjpa-users | laudio.info | 4 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    openjpa, maven and persistence.xml. help me please

    openjpa-users | 4 years ago | laudio.info
    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.

    Root Cause Analysis

    1. 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()
    2. OpenJPA Aggregate Jar
      Configurations.configureInstance
      1. org.apache.openjpa.meta.MetaDataRepository.initializeMetaDataFactory(MetaDataRepository.java:1904)
      2. org.apache.openjpa.meta.MetaDataRepository.endConfiguration(MetaDataRepository.java:1885)
      3. org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:518)
      4. org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:443)
      4 frames