gpt4 book ai didi

java - 在类路径中找不到 jaxws 前端

转载 作者:行者123 更新时间:2023-12-01 19:57:05 25 4
gpt4 key购买 nike

我每次尝试使用 wsdl2java 工具时都会出现同样的错误。任何想法非常感谢-fe jaxbs 没有帮助。看起来找不到tools-plugin.xml。

15:18:37.618 [main] DEBUG org.apache.cxf.tools.wsdlto.core.PluginLoader - Found 4 databindings in <source> plugin.
15:18:37.618 [main] DEBUG org.apache.cxf.tools.wsdlto.core.PluginLoader - Loading <source> databinding from <source> plugin.
15:18:37.619 [main] DEBUG org.apache.cxf.tools.wsdlto.core.PluginLoader - Loading <domsource> databinding from <source> plugin.
15:18:37.619 [main] DEBUG org.apache.cxf.tools.wsdlto.core.PluginLoader - Loading <staxsource> databinding from <source> plugin.
15:18:37.620 [main] DEBUG org.apache.cxf.tools.wsdlto.core.PluginLoader - Loading <saxsource> databinding from <source> plugin.
15:18:37.623 [main] ERROR com.smalik.wsdl2yamlspec.WsdlToYamlSpec - Something went wrong
org.apache.cxf.tools.common.ToolException: Could not find jaxws frontend within classpath
at org.apache.cxf.tools.wsdlto.core.PluginLoader.getFrontEnd(PluginLoader.java:254)
at org.apache.cxf.tools.wsdlto.core.PluginLoader.getFrontEndProfile(PluginLoader.java:389)
at org.apache.cxf.tools.wsdlto.WSDLToJava.loadFrontEnd(WSDLToJava.java:64)
at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:96)
at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:86)
at com.smalik.wsdl2yamlspec.WsdlToYamlSpec.getGeneratedClassLoader(WsdlToYamlSpec.java:84)
at com.smalik.wsdl2yamlspec.WsdlToYamlSpec.convert(WsdlToYamlSpec.java:53)
at com.smalik.wsdl2yamlspec.WsdlToYamlSpec.main(WsdlToYamlSpec.java:46)

java版本“1.8.0_231”

最佳答案

了解如何解决此运行问题

sudo java -cp "wsdl-to-yaml-0.0.1.jar:lib/*" com.smalik.wsdl2yamlspec.WsdlToYamlSpec

将以下 jar 添加到/lib

cxf-rt-wsdl-3.1.9.jar
cxf-tools-wsdlto-databinding-jaxb-3.1.9.jar
cxf-tools-wsdlto-frontend-jaxws-3.1.9.jar

关于java - 在类路径中找不到 jaxws 前端,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59032722/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com