wildfly遇坑记

阅读更多
1.启动项目报错:(反正就是cxf重复问题, 叫排除wildfly自带的cxf)
 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
内容为:


    
  
     
        
            
        
    



2.改变rootPath
在WEB-INF下面添加文件:jboss-web.xml
内容为:

  
   /  



3.jsp热部署
standalone.xml中改

      



4.服务器改成支持外网访问
在standalone.xml文件中找到

            


在这个下面加入
 
            
 

另外把1改成2



2

你可能感兴趣的:(wildfly遇坑记)