Will update tomorrow but you can upgrade johnzon in tomee maven plugins if
you use them.
Le 28 janv. 2016 22:39, "Steve Goldsmith" <[email protected]> a écrit :

> Should I switch back to snapshot?
>
> On Thu, Jan 28, 2016 at 4:19 PM, Romain Manni-Bucau <[email protected]
> >
> wrote:
>
> > https://issues.apache.org/jira/plugins/servlet/mobile#issue/JOHNZON-54
> >
> > Not sure why we didnt upgraded before but M2 will use 0.9-2 or -3 if
> > released.
> > Le 28 janv. 2016 21:51, "Romain Manni-Bucau" <[email protected]> a
> > écrit :
> >
> > > Johnzon should support it OOTB - would need to check but think we have
> > > tests for that - but maybe M1 got an old version or your instance got
> > > instrumented somehow.
> > >
> > > Whatever version it is you can extend EnumConverter and set it through
> > > @JohnzonConverter as a workaround.
> > > Le 28 janv. 2016 21:11, "sgjava" <[email protected]> a écrit :
> > >
> > >> Using TomEE 7.0.0M1 with JAX-RS service that returns a list of objects
> > >> that
> > >> has a list of enums. The enums are returned as "declaringClass":
> > >> "com.someplace.SomeClass" instead of the list of values:
> > >>
> > >> "recordedEventAttributes": {
> > >>                     "actualDuration": 1800,
> > >>                     "actualStartTime": 0,
> > >>                     "contentRating": "TV_PG",
> > >>                     "estimatedDeletionTime": -1,
> > >>                     "eventFlags": [{
> > >>                             "declaringClass":
> "com.someplace.SomeClass"
> > >>                         }, {
> > >>                             "declaringClass":
> "com.someplace.SomeClass"
> > >>                         }, {
> > >>                             "declaringClass":
> "com.someplace.SomeClass"
> > >>                         }],
> > >>                     "saveUntil": "UNTIL_SPACE_NEEDED",
> > >>                     "starRating": "NOT_RATED"
> > >>                 }
> > >>
> > >> But if I add:
> > >>
> > >>         <dependency>
> > >>             <groupId>com.fasterxml.jackson.jaxrs</groupId>
> > >>             <artifactId>jackson-jaxrs-json-provider</artifactId>
> > >>             <version>2.6.4</version>
> > >>
> > >>         </dependency>
> > >>
> > >> It works:
> > >>
> > >> "recordedEventAttributes": {
> > >>                     "actualDuration": 1800,
> > >>                     "actualStartTime": 0,
> > >>                     "contentRating": "TV_PG",
> > >>                     "estimatedDeletionTime": -1,
> > >>                     "eventFlags": ["STEREO", "NEW_RELEASE", "HDTV",
> > >> "CLOSED_CAPTIONED"],
> > >>                     "saveUntil": "UNTIL_SPACE_NEEDED",
> > >>                     "starRating": "NOT_RATED"
> > >>                 }
> > >>
> > >> My question is shouldn't Johnzon handle this? Why doesn't this work in
> > >> TomEE
> > >> out of the box?
> > >>
> > >>
> > >>
> > >>
> > >>
> > >> --
> > >> View this message in context:
> > >>
> >
> http://tomee-openejb.979440.n4.nabble.com/Jackson-required-to-marshal-correctly-tp4677540.html
> > >> Sent from the TomEE Users mailing list archive at Nabble.com.
> > >>
> > >
> >
>
>
>
> --
> Steven P. Goldsmith
>

Reply via email to