Re: Johnzon is going to infinite loop on JPA entities with OneToMany relationship

2018-07-19 Thread Mark Struberg
Oh, I just noticed that we also backported this to Johnzon-1.0.1 [1]. So you better use this as you don't need to bother with upgrading the json-p spec to 1.1. LieGrue, strub [1] https://github.com/apache/johnzon/blob/maintenance_1.0.x/johnzon-jsonb/src/main/java/org/apache/johnzon/jsonb/John

Re: Johnzon is going to infinite loop on JPA entities with OneToMany relationship

2018-07-19 Thread Mark Struberg
Sadly there is no common handling for this in the current spec. I've already created a ticket [1], but this will only be available as of JakartaEE9. You should be able to swap out Johnzon-1.0.x with 1.1.8. Then use the following JsonbConfig and set "johnzon.deduplicateObjects" to true. Happy t

Re: Johnzon is going to infinite loop on JPA entities with OneToMany relationship

2018-07-19 Thread Romain Manni-Bucau
1.1 supports reference handling but not the 1.0 of tomee 7. Le jeu. 19 juil. 2018 19:17, Matthew Broadhead a écrit : > JAXB used to use @XmlInverseReference annotation. is there no such > johnzon annotation? @JohnzonIgnore is more like @Transient? > > On 19/07/18 17:10, Romain Manni-Bucau wrot

Re: Johnzon is going to infinite loop on JPA entities with OneToMany relationship

2018-07-19 Thread Matthew Broadhead
JAXB used to use @XmlInverseReference annotation.  is there no such johnzon annotation?  @JohnzonIgnore is more like @Transient? On 19/07/18 17:10, Romain Manni-Bucau wrote: Hi Sudhakar, Ensure you have a @JohnzonIgnore on one side to avoid a loop. Romain Manni-Bucau @rmannibucau

Re: TomEE Plume 7.0.4/JDBC resource config/unused property

2018-07-19 Thread Romain Manni-Bucau
Actually JDBCDriver expects a Driver implementation, OracleXADataSource is a datasource implementation. We tolerate it but in this case you must also configure the underlying datasource instance. More on http://tomee.apache.org/admin/configuration/resources.html and http://tomee.apache.org/datasou

Re: TomEE Plume 7.0.4/JDBC resource config/unused property

2018-07-19 Thread maciejka
I am quite new to TomEE and maybe thats why I dont understand Your point. You wrote 'you didnt set oracle driver as jdbcdriver' Isn't below configuration setting oracle driver as jdbcdriver? : *jdbcDriver=oracle.jdbc.xa.client.OracleXADataSource * ... You wrote 'you must configure the data

Re: TomEE stderr and stdout

2018-07-19 Thread Romain Manni-Bucau
Le jeu. 19 juil. 2018 à 17:05, maciejka a écrit : > I start TomEE, deploy my app, and invoke rest endpoint: > Example: > > @GET > @Path("/all") > @Produces(MediaType.APPLICATION_JSON + "; charset=UTF-8") > @StringifyJSON > public Service getAll(@DefaultValue("false") > @QueryParam(CompressJsonFil

Re: Johnzon is going to infinite loop on JPA entities with OneToMany relationship

2018-07-19 Thread Romain Manni-Bucau
Hi Sudhakar, Ensure you have a @JohnzonIgnore on one side to avoid a loop. Romain Manni-Bucau @rmannibucau | Blog | Old Blog | Github | LinkedIn

Re: TomEE stderr and stdout

2018-07-19 Thread maciejka
I start TomEE, deploy my app, and invoke rest endpoint: Example: @GET @Path("/all") @Produces(MediaType.APPLICATION_JSON + "; charset=UTF-8") @StringifyJSON public Service getAll(@DefaultValue("false") @QueryParam(CompressJsonFilter.PRETTY) boolean pretty) { logger.debug("GET ServicesAll wi

Johnzon is going to infinite loop on JPA entities with OneToMany relationship

2018-07-19 Thread sudhakarvm
I am facing problem while json is generated from my JPA model object using default JSON provider Johnzon. This JPA entity class B has @ManyToOne relationship with other entity A. Since A also includes B as @OneToMany member with List datatype. Because of this Johnzon is going in infinite loop to pr

Re: TomEE stderr and stdout

2018-07-19 Thread Romain Manni-Bucau
Hi, no it is still used but if you rely on "run" command this is totally ignored since you own the shell in this case. Romain Manni-Bucau @rmannibucau | Blog | Old Blog | Github

Re: TomEE Plume 7.0.4/JDBC resource config/unused property

2018-07-19 Thread Romain Manni-Bucau
Hi Basically the tests " Password=xxx, Password xxx, password=xxx, passWord xxx" are all the same since we are not case sensitive. However you didnt set oracle driver as jdbcdriver so our pool configuration is bypassed by default and we use the oracle datasource as main configuration for the

TomEE Plume 7.0.4/JDBC resource config/unused property

2018-07-19 Thread maciejka
Hello and welcome I am using 'apache-tomee-plume-7.0.4' with java version '1.8.0_152' on 'Linux debian 3.16.0-4-amd64' I have basic problem with datasource configuration. My datasource is configured like (tried various configurations - Password=xxx, Password xxx, password=xxx, passWord xxx)

Re: TomEE stderr and stdout

2018-07-19 Thread maciejka
Hello In my webapp I have statement: System.out.println("Some message"); When I invoke Rest endpoint this is not printed neither in default catalina.out log nor in file pointed by CATALINA_OUT. Are 'System.out.println' statements diabled or redirected to /dev/null ? How to enable them? TomEE 7

Re: java.lang.ClassCastException: org.apache.xml.dtm.ref.DTMManagerDefault cannot be cast to org.apache.xml.dtm.DTMManager

2018-07-19 Thread Jean-Louis Monteiro
Great! Thanks for the follow up -- Jean-Louis Monteiro http://twitter.com/jlouismonteiro http://www.tomitribe.com On Wed, Jul 18, 2018 at 1:44 PM, Matthew Broadhead < matthew.broadh...@nbmlaw.co.uk.invalid> wrote: > ok i fixed that. it was just a null attribute causing the problem. so > everyth