Re: signify of {} when i create a rest Response with a List

2016-08-01 Thread John D. Ament
GenericEntity is an abstract class. You're instantiating an anonymous instance of it. On Mon, Aug 1, 2016 at 8:06 PM mauro2java2011 wrote: > I try to understand how return a collection of object as response with rest > > > > > import javax.ws.rs.core.GenericEntity; >

signify of {} when i create a rest Response with a List

2016-08-01 Thread mauro2java2011
I try to understand how return a collection of object as response with rest import javax.ws.rs.core.GenericEntity; //... @GET public Response workshops() { List workshops = ...//a list of entities GenericEntity> l ist = new

Re: [ejb][restful] Customize JSON/XML generation

2016-08-01 Thread Romain Manni-Bucau
Hi default tomee 1.7.x json provider relies on jettison. It is configurable as any JAX-RS @provider but has several pitfalls. I would recommand you to switch to either johnzon (tomee 7 default provider) adding johnzon-jaxrs dependency or jackson provider. End of this page

[ejb][restful] Customize JSON/XML generation

2016-08-01 Thread gchauvet
Hi everybody, I search a conveniant way to format an object list sended by my ejb restfull API (work with TomEE+ 1.7.4). I would like to remove the enclosing objet that contain my list; eg: { "tiers": [ { "id": 1006384, "value": 12 }, { "id": 1006385,

Re: jsp handling between catalina.sh and eclipse

2016-08-01 Thread Romain Manni-Bucau
If there is really a change it can be a tomcat one so a test can be to reproduce it on a plain tomcat and compare versions 7.0.62 and 7.0.68. In any case a testcase reproducing it will be the fastest way to get relevant support here or on tomcat bugtracker. Romain Manni-Bucau @rmannibucau

Re: Adopt tomcat 7.0.70

2016-08-01 Thread Romain Manni-Bucau
Hello Dimitar, No plan but no blocker. Do you want to work on a pull-request or patch matching your need? Romain Manni-Bucau @rmannibucau | Blog | Old Wordpress Blog | Github

Adopt tomcat 7.0.70

2016-08-01 Thread Dimitar Valov
Hello, Tomcat has a known vulnerability fixed in 7.0.70: https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-3092? Are there plans to adopt it in the 1.7.x branches? Best Regards, Dimitar

Re: jsp handling between catalina.sh and eclipse

2016-08-01 Thread Fabien R
On 01/08/16 13:41, Romain Manni-Bucau wrote: Hi Fabien You can surely debug your business logic code or foreach tag impl. Also ensure you deploy with the same context name maybe. Strange, I reverted to 1.7.2 with the same conf files and everything is OK. -- Fabien

Re: jsp handling between catalina.sh and eclipse

2016-08-01 Thread Romain Manni-Bucau
Hi Fabien You can surely debug your business logic code or foreach tag impl. Also ensure you deploy with the same context name maybe. Le 1 août 2016 13:08, "Fabien R" a écrit : > Hello, > > I'm encountering a very strange problem when running my webapp (servlet > 2.5). >

jsp handling between catalina.sh and eclipse

2016-08-01 Thread Fabien R
Hello, I'm encountering a very strange problem when running my webapp (servlet 2.5). If I use eclipse (run as -> run on server) to deploy the app and start tomee plus 1.7.4, the jsp page is displayed with the data from postgreSQL. If I use catalina.sh, the jsp page is displayed without any