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.
See https://jax-ws.dev.java.net/issues/show_bug.cgi?id=837 . If you generate a WSDL file from Java sources in an EE6 web service, for the purpose of customizing the WSDL, generation fails with the messages "Could not create declaration for annotation type javax.ejb.Stateless" and "Could not create declaration for annotation type javax.ejb.EJB" JAX-WS guys say "The problem seems to because of the inconsistent behavior of apt internally used by wsgen. As per this use case, though @Stateless is used at compile time, its not in the classpath when wsgen is invoked. In this case, apt invoked programatically (through Wsgen) returns exit code as ERROR (1)" Their workaround: Pass the Java EE API jar that contains @Stateless in the wsgen classpath.
Fixed: http://hg.netbeans.org/main/rev/9886ba70be23 Thank's for reporting issue to JAX-WS guys, and following evaluation.