NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
jrunkel
Joined: 04 Jun 2009 Posts: 1
|
Posted: Thu Jun 04, 2009 11:29 am Post subject: Error generating WSDL with wsgen |
|
|
Hi there,
I set up a Enterprise Application and created the following Webservice in the EJB project:
| Code: |
package my.webservices;
import javax.ejb.Stateless;
import javax.jws.WebParam;
import javax.jws.WebService;
import javax.jws.WebMethod;
@WebService()
@Stateless()
public class MyWebService {
@WebMethod(operationName = "addition")
public int addition(@WebParam(name = "a") int a, @WebParam(name = "b") int b) {
return a+b;
}
}
|
The problem is when I try to generate the WSDL via the context menu entry in the project tree I get the following error in the output:
| Code: |
...
wsgen-MyWebService
error: Could not create declaration for annotation type javax.ejb.Stateless
...
|
How can I fix this?
I'm using NetBeans IDE 6.5.1.
Thanks for your help!
Johannes |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|