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 228697 - Unreachable REST services from database in Maven project
Summary: Unreachable REST services from database in Maven project
Status: VERIFIED DUPLICATE of bug 228740
Alias: None
Product: webservices
Classification: Unclassified
Component: REST (show other bugs)
Version: 7.3.1
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: David Konecny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-18 10:34 UTC by Jiri Skrivanek
Modified: 2013-04-23 09:53 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 Jiri Skrivanek 2013-04-18 10:34:53 UTC
It is not possible to reach REST services from database created in Maven project. To reproduce:

- create Maven web project (GlassFish 4, Java EE 7)
- open new file wizard
- choose "Web Services|RESTful Web Services from Database" and click Next
- select jdbc/sample data source
- add all 7 tables
- click Next
- provide valid package name and click Next
- click Finish
- run project and wait until it is deployed
- right-click any of created web services and choose "Test Resource Uri" but it fails

Product Version: NetBeans IDE Dev (Build web-main-javaee7-240-on-20130418)
Java: 1.7.0_17; Java HotSpot(TM) 64-Bit Server VM 23.7-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_17-b02
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
Comment 1 David Konecny 2013-04-23 01:31:39 UTC
What error did you get in GlassFish log? I'm getting

SEVERE:   WebModule[/mavenproject4]StandardWrapper.Throwable
java.lang.IllegalStateException: Error when configuring to use the EJB interceptor binding API. JAX-RS EJB integration can not be supported.

and that one is caused by the fact that classes are missing - it is a different manifestation of issue 228740. Applying workaround from 228740 makes the REST from Maven works.

*** This bug has been marked as a duplicate of bug 228740 ***