我试图在Apache 12.6上使用Wildfly 26.1.1、JDK 11和JEE 8创建SOAP服务,我得到了这个错误(我以前用NetBeans 7创建了NetBeans 8.2,没有问题):
Deploying on WildFly Application Server
profile mode: false
debug mode: false
force redeploy: true
Undeploying ...
Initial deploying WebServicesSOAP to D:\Applications Servers\wildfly-26.1.1\wildfly-26.1.1.Final\standalone\deployments\webServicesSOAP-1.0.war
Completed initial distribution of WebServicesSOAP
Deploying D:\Applications Servers\wildfly-26.1.1\wildfly-26.1.1.Final\standalone\deployments\webServicesSOAP-1.0.war
"{
\"WFLYCTL0080: Failed services\" => {\"jboss.deployment.unit.\\\"webServicesSOAP-1.0.war\\\".INSTALL\" => \"WFLYSRV0153: Failed to process phase INSTALL of deployment \\\"webServicesSOAP-1.0.war\\\"
Caused by: org.jboss.wsf.spi.WSFException: JBWS024109: Could not get WSDL contract for endpoint com.sun.xml.ws.tx.coord.v11.endpoint.RegistrationPortImpl at /wsdls/wsc11/wstx-wscoor-1.1-wsdl-200702.wsdl\"},
\"WFLYCTL0412: Required services that are not installed:\" => [
\"jboss.deployment.unit.\\\"webServicesSOAP-1.0.war\\\".WeldStartService\",
\"jboss.deployment.unit.\\\"webServicesSOAP-1.0.war\\\".beanmanager\"
],
\"WFLYCTL0180: Services with missing/unavailable dependencies\" => [
\"jboss.deployment.unit.\\\"webServicesSOAP-1.0.war\\\".weld.weldClassIntrospector is missing [jboss.deployment.unit.\\\"webServicesSOAP-1.0.war\\\".beanmanager, jboss.deployment.unit.\\\"webServicesSOAP-1.0.war\\\".WeldStartService]\",
\"jboss.deployment.unit.\\\"webServicesSOAP-1.0.war\\\".batch.artifact.factory is missing [jboss.deployment.unit.\\\"webServicesSOAP-1.0.war\\\".beanmanager]\"
]
}"
发布于 2022-07-20 07:07:22
使用野生蝇BOM (又名“材料清单”),并将适当的工件作为依赖项包含在pom中:
26世界森林论坛:
https://github.com/wildfly/boms/tree/26.x
这将确保您的应用程序将使用与WF堆栈(例如杰克逊)中存在的libs完全相同的版本(,用于api和impl)。
作为另一种选择,您还可以直接导入JEE8API(提供范围):
<dependencies>
<dependency>
<groupId>jakarta.platform</groupId>
<artifactId>jakarta.jakartaee-api</artifactId>
<version>8.0.0</version>
<scope>provided</scope>
</dependency>
</dependencies>
但是,您只与API同步。
https://stackoverflow.com/questions/73044843
复制相似问题