Uploaded image for project: 'TomEE'
  1. TomEE
  2. TOMEE-3862 TomEE 9.x for jakarta namespace
  3. TOMEE-3884

Java-Agent is throwing java.lang.NoClassDefFoundError: jakarta/persistence/spi/PersistenceUnitInfo in itests/failover

Attach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsAdd voteVotersWatch issueWatchersConvert to IssueLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment Visibility
    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 9.0.0-M7
    • None
    • TomEE Core Server
    • None

    Description

      We need to investigate why we get this exception while running itests/failover. It seems our Java-Agent is missing jakarta.persistence.* classes.

      This can be reproduced by running the itests/failover unit tests.

       

      März 29, 2022 8:47:26 VORM. org.apache.openejb.javaagent.Agent$BootstrapTransformer bootstrap
      WARNUNG: Failed to invoke bootstrap: jakarta/persistence/spi/PersistenceUnitInfo
      java.lang.NoClassDefFoundError: jakarta/persistence/spi/PersistenceUnitInfo
          at java.base/java.lang.Class.getDeclaredMethods0(Native Method)
          at java.base/java.lang.Class.privateGetDeclaredMethods(Class.java:3166)
          at java.base/java.lang.Class.getMethodsRecursive(Class.java:3307)
          at java.base/java.lang.Class.getMethod0(Class.java:3293)
          at java.base/java.lang.Class.getMethod(Class.java:2106)
          at org.apache.openejb.javaagent.Agent$BootstrapTransformer.bootstrap(Agent.java:295)
          at org.apache.openejb.javaagent.Agent$BootstrapTransformer.transform(Agent.java:266)
          at java.instrument/java.lang.instrument.ClassFileTransformer.transform(ClassFileTransformer.java:246)
          at java.instrument/sun.instrument.TransformerManager.transform(TransformerManager.java:188)
          at java.instrument/sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java:563)
          at java.base/java.lang.ClassLoader.defineClass1(Native Method)
          at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1017)
          at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174)
          at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:800)
          at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:698)
          at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:621)
          at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:579)
          at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
          at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
          at java.base/java.lang.Class.forName0(Native Method)
          at java.base/java.lang.Class.forName(Class.java:398)
          at java.base/sun.launcher.LauncherHelper.loadMainClass(LauncherHelper.java:760)
          at java.base/sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:655)
      Caused by: java.lang.ClassNotFoundException: jakarta.persistence.spi.PersistenceUnitInfo
          at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
          at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
          at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
          ... 23 more

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            rzo1 Richard Zowalla

            Dates

              Created:
              Updated:

              Slack

                Issue deployment