2014-01-13 35 views
4

請原諒我不能生成WSDL定義我的英語的Websphere 7錯誤:爲實現類

我有一個使用JAX-WS春天的應用程序,它運行在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 
{ 
... 
} 

任何想法可能會導致這個問題?如何檢查,什麼到底這裏是錯的?錯誤信息太模糊...

+0

我認爲這是環境問題。我Google搜索並找到[這些](http://www-01.ibm.com/support/docview.wss?uid=swg21590404)[問題](http://www-01.ibm.com/support/docview。 WSS?UID = swg1PM20042)。 – herry

+0

我之前看過這個頁面,我們是管理員說的,這些Fix Pack已經安裝在了。 – Alen

+0

日誌中是否有其他錯誤消息提示此問題?如果沒有,我建議與IBM開放PMR; WSWS7027E錯誤消息是不可分割的。 –

回答

1

我弄清楚,我改變了我的類,如下所示,它的工作原理。

@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 
{ 
... 
}