野生蝇没有在战争中找到罐子

时间:2017-11-14 11:40:59

标签: deployment jboss wildfly war ear

将耳朵变为战争后,wildfly 10无法从子部署部分找到jboss-deployment-structure.xml中的jar文件。在项目构建之后,战争中没有gui.ejb.jar,我手动将其复制到战争中。我尝试根文件夹和WEB-INF lib。请帮忙,如何解决它。

  

引起:   org.jboss.as.server.deployment.DeploymentUnitProcessingException:   WFLYSRV0166:子部署gui.ejb.jar in   找不到jboss-deployment-structure.xml。可用子   部署:at   org.jboss.as.server.deployment.module.descriptor.DeploymentStructureDescriptorParser.subDeploymentNotFound(DeploymentStructureDescriptorParser.java:288)     在   org.jboss.as.server.deployment.module.descriptor.DeploymentStructureDescriptorParser.deploy(DeploymentStructureDescriptorParser.java:190)     在   org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:147)     ......还有5个

<jboss-deployment-structure>
    <deployment>
        <exclude-subsystems>
            <subsystem name="webservices"/>
            <subsystem name="jaxrs"/>
        </exclude-subsystems>
        <exclusions>
            <module name="org.apache.commons.logging"/>
            <module name="org.apache.log4j"/>
            <module name="org.jboss.logging"/>
            <module name="org.jboss.logging.jul-to-slf4j-stub"/>
            <module name="org.jboss.logmanager"/>
            <module name="org.jboss.logmanager.log4j"/>
            <module name="org.slf4j"/>
            <module name="org.slf4j.impl"/>
            <module name="org.apache.cxf.impl"/>
            <module name="org.apache.cxf"/>
            <module name="org.apache.cxf.services-sts"/>
            <module name="org.apache.cxf.ws-security"/>
            <module name="org.apache.cxf.ws-policy"/>
            <module name="org.apache.xerces"/>
            <module name="org.apache.xalan"/>
        </exclusions>
        <dependencies>
            <module name="com.sun.xml.bind" export="true"services="export"/>
            <module name="javax.xml.ws.api" export="true"/>
            <module name="javax.jws.api" export="true"/>
            <module name="org.slf4j" export="true"/>
        </dependencies>
    </deployment>
    <sub-deployment name="gui.ejb.jar">
        <exclusions>
            <module name="org.apache.xerces"/>
            <module name="org.apache.xalan"/>
            <module name="org.slf4j"/>
            <module name="org.slf4j.impl"/>
        </exclusions>
        <dependencies>
            <module name="com.sun.xml.bind" export="true"services="export"/>
            <module name="javax.xml.ws.api" export="true" />
            <module name="javax.jws.api" export="true" />
            <module name="org.slf4j" export="true"/>
        </dependencies>
    </sub-deployment>
</jboss-deployment-structure>

1 个答案:

答案 0 :(得分:0)

WAR部署没有子部署。您可以删除<sub-deployment/>元素,它将从主要部署元素继承。

作为旁注,包含和排除org.slf4j模块看起来有点奇怪。如果您尝试使用自己的slf4j绑定,则需要将其排除,并包含slf4j-api和绑定库。