gpt4 book ai didi

java - Websphere 7 错误 : A WSDL Definition could not be generated for the implementation class

转载 作者:搜寻专家 更新时间:2023-11-01 03:38:41 24 4
gpt4 key购买 nike

对不起我的英语不好

我有一个使用 jax-wsspring 的应用程序,它在 tomcat 上运行良好,但我应该将它部署在 Websphere 7 上.

WAS7 抛出以下异常:

00000027 WSModuleDescr E WSWS7027E: JAX-WS Service Descriptions could not be correctly built because of the following error: javax.xml.ws.WebServiceException: WSWS7054E: The Web Services Description Language (WSDL) file could not be generated for the com.foo.MyEndpoint Web service implementation class because of the following error: java.lang.Exception: A WSDL Definition could not be generated for the implementation class: com.foo.MyEndpoint at com.ibm.ws.websvcs.wsdl.WASWSDLGenerator.generateWsdl(WASWSDLGenerator.java:230)

我的端点类是:

@WebService(endpointInterface = "com.foo.MyService", targetNamespace = "http://www.foo.com/xsd")
public class MyEndpoint implements MyService
{
...
}

界面是:

@WebService(portName = "MyPort", serviceName = "MyService", 
targetNamespace = "http://www.foo.com/xsd")
public interface MyService
{
...
}

知道是什么导致了这个问题吗?如何检查这里到底有什么问题?报错信息太含糊了...

最佳答案

我想通了,我像下面这样更改了我的类并且它起作用了。

@WebService(targetNamespace = "http://www.foo.com/xsd")
public interface MyService
{
...
}

和端点类:

@WebService(endpointInterface = "com.foo.MyService", targetNamespace = "http://www.foo.com/xsd")
public class MyEndpoint implements MyService
{
...
}

关于java - Websphere 7 错误 : A WSDL Definition could not be generated for the implementation class,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21093543/

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