NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Error generating WSDL with wsgen

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
jrunkel



Joined: 04 Jun 2009
Posts: 1

PostPosted: Thu Jun 04, 2009 11:29 am    Post subject: Error generating WSDL with wsgen Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

 
Jump to:  
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 cannot attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo