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 177679

Summary: REST from Entity Classes wizard generates classes that cannot be compiled.
Product: webservices Reporter: Milan Kuchtiak <mkuchtiak>
Component: RESTAssignee: Milan Kuchtiak <mkuchtiak>
Status: VERIFIED FIXED    
Severity: normal CC: jeff_rubinoff, pjiricka
Priority: P2    
Version: 6.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description Milan Kuchtiak 2009-11-26 07:49:51 UTC
Note: this is related to JavaEE6 web project with Spring framework enabled.

The wizard is generating code with @com.sun.jersey.api.spring.Autowire annotation, that is missing on classpath.

The workaround is either adding jersey-spring.jar manually to restlib-gfv3ee6 library, or add entire Jersey 1.1 library to project classpath

The fix is easy - just extend the restlib-gfv3ee6 for jersey-spring.jar.
Comment 1 Milan Kuchtiak 2010-01-06 04:10:25 UTC
Fixed.

Details:
http://hg.netbeans.org/main/rev/100e662adc7c

See also another issue related to Spring and REST: issue 179216
Comment 2 Quality Engineering 2010-01-06 23:38:03 UTC
Integrated into 'main-golden', will be available in build *201001070200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/100e662adc7c
User: mkuchtiak@netbeans.org
Log: #177679: add jersey-spring.jar to classpath
Comment 3 Jaroslav Pospisil 2010-05-20 12:23:41 UTC
v.