Deploy a a Spring framework application in Wildfly 10
jddr70 Apr 23, 2018 9:52 AMI am developing a application using spring framework (version 5.0.4.) . If I add in the war file all necessary jar file, application deploys and works,
Now I try to eliminate de folder lib of war file and using jboss-deployment.structure.xml to indicate necessaary modules to deploy applicaction, but show this error:
Deployment fails with error javax.servlet.ServletContainerInitializer: Provider org.springframework.web.SpringServletContainerInitializer not a subtype.
this is my jboss-deployment-structure.xml
<?xml version="1.0" encoding="UTF-8"?>
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2">
<deployment>
<dependencies>
<module name="aopalliance" />
<module name="com.itextpdf" />
<module name="commons-io" />
<module name="org.slf4j.jcl-over-slf4j"/>
<module name="org.springframework.ldap.spring-ldap-core" />
<module name="org.springframework.security.spring-security-core" />
<module name="org.springframework.security.spring-security-web" />
<module name="org.springframework.spring-context"/>
<module name="org.springframework.spring-core"/>
<module name="org.springframework.spring-jdbc"/>
<module name="org.springframework.spring-tx"/>
<module name="org.springframework.spring-webmvc"/>
<module name="com.fasterxml.jackson.core.jackson-core" />
<module name="com.fasterxml.jackson.core.jackson-databind" />
<module name="commons-fileupload" />
<module name="javax.javaee-web-api" />
<module name="jstl" />
<module name="org.apache.tiles.tiles-extras" />
<module name="org.aspectj.aspectjrt" />
<module name="org.aspectj.aspectjweaver" />
<module name="org.springframework.security.spring-security-config" />
<module name="org.springframework.security.spring-security-ldap" />
<module name="org.springframework.security.spring-security-taglibs"/>
<module name="org.springframework.spring-aop"/>
<module name="org.springframework.spring-expression"/>
<module name="org.springframework.spring-web"/>
</dependencies>
</deployment>
</jboss-deployment-structure>
Error trace