While Migrating java hybrid Application from java 8 to java 17 with latest maven version. Here are the following version changes during migration.
-> Jdk8 to jdk17
-> Maven 3.1 to maven 3.8.6
-> Tomcat 7 to Tomcat 10.
-> Migrate javax to jakarta servlet.
Here are the following parent pom details as per new stack version:
<dependency>
<groupId>jakarta.platform</groupId>
<artifactId>jakarta.jakartaee-api</artifactId>
<version>10.0.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>jakarta.xml.bind</groupId>
<artifactId>jakarta.xml.bind-api</artifactId>
<version>3.0.1</version>
<scope>runtime</scope>
<exclusions>
<exclusion>
<artifactId>xml-apis</artifactId>
<groupId>xml-apis</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.glassfish.jaxb</groupId>
<artifactId>jaxb-runtime</artifactId>
<version>3.0.2</version>
<scope>runtime</scope>
<exclusions>
<exclusion>
<artifactId>xml-apis</artifactId>
<groupId>xml-apis</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<version>6.1.7.Final</version>
</dependency>
<dependency>
<groupId>org.hibernate.orm</groupId>
<artifactId>hibernate-entitymanager</artifactId>
<version>6.0.0.Alpha7</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.hibernate.orm</groupId>
<artifactId>hibernate-envers-jakarta</artifactId>
<version>6.0.0.Alpha9</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
<version>8.0.0.Final</version>
<scope>runtime</scope>
</dependency>
Following errors which i face during build project:
cannot find symbol
[ERROR] symbol: class LogicalAuditExpression
[ERROR] location: package org.hibernate.envers.query.criteria cannot find symbol
[ERROR] symbol: class JavaTypeDescriptor
[ERROR] location: package org.hibernate.type.descriptor.java cannot find symbol
[ERROR] symbol: class BasicBinder
[ERROR] location: package org.hibernate.type.descriptor.sql cannot find symbol
[ERROR] symbol: class SqlTypeDescriptor
[ERROR] location: class com.xxx.framework.base.jdbc.postgresql.PostgreSQLDialect cannot find symbol
[ERROR] symbol: class YesNoType
[ERROR] location: package org.hibernate.type package org.hibernate.service.jdbc.dialect.internal does not exist
I tried changing hibernate core library version, still the error persists. Can you help to resolve or share any example related to hibernate with java 17? and also i cannot find hibernate.jpa library related to jakarta.
I tried changing versions and library based on java 17. I want to build with latest stack version.