From 01fad5acaa08ee07739bd1989741edfaa19dcfdf Mon Sep 17 00:00:00 2001
From: Joaquín Reñé <jrene@curisit.net>
Date: Fri, 20 Jun 2025 11:10:22 +0000
Subject: [PATCH] #4399 - Fix Dynamic Web Module
---
securis/pom.xml | 8 ++++++++
securis/src/main/webapp/WEB-INF/web.xml | 18 +++++++++---------
2 files changed, 17 insertions(+), 9 deletions(-)
diff --git a/securis/pom.xml b/securis/pom.xml
index 45ef01e..24ebf12 100644
--- a/securis/pom.xml
+++ b/securis/pom.xml
@@ -124,6 +124,14 @@
<encoding>${project.build.sourceEncoding}</encoding>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-war-plugin</artifactId>
+ <version>3.3.2</version>
+ <configuration>
+ <failOnMissingWebXml>false</failOnMissingWebXml>
+ </configuration>
+ </plugin>
</plugins>
</build>
diff --git a/securis/src/main/webapp/WEB-INF/web.xml b/securis/src/main/webapp/WEB-INF/web.xml
index 4f34c69..a833683 100644
--- a/securis/src/main/webapp/WEB-INF/web.xml
+++ b/securis/src/main/webapp/WEB-INF/web.xml
@@ -15,12 +15,12 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
-<web-app xmlns="http://java.sun.com/xml/ns/javaee"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
- http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
- version="3.0"
- metadata-complete="true">
+<web-app xmlns="https://jakarta.ee/xml/ns/jakartaee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee
+ https://jakarta.ee/xml/ns/jakartaee/web-app_6_0.xsd"
+ version="6.0"
+ metadata-complete="true">
<display-name>SeCuris Server</display-name>
<description>
@@ -69,7 +69,7 @@
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher
</filter-class>
<init-param>
- <param-name>javax.ws.rs.Application</param-name>
+ <param-name>jakarta.ws.rs.Application</param-name>
<param-value>net.curisit.securis.RestServicesApplication</param-value>
</init-param>
</filter>
@@ -100,12 +100,12 @@
<resource-env-ref>
<resource-env-ref-name>SeCurisDS</resource-env-ref-name>
- <resource-env-ref-type>javax.sql.DataSource</resource-env-ref-type>
+ <resource-env-ref-type>jakarta.sql.DataSource</resource-env-ref-type>
</resource-env-ref>
<resource-env-ref>
<resource-env-ref-name>BeanManager</resource-env-ref-name>
- <resource-env-ref-type>javax.enterprise.inject.spi.BeanManager</resource-env-ref-type>
+ <resource-env-ref-type>jakarta.enterprise.inject.spi.BeanManager</resource-env-ref-type>
</resource-env-ref>
</web-app>
\ No newline at end of file
--
Gitblit v1.3.2