[jira] [Commented] (TOMEE-1825) allow to configure converters for johnzon jaxrs provider

2017-11-17 Thread Romain Manni-Bucau (JIRA)

[ 
https://issues.apache.org/jira/browse/TOMEE-1825?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16256974#comment-16256974
 ] 

Romain Manni-Bucau commented on TOMEE-1825:
---

[~modest...@gmail.com] yes

> allow to configure converters for johnzon jaxrs provider
> 
>
> Key: TOMEE-1825
> URL: https://issues.apache.org/jira/browse/TOMEE-1825
> Project: TomEE
>  Issue Type: Improvement
>Reporter: Romain Manni-Bucau
>Assignee: Romain Manni-Bucau
> Fix For: 7.0.1
>
>
> org.apache.openejb.server.cxf.rs.johnzon.TomEEConfigurableJohnzon extends 
> johnzon one and has converter (single), converters (collection:$ref1,$ref2) 
> an adapter/adatpers setters



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (TOMEE-1825) allow to configure converters for johnzon jaxrs provider

2017-11-17 Thread Andre Rodrigues (JIRA)

[ 
https://issues.apache.org/jira/browse/TOMEE-1825?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16256970#comment-16256970
 ] 

Andre Rodrigues commented on TOMEE-1825:


Thank you Ramain Manni-Bucau.

The problem was that TomEE 7.0.3 uses Johnzon version 1.0.0 and I was using 
version 1.1.4.
So, I did the following:
1) I removed johnzon-*-1.0.0.jar files from TomEE libs dir;
2) I copied johnzon-*-1.1.4.jar, geronimo-jsonb_1.0_spec-1.0.jar and 
geronimo-json_1.1_spec-1.0.jar to TomEE libs dir.

After that every thing worked, except the new attribute 'deduplicateObjects'... 
and I think that's beacuse the method 'setDeduplicateObjects' in 
'ConfigurableJohnzonProvider' should return 'void' insted of 'MapperBuilder'. 
Am I corret?

Thanks very much.


> allow to configure converters for johnzon jaxrs provider
> 
>
> Key: TOMEE-1825
> URL: https://issues.apache.org/jira/browse/TOMEE-1825
> Project: TomEE
>  Issue Type: Improvement
>Reporter: Romain Manni-Bucau
>Assignee: Romain Manni-Bucau
> Fix For: 7.0.1
>
>
> org.apache.openejb.server.cxf.rs.johnzon.TomEEConfigurableJohnzon extends 
> johnzon one and has converter (single), converters (collection:$ref1,$ref2) 
> an adapter/adatpers setters



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (TOMEE-1825) allow to configure converters for johnzon jaxrs provider

2017-11-16 Thread Romain Manni-Bucau (JIRA)

[ 
https://issues.apache.org/jira/browse/TOMEE-1825?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16256505#comment-16256505
 ] 

Romain Manni-Bucau commented on TOMEE-1825:
---

1. failOnUnknownProperties is not in johnzon in this version AFAIK
2. other things should work, just to check, can you try 
adapters=collection:$instantAdapter ?

> allow to configure converters for johnzon jaxrs provider
> 
>
> Key: TOMEE-1825
> URL: https://issues.apache.org/jira/browse/TOMEE-1825
> Project: TomEE
>  Issue Type: Improvement
>Reporter: Romain Manni-Bucau
>Assignee: Romain Manni-Bucau
> Fix For: 7.0.1
>
>
> org.apache.openejb.server.cxf.rs.johnzon.TomEEConfigurableJohnzon extends 
> johnzon one and has converter (single), converters (collection:$ref1,$ref2) 
> an adapter/adatpers setters



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (TOMEE-1825) allow to configure converters for johnzon jaxrs provider

2017-11-16 Thread Andre Rodrigues (JIRA)

[ 
https://issues.apache.org/jira/browse/TOMEE-1825?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16256013#comment-16256013
 ] 

Andre Rodrigues commented on TOMEE-1825:


First of all, thank you very much for your atention.

I tried the follow: 
a) Removed the 'accessModeName' property;
b) used 'accessModeName = method'
c) used 'accessModeName = both'

None of them worked.

Even the property 'failOnUnknownProperties' that already exist in 
ConfigurableJohnzonProvider is marked as unused as shown below:

# org.apache.openejb.assembler.classic.Assembler.unusedProperty *unused 
property 'adapter'* for resource 'johnzon'
# org.apache.openejb.assembler.classic.Assembler.unusedProperty *unused 
property 'failOnUnknownProperties'* for resource 'johnzon'

Any idea of what could be wrong?

Enviroment:
TomEE 7.0.3
Johnzon 1.1.4


> allow to configure converters for johnzon jaxrs provider
> 
>
> Key: TOMEE-1825
> URL: https://issues.apache.org/jira/browse/TOMEE-1825
> Project: TomEE
>  Issue Type: Improvement
>Reporter: Romain Manni-Bucau
>Assignee: Romain Manni-Bucau
> Fix For: 7.0.1
>
>
> org.apache.openejb.server.cxf.rs.johnzon.TomEEConfigurableJohnzon extends 
> johnzon one and has converter (single), converters (collection:$ref1,$ref2) 
> an adapter/adatpers setters



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (TOMEE-1825) allow to configure converters for johnzon jaxrs provider

2017-11-16 Thread Romain Manni-Bucau (JIRA)

[ 
https://issues.apache.org/jira/browse/TOMEE-1825?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16255969#comment-16255969
 ] 

Romain Manni-Bucau commented on TOMEE-1825:
---

AccesMode is field in your example so accessors are ignored.

> allow to configure converters for johnzon jaxrs provider
> 
>
> Key: TOMEE-1825
> URL: https://issues.apache.org/jira/browse/TOMEE-1825
> Project: TomEE
>  Issue Type: Improvement
>Reporter: Romain Manni-Bucau
>Assignee: Romain Manni-Bucau
> Fix For: 7.0.1
>
>
> org.apache.openejb.server.cxf.rs.johnzon.TomEEConfigurableJohnzon extends 
> johnzon one and has converter (single), converters (collection:$ref1,$ref2) 
> an adapter/adatpers setters



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (TOMEE-1825) allow to configure converters for johnzon jaxrs provider

2017-11-16 Thread Andre Rodrigues (JIRA)

[ 
https://issues.apache.org/jira/browse/TOMEE-1825?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16255882#comment-16255882
 ] 

Andre Rodrigues commented on TOMEE-1825:


I forgot to say that I´m using TomEE 7.0.3

> allow to configure converters for johnzon jaxrs provider
> 
>
> Key: TOMEE-1825
> URL: https://issues.apache.org/jira/browse/TOMEE-1825
> Project: TomEE
>  Issue Type: Improvement
>Reporter: Romain Manni-Bucau
>Assignee: Romain Manni-Bucau
> Fix For: 7.0.1
>
>
> org.apache.openejb.server.cxf.rs.johnzon.TomEEConfigurableJohnzon extends 
> johnzon one and has converter (single), converters (collection:$ref1,$ref2) 
> an adapter/adatpers setters



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (TOMEE-1825) allow to configure converters for johnzon jaxrs provider

2017-11-16 Thread Andre Rodrigues (JIRA)

[ 
https://issues.apache.org/jira/browse/TOMEE-1825?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16255881#comment-16255881
 ] 

Andre Rodrigues commented on TOMEE-1825:


Some one can help?

1)
TomEEConfigurableJohnzon is not recognizing adapter, converter,..., setters;
LOG: org.apache.openejb.assembler.classic.Assembler.unusedProperty unused 
property 'adapter' for resource 'johnzon'.

2) When using TomEEConfigurableJohnzon, Johnzon annotations stops working, 
e.g.: @JohnzonIgnore.

Configs:
WEB-INF/resources.xml:


# 1M
maxSize = 1048576
bufferSize = 1048576
ignores = org.apache.cxf.jaxrs.ext.multipart.MultipartBody
accessModeName = field
failOnUnknownProperties = false

adapter = $instantAdapter




So, Why is it not recognizing adapter setter?

> allow to configure converters for johnzon jaxrs provider
> 
>
> Key: TOMEE-1825
> URL: https://issues.apache.org/jira/browse/TOMEE-1825
> Project: TomEE
>  Issue Type: Improvement
>Reporter: Romain Manni-Bucau
>Assignee: Romain Manni-Bucau
> Fix For: 7.0.1
>
>
> org.apache.openejb.server.cxf.rs.johnzon.TomEEConfigurableJohnzon extends 
> johnzon one and has converter (single), converters (collection:$ref1,$ref2) 
> an adapter/adatpers setters



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)