This is an automated email from the ASF dual-hosted git repository. robertlazarski pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/axis-axis2-java-core.git
commit 9dfd35c819d28a94108faba3fb8f9b48cabe2970 Author: Robert Lazarski <[email protected]> AuthorDate: Mon Apr 6 17:29:30 2026 -1000 springbootdemo-wildfly: apply Gemini review fixes jboss-web.xml: replace obsolete JBoss AS 5 DOCTYPE/DTD declaration with the modern WildFly 32+ Jakarta EE schema (jboss-web_15_1.xsd, urn:jboss:jakartaee:1.0). The old jboss-web_5_0.dtd is from JBoss AS 5 (2008); WildFly parses it via backward-compat but the schema mismatch produces spurious validation warnings. Axis2WebAppInitializer: downgrade axis2.repository.path log from WARN to INFO. Setting the repository path is a normal startup step, not a warning condition. Using WARN would cause log-scanning tools to flag it on every deployment. Not fixed (by design): - Duplicate artifactId axis2-json-api: both wildfly and tomcat11 modules are standalone POMs (no shared reactor parent), so Maven GAV uniqueness is not required; both deploy to the same context path /axis2-json-api intentionally. - woodstox-core-asl:4.4.1: pre-existing in tomcat11, carried over; Axis2 requires this specific artifact for StAX parsing — upgrade tracked separately. - commons-fileupload2 M2: no stable release available at time of writing. Co-Authored-By: Claude Sonnet 4.6 <[email protected]> --- .../springboot/configuration/Axis2WebAppInitializer.java | 2 +- .../src/main/webapp/WEB-INF/jboss-web.xml | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/modules/samples/userguide/src/userguide/springbootdemo-tomcat11/src/main/java/userguide/springboot/configuration/Axis2WebAppInitializer.java b/modules/samples/userguide/src/userguide/springbootdemo-tomcat11/src/main/java/userguide/springboot/configuration/Axis2WebAppInitializer.java index bc1f36ff2c..6ccfe20c18 100644 --- a/modules/samples/userguide/src/userguide/springbootdemo-tomcat11/src/main/java/userguide/springboot/configuration/Axis2WebAppInitializer.java +++ b/modules/samples/userguide/src/userguide/springbootdemo-tomcat11/src/main/java/userguide/springboot/configuration/Axis2WebAppInitializer.java @@ -74,7 +74,7 @@ public class Axis2WebAppInitializer implements ServletContextInitializer { // Explicitly set the Axis2 repository path so WarBasedAxisConfigurator finds // WEB-INF/services/*.aar on both Tomcat and WildFly (bypasses getRealPath() VFS issues). String webInfPath = container.getRealPath("/WEB-INF"); - logger.warn("addAxis2Servlet: axis2.repository.path = " + webInfPath); + logger.info("addAxis2Servlet: axis2.repository.path = " + webInfPath); if (webInfPath != null) { dispatcher.setInitParameter(WarBasedAxisConfigurator.PARAM_AXIS2_REPOSITORY_PATH, webInfPath); } diff --git a/modules/samples/userguide/src/userguide/springbootdemo-wildfly/src/main/webapp/WEB-INF/jboss-web.xml b/modules/samples/userguide/src/userguide/springbootdemo-wildfly/src/main/webapp/WEB-INF/jboss-web.xml index 65a7106443..7aac1bdc92 100644 --- a/modules/samples/userguide/src/userguide/springbootdemo-wildfly/src/main/webapp/WEB-INF/jboss-web.xml +++ b/modules/samples/userguide/src/userguide/springbootdemo-wildfly/src/main/webapp/WEB-INF/jboss-web.xml @@ -1,12 +1,14 @@ -<?xml version="1.0"?> -<!DOCTYPE jboss-web PUBLIC - "-//JBoss//DTD Web Application 5.0//EN" - "http://www.jboss.org/j2ee/dtd/jboss-web_5_0.dtd"> +<?xml version="1.0" encoding="UTF-8"?> <!-- Context root for WildFly deployment. WAR filename (axis2-json-api.war) sets the context to /axis2-json-api by default. Uncomment <context-root> below to override (e.g. to deploy as root context). + + Schema: jboss-web_15_1.xsd (WildFly 32+ / Jakarta EE 10+). --> -<jboss-web> +<jboss-web xmlns="urn:jboss:jakartaee:1.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="urn:jboss:jakartaee:1.0 https://www.jboss.org/schema/jbossas/jboss-web_15_1.xsd" + version="15.1"> <!-- <context-root>/</context-root> --> </jboss-web>
