5

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...

Danubian Sailor
  • 1
  • 38
  • 145
  • 223
Askar
  • 544
  • 1
  • 6
  • 17
  • I think it is enviroment issue. I googled and found [these](http://www-01.ibm.com/support/docview.wss?uid=swg21590404) [issues](http://www-01.ibm.com/support/docview.wss?uid=swg1PM20042). – herry Jan 13 '14 at 15:16
  • I saw this page before, our was administrator said, these Fix Packs already installed on was. – Askar Jan 13 '14 at 15:29
  • Are there any other error messages in the logs that hint at the problem? If not, I recommend opening a PMR with IBM; the WSWS7027E error message is inscrutible. – Brett Kail Jan 13 '14 at 18:26

2 Answers2

2

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
{
...
}
Askar
  • 544
  • 1
  • 6
  • 17
0

I just stumbled upon the same problem but with a different root cause. Hope this will save someone a headache in the future:

I used a custom annotation (@MyAnnotation) in classes that were used inside an EAR deployment. This produced the abovementioned error while deploying. After getting rid of the annotations, the error disappeared.