[ https://issues.apache.org/jira/browse/DELTASPIKE-1442?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thomas Andraschko closed DELTASPIKE-1442. ----------------------------------------- Resolution: Duplicate duplicate of https://issues.apache.org/jira/browse/DELTASPIKE-1434 > Support for Jakarta EE 9. > ------------------------- > > Key: DELTASPIKE-1442 > URL: https://issues.apache.org/jira/browse/DELTASPIKE-1442 > Project: DeltaSpike > Issue Type: Improvement > Security Level: public(Regular issues) > Components: Data-Module > Affects Versions: 1.9.5 > Environment: JDK 17, Jakarta EE 9 (Glassfish 6) > Reporter: Roman Müller > Priority: Major > Attachments: jakarta-deltaspike-data.zip, server.log > > > Hello, > I want to migrate a Java EE 7 project to Jakarta EE 9. It will eventually run > on Java 17 with Glassfish 6 and up. > The project fails compilation though where the compilation error does not > contain info at all. > {quote}C:\Users\mueller-83\Development\Workspace\jakarta-deltaspike-data>mvn > clean install > [INFO] Scanning for projects... > [INFO] > [INFO] ------------------{-}< roman:jakarta-deltaspike-data > >{-}------------------- > [INFO] Building jakarta-deltaspike-data 1.0-SNAPSHOT > [INFO] -------------------------------{-}[ war > ]{-}-------------------------------- > Downloading from central: > [https://repo.maven.apache.org/maven2/jakarta/platform/jakarta.jakartaee-api/9.1.0/jakarta.jakartaee-api-9.1.0.pom] > Downloaded from central: > [https://repo.maven.apache.org/maven2/jakarta/platform/jakarta.jakartaee-api/9.1.0/jakarta.jakartaee-api-9.1.0.pom] > (0 B at 0 B/s) > Downloading from central: > [https://repo.maven.apache.org/maven2/jakarta/platform/jakartaee-api-parent/9.1.0/jakartaee-api-parent-9.1.0.pom] > Downloaded from central: > [https://repo.maven.apache.org/maven2/jakarta/platform/jakartaee-api-parent/9.1.0/jakartaee-api-parent-9.1.0.pom] > (0 B at 0 B/s) > Downloading from central: > [https://repo.maven.apache.org/maven2/org/eclipse/ee4j/project/1.0.7/project-1.0.7.pom] > Downloaded from central: > [https://repo.maven.apache.org/maven2/org/eclipse/ee4j/project/1.0.7/project-1.0.7.pom] > (0 B at 0 B/s) > Downloading from central: > [https://repo.maven.apache.org/maven2/jakarta/platform/jakarta.jakartaee-api/9.1.0/jakarta.jakartaee-api-9.1.0.jar] > Downloaded from central: > [https://repo.maven.apache.org/maven2/jakarta/platform/jakarta.jakartaee-api/9.1.0/jakarta.jakartaee-api-9.1.0.jar] > (0 B at 0 B/s) > [INFO] > [INFO] — maven-clean-plugin:2.5:clean (default-clean) @ > jakarta-deltaspike-data — > [INFO] > [INFO] — maven-toolchains-plugin:3.0.0:toolchain (default) @ > jakarta-deltaspike-data — > [INFO] Required toolchain: jdk [ vendor='openjdk' version='1.17' ] > [INFO] Found matching toolchain for type jdk: > JDK[C:/Users/mueller-83/Development/jdk-17.0.1_12] > [INFO] > [INFO] — maven-resources-plugin:2.6:resources (default-resources) @ > jakarta-deltaspike-data — > [INFO] Using 'UTF-8' encoding to copy filtered resources. > [INFO] Copying 0 resource > [INFO] > [INFO] — maven-compiler-plugin:3.1:compile (default-compile) @ > jakarta-deltaspike-data — > [INFO] Toolchain in compiler-plugin: > JDK[C:/Users/mueller-83/Development/jdk-17.0.1_12] > [INFO] Changes detected - recompiling the module! > [INFO] Compiling 2 source files to > C:\Users\mueller-83\Development\Workspace\jakarta-deltaspike-data\target\classes > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 7.305 s > [INFO] Finished at: 2021-11-12T15:29:11+01:00 > [INFO] > ------------------------------------------------------------------------ > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) > on project jakarta-deltaspike-data: Compilation failure -> [Help 1] > [ERROR] > [ERROR] To see the full stack trace of the errors, re-run Maven with the -e > switch. > [ERROR] Re-run Maven using the -X switch to enable full debug logging. > [ERROR] > [ERROR] For more information about the errors and possible solutions, please > read the following articles: > [ERROR] [Help 1] > [http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException] > {quote} > It compiles with Jakarta EE 8. But does not deploy to Glassfish 6 due to > changed package names. See also attached server.log file. > > {quote}[2021-11-12T15:13:21.118+0100] [glassfish 6.2] [INFO] [] > [org.jboss.weld.Bootstrap] [tid: _ThreadID=155 _ThreadName=weld-worker-8] > [timeMillis: 1636726401118] [levelValue: 800] [[ > WELD-000119: Not generating any bean definitions from > org.apache.deltaspike.core.impl.scope.conversation.GroupedConversationArtifactProducer > because of underlying class loading error: Type > javax.enterprise.context.spi.Contextual not found. If this is unexpected, > enable DEBUG logging to see the full error.]] > [2021-11-12T15:13:21.119+0100] [glassfish 6.2] [INFO] [] > [org.jboss.weld.Bootstrap] [tid: _ThreadID=151 _ThreadName=weld-worker-4] > [timeMillis: 1636726401119] [levelValue: 800] [[ > WELD-000119: Not generating any bean definitions from > org.apache.deltaspike.core.impl.jmx.JmxBroadcasterLifecycle because of > underlying class loading error: Type javax.enterprise.inject.spi.Bean not > found. If this is unexpected, enable DEBUG logging to see the full error.]] > [2021-11-12T15:13:21.120+0100] [glassfish 6.2] [INFO] [] > [org.jboss.weld.Bootstrap] [tid: _ThreadID=152 _ThreadName=weld-worker-5] > [timeMillis: 1636726401120] [levelValue: 800] [[ > WELD-000119: Not generating any bean definitions from > org.apache.deltaspike.core.impl.lock.LockedInterceptor because of underlying > class loading error: Type javax.interceptor.InvocationContext not found. If > this is unexpected, enable DEBUG logging to see the full error.]] > [2021-11-12T15:13:21.130+0100] [glassfish 6.2] [INFO] [] > [org.jboss.weld.Bootstrap] [tid: _ThreadID=151 _ThreadName=weld-worker-4] > [timeMillis: 1636726401130] [levelValue: 800] [[ > WELD-000119: Not generating any bean definitions from > org.apache.deltaspike.core.impl.jmx.DynamicMBeanWrapper because of underlying > class loading error: Type javax.enterprise.context.spi.Contextual not found. > If this is unexpected, enable DEBUG logging to see the full error.]] > [2021-11-12T15:13:21.147+0100] [glassfish 6.2] [SEVERE] [NCLS-CORE-00026] > [jakarta.enterprise.system.core] [tid: _ThreadID=58 > _ThreadName=admin-listener(2)] [timeMillis: 1636726401147] [levelValue: 1000] > [[ > Exception during lifecycle processing > org.glassfish.deployment.common.DeploymentException: CDI deployment > failure:javax/enterprise/inject/spi/Extension > at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:211) > at org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:107) > at > org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:304) > at > com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:473) > at > com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:196) > at > org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:467) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:516) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:512) > at > java.base/java.security.AccessController.doPrivileged(AccessController.java:399) > {quote} > > The maven demo project is attached in jakarta-deltaspike-data.zip > I assume this issue applies to other Deltaspike modules too. We are also > using Deltaspike JPA, and Deltaspike CDI. Is there plans to support Jakarta > EE 9? -- This message was sent by Atlassian Jira (v8.20.1#820001)