Skip to content

Commit 9dfd35c

Browse files
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 <noreply@anthropic.com>
1 parent ebc330b commit 9dfd35c

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

modules/samples/userguide/src/userguide/springbootdemo-tomcat11/src/main/java/userguide/springboot/configuration/Axis2WebAppInitializer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ private void addAxis2Servlet(ServletContext container, AnnotationConfigWebApplic
7474
// Explicitly set the Axis2 repository path so WarBasedAxisConfigurator finds
7575
// WEB-INF/services/*.aar on both Tomcat and WildFly (bypasses getRealPath() VFS issues).
7676
String webInfPath = container.getRealPath("/WEB-INF");
77-
logger.warn("addAxis2Servlet: axis2.repository.path = " + webInfPath);
77+
logger.info("addAxis2Servlet: axis2.repository.path = " + webInfPath);
7878
if (webInfPath != null) {
7979
dispatcher.setInitParameter(WarBasedAxisConfigurator.PARAM_AXIS2_REPOSITORY_PATH, webInfPath);
8080
}
Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
<?xml version="1.0"?>
2-
<!DOCTYPE jboss-web PUBLIC
3-
"-//JBoss//DTD Web Application 5.0//EN"
4-
"http://www.jboss.org/j2ee/dtd/jboss-web_5_0.dtd">
1+
<?xml version="1.0" encoding="UTF-8"?>
52
<!--
63
Context root for WildFly deployment.
74
WAR filename (axis2-json-api.war) sets the context to /axis2-json-api by default.
85
Uncomment <context-root> below to override (e.g. to deploy as root context).
6+
7+
Schema: jboss-web_15_1.xsd (WildFly 32+ / Jakarta EE 10+).
98
-->
10-
<jboss-web>
9+
<jboss-web xmlns="urn:jboss:jakartaee:1.0"
10+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
11+
xsi:schemaLocation="urn:jboss:jakartaee:1.0 https://www.jboss.org/schema/jbossas/jboss-web_15_1.xsd"
12+
version="15.1">
1113
<!-- <context-root>/</context-root> -->
1214
</jboss-web>

0 commit comments

Comments
 (0)