Hi all,
I've been taking an application that was targeted at wildfly24 and updating to run on wildfly 26. I'm having following exception thrown when the application is deployed. I'm running all this on OpenJDK 11.
There's an ejb that calls some code that reads xml schemas using a catalog. This same code runs in unit tests perfectly fine.
The two deps related to this are:
<dependency>
<groupId>xml-resolver</groupId>
<artifactId>xml-resolver</artifactId>
<version>1.2</version>
</dependency>
<dependency>
<groupId>xerces</groupId>
<artifactId>xercesImpl</artifactId>
<version>2.12.2</version>
</dependency>
I've verified the .jars end up in the EAR's lib dir.
I've also tried including as provided scope and adding entries to the ear's jboss-deployment-structure to include modules from wildfly itself.
I've even tried including these in the standalone/lib/ext dir.
Any ideas?
Here's a snippet of the exception.
Caused by: java.lang.ClassNotFoundException: org.apache.xml.resolver.readers.CatalogReader from [Module "org.apache.xerces" version 2.12.0.SP03 from local module loader @20c0a64d (finder: local module finder @455b6df1 (roots: /opt/wf_app/modules,/opt/wf_app/modules/system/layers/base,/opt/wf_app/modules/system/add-ons/ispn))]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:200)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:410)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116)