This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
The hint is that a @WebService class must be used with the @Stateless annotation and it does not accept @Singleton. the compiler and deployement into glassfish work as expected. see test documented on stack overflow: http://stackoverflow.com/questions/7004258/how-to-create-a-singleton-bean-that-implements-a-webservice
Created attachment 109951 [details] screenshot of incorrect suggestion in nb 7.0 editor and also occurs in nb 6.9.1
Right, it seems that it's possible to create singleton web service: http://download.oracle.com/javaee/6/tutorial/doc/gipjg.html Fixed in web-main #7beb5fa2dcf7.
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/7beb5fa2dcf7 User: Martin Fousek <marfous@netbeans.org> Log: #200911 - nb 7.0 editor will mark a webservice and Singleton class as an error
Created attachment 132298 [details] @Singleton error
This BUG reproduces on NetBeans IDE 7.2.1 (Build 201210100934). The behavior that I'm seeing is this: 1) I have a @WebService with @Stateless. 2) I change the @Stateless to @Singleton and I get the attached prinscreen after saving the file.
Created attachment 132316 [details] screenshot from dev build Sorry, I'm not able to reproduce your issue in the latest build. Take a look on my attached screenshot. Please, could you download and re-try it in the NetBeans 7.3? If your issue remains, please could you attach your 'helloservice' project?
I'm re-closing the issue as fixed again since the fix works well to me. treaz please if you are facing issues in the latest builds please reopen this issue with sample project for reproducing or raise a new issue for that. Thanks a lot.