Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

jax-rs RESTful web service with Glassfish

BeRootsJul 8 2016 — edited Apr 12 2018

Hi everybody

I have buid a RESTful web service with using jax-rs. Its a simple RESTful that returns an entity from a database. This entity is a simple user (id ; email ; password ; adress ; ...). Everything works well and if i call url http://localhost:8080/myNetBeansProject/user i have an xml with all user in the table


I would like to create another @GET method from path "email" to return just the user email list. It is possible from the same entity ?

I have a 500 internal server error with this code and i have no error in the glassfish output:
http://pastebin.com/KDeunQ24


The problem is with the findAllEmail namedQuery (line 38), call in the AbstractFacade.java (line 275) and fired by the method @GET findAllEmail() (line 334).

The full project: https://github.com/BeRoots/WebServiceREST


If you have any issue for this problem

Thank in advance...

Ce message a été modifié par : 80af4bb6-a969-4405-86f7-d48ebf72e06c

Ce message a été modifié par : Deschamps Sébastien

This post has been answered by eudriscabrera-JavaNet on Aug 29 2016
Jump to Answer

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Sep 26 2016
Added on Jul 8 2016
1 comment
876 views