I have a spring mvc application running into JBoss 4.2. I'm trying migrate this web app to JBoss wildfly 10 (wildfly-10.0.0.Final version).
When I try deploy my app show this error:
"{\"WFLYCTL0080: Failed services\" => {\"jboss.deployment.unit.\\\"myApp.war\\\".POST_MODULE\" => \"org.jboss.msc.service.StartException in service jboss.deployment.unit.\\\"myApp.war\\\".POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of deployment \\\"myApp.war\\\"
Caused by: java.lang.RuntimeException: WFLYSRV0177: Error getting reflective information for class org.ajaxtags.tags.AjaxDisplayTag with ClassLoader ModuleClassLoader for Module \\\"deployment.myApp.war:main\\\" from Service Module Loader
Caused by: java.lang.NoClassDefFoundError: au/id/jericho/lib/html/Segment
Caused by: java.lang.ClassNotFoundException: au.id.jericho.lib.html.Segment from [Module \\\"deployment.myApp.war:main\\\" from Service Module Loader]\"}}"
Looking for the web, I read that I need to load the jar "jericho-html-2.6.1.jar". To do it, I added in ${wildfly_home}/modules/system/layers/base/au/id/jericho/lib/html/main the jericho-html-2.6.1.jar and this module.xml
<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.1" name="au.id.jericho.lib.html">
<resources>
<resource-root path="jericho-html-2.6.1.jar"/>
</resources>
<dependencies>
</dependencies>
</module>
I added the extension in standalone.xml
<extension module="au.id.jericho.lib.html"/>
But I get same error.
Why do you add the extension in standalone.xml ?? You should add a WEB-INF/jboss-deployment-structure.xml file to your war with :
<jboss-deployment-structure>
<deployment>
<dependencies>
<module name="au.id.jericho.lib.html" />
</dependencies>
</deployment>
</jboss-deployment-structure>