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 - Add javax.ejb.jar to the classpath for invoking wsgen
Summary: Add javax.ejb.jar to the classpath for invoking wsgen
Status: RESOLVED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: JAX-WS (show other bugs)
Version: 6.x
Hardware: PC Windows Vista
: P3 normal (vote)
Assignee: Milan Kuchtiak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-11 09:19 UTC by Jeffrey Rubinoff
Modified: 2010-03-11 10:47 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.