Questions tagged [moxy]

MOXy is the object-to-XML and object-to-JSON component of EclipseLink. It is a JAXB (JSR-222) implementation with extensions for supporting: XPath based mapping, JPA entities, and infoset preservation.

MOXy is the object-to-XML and object-to-JSON component of EclipseLink. It is a JAXB (JSR-222) implementation with extensions for supporting: XPath based mapping, JPA entities, and infoset preservation.

868 questions
0
votes
1 answer

Jersey Json Array to List conversion

i want to convert a Json Array into an objects List. Json Array is something like this: { "servers": [ { "id": "616fb98f-46ca-475e-917e-2563e5a8cd19", "links": [ { "href": "http://openstack.example.com/v2/openstack/ …
asdASD
  • 161
  • 3
  • 13
0
votes
0 answers

Accepting dynamic JSON object in a jersey serice

I'm new to Java. In jersey, how can I accept a dynamic object (not bound to a class)? Example: public class MyResource extends Application { @POST public String process(??? obj) { return obj.get("dynamic_property"); } } I thought that…
Igor S.
  • 553
  • 4
  • 10
0
votes
0 answers

Equvivalent of Bookmark in JAXB

XmlBeans provides Bookmark functionality to annotate xml for additional processing. Wondering if there is support for such concept in JAXB or an extension to JAXB implementations.
Aravind Yarram
  • 78,777
  • 46
  • 231
  • 327
0
votes
2 answers

JAX-RS Client side JSON handling

I am facing an exception on the JAX-RS Client side when I am trying to test JSON data exchange. I am using Jersey 2.10, JDK1.7, Tomcat7.0. Can someone please advise what steps, with examples, that I need to undertake to make this work. I have no…
VedVrat
  • 103
  • 3
  • 12
0
votes
1 answer

Howto dig for performance problems with moxy

I'm using moxy for large structure and in 95% of cases it works like charme. It is fast and reliable. But I do have now a project with the same class structure but different data. Now I do have a big read impact. Writing the complete project needs…
Christian
  • 1,664
  • 1
  • 23
  • 43
0
votes
1 answer

Moxy marhalling issue with an array of interfaces

I have a problem when using an array of interfaces in a class that I want to marshal/unmarshal to/from JSON. Here's some example code: import javax.xml.bind.Marshaller; import javax.xml.bind.annotation.XmlAccessType; import…
muhmud
  • 4,474
  • 2
  • 15
  • 22
0
votes
0 answers

ResourceConfig will be locked when adding extension module in Jersey

I am trying to build a jax-rs web service using Jersey2.8. When I put a jar like jersey-media-json-jackson-2.8.jar or jersey-media-moxy-2.8.jar under WEB-INF/lib folder, the exception "The resource configuration is not modifiable in this context"…
user2416342
0
votes
1 answer

JSON unmarshalling with Moxy in ContainerResponseFilter

I'm using Moxy in my Jersey (2.7) project basically just to marshall my objects to JSON when the service issues a response. It works fine, but now I am also using ContainerResponseFilter to make some changes on every response issued and I am not…
nomve
  • 736
  • 4
  • 14
0
votes
1 answer

Hibernate Proxy and JAXB with SpringJersey

I have a Spring Jersey app and Hibernate at DAO tier. Because some facilities of MOXy offers for One Model Approach (read an answer of Blaise Doughan JAXb, Hibernate and beans). I use MOXy instead of JAXB which shipped with Jersey. But when I add…
Esca Tran
  • 129
  • 1
  • 3
  • 14
0
votes
1 answer

JAXB @XmlMixed and @XmlAdapter

I am trying to create an @XmlAdapter to split words in a mixed List into objects of a Wrapper class called Word. This field may also contain instances of an extension of Word called Group. The idea is that this: Some text and a group of…
gatti
  • 1,083
  • 1
  • 11
  • 25
0
votes
1 answer

How to manage several xml format with jaxb/moxy

I need to perform some calls to a backend not managed by me. The point is that they use different xml format to trasport the data. Even for the same call request and response are different: same data but different root tags. At first I tried to map…
Pirulino
  • 758
  • 1
  • 9
  • 20
0
votes
1 answer

Use binding file to set the package on a namespace?

I'm working on two large 3rd party schemas, one includes the other and generates a large number of type name collisions. If I could set the package on a namespace this problem would go away. I hoped something like
Mike Summers
  • 2,139
  • 3
  • 27
  • 57
0
votes
1 answer

There is no jersey support for @xmlheader annotation with moxy jaxb implementation

I updated jersey with glassfish update tool for glassfish 3.1.1 and tried to run it with moxy JAXB RI and got the following: WARNING: @XmlHeader annotation is not supported with this JAXB implementation. Please use JAXB RI if you need this…
kharesoft
  • 35
  • 1
  • 1
  • 8
0
votes
1 answer

JaxB inheritance marshalling abstract classes

I've been searching for the best way to perform the following action using JaxB but I cannot find a way that works. I followed the tutorial here to allow for marshaling and unmarshaling of subclasses. It achieves all that I am looking for, except…
Jake B
  • 672
  • 1
  • 9
  • 21
0
votes
1 answer

How to use restful web service with java persistence entities

How to annotate and use a java persistent object in a onetomany bidirectional relationship so that the entity can be converted to its XML representation which when taken up by a restful client can be be converted back to an entity object again
kharesoft
  • 35
  • 1
  • 1
  • 8
1 2 3
57
58