Excuse me for my english
I have an application that uses jax-ws and spring, it work on tomcat fine, but i should deploy it on Websphere 7.
WAS7 throws the following exception:
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)
my endpoint classes are:
@WebService(endpointInterface = "com.foo.MyService", targetNamespace = "http://www.foo.com/xsd")
public class MyEndpoint implements MyService
{
...
}
and interface is:
@WebService(portName = "MyPort", serviceName = "MyService",
targetNamespace = "http://www.foo.com/xsd")
public interface MyService
{
...
}
Any idea what can cause that problem? How to check, what exactly is wrong here? The error message is too vague...
I figure out that, i changed my classes like the following and it works.
@WebService(targetNamespace = "http://www.foo.com/xsd")
public interface MyService
{
...
}
and endpoint class:
@WebService(endpointInterface = "com.foo.MyService", targetNamespace = "http://www.foo.com/xsd")
public class MyEndpoint implements MyService
{
...
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With