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.

Bug 181867

Summary: Add javax.ejb.jar to the classpath for invoking wsgen
Product: webservices Reporter: Jeffrey Rubinoff <jeff_rubinoff>
Component: JAX-WSAssignee: Milan Kuchtiak <mkuchtiak>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Windows Vista   
Issue Type: DEFECT Exception Reporter:

Description Jeffrey Rubinoff 2010-03-11 09:19:09 UTC
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.
Comment 1 Milan Kuchtiak 2010-03-11 10:47:54 UTC
Fixed:
http://hg.netbeans.org/main/rev/9886ba70be23

Thank's for reporting issue to JAX-WS guys, and following evaluation.