org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYWS0059: Apache CXF library (cxf-api-2.6.1.jar) detected in ws endpoint deployment; either provide a proper deployment replacing embedded libraries with container module dependencies or disable the webservices subsystem for the current deployment adding a proper jboss-deployment-structure.xml descriptor to it. The former approach is recommended, as the latter approach causes most of the webservices Java EE and any JBossWS specific functionality to be disabled."}}
解决办法:
在WEB-INF下面添加文件:jboss-deployment-structure.xml
内容为:
<?xml version="1.0" encoding="UTF-8"?> <jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2"> <deployment> <!-- exclude-subsystem prevents a subsystems deployment unit processors running on a deployment --> <!-- which gives basically the same effect as removing the subsystem, but it only affects single deployment --> <exclude-subsystems> <subsystem name="webservices" /> </exclude-subsystems> </deployment> </jboss-deployment-structure>
2.改变rootPath
在WEB-INF下面添加文件:jboss-web.xml
内容为:
<?xml version="1.0" encoding="UTF-8"?> <jboss-web> <context-root>/</context-root> </jboss-web>
3.jsp热部署
standalone.xml中改
<servlet-container name="default"> <jsp-config development="true"/> </servlet-container>
4.服务器改成支持外网访问
在standalone.xml文件中找到
<interface name="public"> <inet-address value="${jboss.bind.address:127.0.0.1}"/> </interface>
在这个下面加入
<interface name="any"> <any-ipv4-address/> </interface>
另外把1改成2
1
<socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">
2
<socket-binding-group name="standard-sockets" default-interface="any" port-offset="${jboss.socket.binding.port-offset:0}">