Joaquín Reñé
10 hours ago 93635eef5ea5561f556d1cc0980f0ea83631a839
#4479 - upgrade SecurisServer to Java 21
3 files modified
changed files
securis/pom.xml patch | view | blame | history
securis/src/main/resources/META-INF/persistence.xml patch | view | blame | history
securis/src/main/webapp/WEB-INF/web.xml patch | view | blame | history
securis/pom.xml
....@@ -64,13 +64,7 @@
6464 <artifactId>httpmime</artifactId>
6565 <version>4.5.13</version>
6666 </dependency>
67
-
68
- <dependency>
69
- <groupId>javax.persistence</groupId>
70
- <artifactId>javax.persistence-api</artifactId>
71
- <version>2.2</version>
72
- </dependency>
73
-
67
+
7468 <dependency>
7569 <groupId>org.apache.commons</groupId>
7670 <artifactId>commons-lang3</artifactId>
....@@ -93,7 +87,6 @@
9387 <groupId>jakarta.enterprise</groupId>
9488 <artifactId>jakarta.enterprise.cdi-api</artifactId>
9589 <version>${jakarta.cdi.version}</version>
96
- <scope>provided</scope>
9790 </dependency>
9891 <dependency>
9992 <groupId>jakarta.inject</groupId>
....@@ -178,11 +171,6 @@
178171 <dependency>
179172 <groupId>com.fasterxml.jackson.dataformat</groupId>
180173 <artifactId>jackson-dataformat-cbor</artifactId>
181
- <version>${jackson.version}</version>
182
- </dependency>
183
- <dependency>
184
- <groupId>com.fasterxml.jackson.datatype</groupId>
185
- <artifactId>jackson-datatype-hibernate6</artifactId>
186174 <version>${jackson.version}</version>
187175 </dependency>
188176 <dependency>
securis/src/main/resources/META-INF/persistence.xml
....@@ -1,8 +1,8 @@
11 <?xml version="1.0" encoding="UTF-8"?>
2
-<persistence version="2.2"
3
- xmlns="http://xmlns.jcp.org/xml/ns/persistence"
2
+<persistence version="3.0"
3
+ xmlns="https://jakarta.ee/xml/ns/persistence"
44 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5
- xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_2.xsd">
5
+ xsi:schemaLocation="https://jakarta.ee/xml/ns/persistence https://jakarta.ee/xml/ns/persistence/persistence_3_0.xsd">
66
77 <persistence-unit name="localdb" transaction-type="RESOURCE_LOCAL">
88 <description>SeCuris LocalDB</description>
....@@ -12,7 +12,7 @@
1212
1313 <properties>
1414 <property name="hibernate.cache.region.factory_class" value="org.hibernate.cache.internal.NoCachingRegionFactory"/>
15
- <property name="hibernate.dialect" value="org.hibernate.dialect.MySQL5Dialect"/>
15
+ <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/>
1616 <property name="hibernate.cache.use_second_level_cache" value="false"/>
1717 <property name="hibernate.format_sql" value="false"/>
1818 </properties>
securis/src/main/webapp/WEB-INF/web.xml
....@@ -108,7 +108,7 @@
108108 <resource-ref>
109109 <description>SeCuris DataSource</description>
110110 <res-ref-name>SeCurisDS</res-ref-name>
111
- <res-type>javax.sql.DataSource</res-type>
111
+ <res-type>jakarta.sql.DataSource</res-type>
112112 <res-auth>Container</res-auth>
113113 </resource-ref>
114114