在WEB-INF目录下,编辑jboss-deployment-structure.xml
,添加一下内容
说明:如果没有此文件就新建
vim jboss-deployment-structure.xml
<?xml version="1.0" encoding="utf-8"?><jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2"><deployment><exclude-subsystems><subsystem name="webservices"/><subsystem name="jaxrs"/></exclude-subsystems><dependencies><module name="javax.xml.ws.api" export="true"/><module name="javax.jws.api" export="true"/></dependencies></deployment>
</jboss-deployment-structure>
vim wildfly-10.1.0.Final/standalone/configuration/standalone.xml
删除webservice部分子模块
参考:
https://m.656463.com/wenda/Wildfly10zdCXF270Webfwbs_208
https://developer.jboss.org/thread/268163
https://developer.jboss.org/thread/221654
jboss启动警告 JBAS011006: Not installing optional component org.apache.cxf.transport.http.Servlet3Cont
https://blog.csdn.net/qiumen/article/details/107792898