org.apache.openjpa.util.MetaDataException: Type "class org.test.classdiag.jpa3.Animal" loaded by sun.misc.Launcher$AppClassLoader@54f690e4 does not have persistence metadata.

openjpa-users | lostvicking | 4 years ago
  1. 0

    MappingTool MetaDataException

    openjpa-users | 4 years ago | lostvicking
    org.apache.openjpa.util.MetaDataException: Type "class org.test.classdiag.jpa3.Animal" loaded by sun.misc.Launcher$AppClassLoader@54f690e4 does not have persistence metadata.
  2. 0

    OpenJPA MappingTool MetaDataException

    Stack Overflow | 4 years ago | user60786
    org.apache.openjpa.util.MetaDataException: Type "class org.test.classdiag.jpa3.Animal" loaded by sun.misc.Launcher$AppClassLoader@54f690e4 does not have persistence metadata.
  3. 0

    Can somebody tell me how to generate DDLs

    openjpa-users | 8 years ago | Phani Madgula
    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.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [OPENJPA-401] UnsatisfiedLinkError in MappingToolTask when using DB2 JDBC driver - ASF JIRA

    apache.org | 1 year ago
    org.apache.openjpa.util.MetaDataException: Type "class kodo.performance.PerfMultiA" does not have persistence metadata.
  6. 0

    The MappingToolTask's class resolver loads classes from a temporary classloader before loading them in the "normal" classloader. This can cause problems if the JDBC driver requires access to native libraries (which can only be loaded once). I've seen errors like this when using the DB2 JCC driver and the IBM JDK : [mapping] 608 persistence-tests INFO [main] openjpa.Tool - Recording mapping and schema changes. [mapping] java.lang.UnsatisfiedLinkError: com/ibm/jvm/Trace.initTrace([Ljava/lang/String;[Ljava/lang/String;)V [mapping] at com.ibm.jvm.Trace.initializeTrace(Trace.java:96) [mapping] at com.ibm.jvm.Trace.<clinit>(Trace.java:61) [mapping] at java.lang.J9VMInternals.initializeImpl(Native Method) [mapping] at java.lang.J9VMInternals.initialize(J9VMInternals.java:192) [mapping] at java.lang.Class.forNameImpl(Native Method) [mapping] at java.lang.Class.forName(Class.java:130) [mapping] at com.ibm.db2.jcc.c.o.q(o.java:550) [mapping] at com.ibm.db2.jcc.c.o.<clinit>(o.java:319) [mapping] at java.lang.J9VMInternals.initializeImpl(Native Method) [mapping] at java.lang.J9VMInternals.initialize(J9VMInternals.java:192) [mapping] at java.lang.Class.forNameImpl(Native Method) [mapping] at java.lang.Class.forName(Class.java:130) [mapping] at com.ibm.db2.jcc.DB2Driver.class$(DB2Driver.java:48) [mapping] at com.ibm.db2.jcc.DB2Driver.<clinit>(DB2Driver.java:51) [mapping] at java.lang.J9VMInternals.initializeImpl(Native Method) [mapping] at java.lang.J9VMInternals.initialize(J9VMInternals.java:192) [mapping] at java.lang.Class.forNameImpl(Native Method) [mapping] at java.lang.Class.forName(Class.java:163) [mapping] at org.apache.openjpa.jdbc.schema.DataSourceFactory.newDataSource(DataSourceFactory.java:82) <snip> Note that this does not occur with the Sun JDK (or at least I haven't hit the problem. A potential solution is to change the order of the classloaders used in MappingToolTask.

    Apache's JIRA Issue Tracker | 9 years ago | Michael Dick
    org.apache.openjpa.util.MetaDataException: Type "class kodo.performance.PerfMultiA" does not have persistence metadata.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.apache.openjpa.util.MetaDataException

      Type "class org.test.classdiag.jpa3.Animal" loaded by sun.misc.Launcher$AppClassLoader@54f690e4 does not have persistence metadata.

      at org.apache.openjpa.jdbc.meta.MappingTool.getMapping()
    2. OpenJPA Aggregate Jar
      MappingTool.main
      1. org.apache.openjpa.jdbc.meta.MappingTool.getMapping(MappingTool.java:688)
      2. org.apache.openjpa.jdbc.meta.MappingTool.buildSchema(MappingTool.java:754)
      3. org.apache.openjpa.jdbc.meta.MappingTool.run(MappingTool.java:652)
      4. org.apache.openjpa.jdbc.meta.MappingTool.run(MappingTool.java:1087)
      5. org.apache.openjpa.jdbc.meta.MappingTool.run(MappingTool.java:1001)
      6. org.apache.openjpa.jdbc.meta.MappingTool$1.run(MappingTool.java:937)
      7. org.apache.openjpa.lib.conf.Configurations.launchRunnable(Configurations.java:748)
      8. org.apache.openjpa.lib.conf.Configurations.runAgainstAllAnchors(Configurations.java:738)
      9. org.apache.openjpa.jdbc.meta.MappingTool.main(MappingTool.java:932)
      9 frames