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

How to get EclipseLink 2.6.0-m3 working with Jersey 1.18.3

when using jersey moxy com.sun.jersey.contribs jersey-moxy 1.18.3 provided
Wolfgang Fahl
  • 15,016
  • 11
  • 93
  • 186
0
votes
1 answer

NPE when marshalling/unmarshalling JAXBElement

I have following JAXB-mapped class: @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "date_or_period_t", propOrder = { "date", "beginDate", "endDate" }) public class DateOrPeriodT implements Serializable { private final static long…
wedens
  • 1,782
  • 14
  • 18
0
votes
1 answer

StackOverflow error while creating JAXBContext using MOXy in JBoss

I am using MOXy 2.6 for producing JSON using MOXy JAXB context. at the time of creating JAXB context using jaxbContext = JAXBContextFactory.createContext(beanArray, null); i was getting below error. Please help me to solve the issue. Caused by:…
0
votes
1 answer

How to optimize HashMap JAXB output as JSF syntax

Having this JAXB Moxy definition, i want to optimize the HashMap output @XmlRootElement public class ViewElement { private Map styles; @XmlElementWrapper <---- must be removed thanks to @lexicore …
Nassim MOUALEK
  • 4,702
  • 4
  • 25
  • 44
0
votes
2 answers

EclipseLink Core 2.5.2 missing Import-Package javax.xml.bind

The EclipseLink bundle (org.eclipse.persistence/org.eclipse.persistence.core/2.5.2) is missing the import statement javax.xml.bind in its header entry of Import-Package. I get the same error described here: Glassfish 4 moxy eclipselink 2.5.2 oxm…
Herr-Herner
  • 491
  • 6
  • 22
0
votes
1 answer

JAXB marshall wrapper object with generic list

I'm implementing an Web Service using jersey and MOXy. The webservice will return the data as JSON result. I want to wrap some collections using the following wrapper class: public class PaginationWrapper { private List data; //other…
SeeM
  • 43
  • 4
0
votes
1 answer

EclipseLink MOXy: Intermittent NullPointerException / MarshalException with concurrent calls

I've got a set of JAX-RS endpoints that are accessed asynchronously from an AngularJS-based application. About the project... Apache CXF JAX-RS, Non-Spring Servlet Implementation: 2.7.7 Hibernate JPA: 4.3.5.Final EclipseLink Moxy: 2.5.1 Spring:…
Christopher Parker
  • 4,541
  • 2
  • 28
  • 33
0
votes
1 answer

Issue with unmarashalling a collection in JAXB using Jersey MOXy implementation

I have an Object which has a collection element. I am certain that it has values in the collection. When the object values are unmarshalled, I do not get any single values in the XML output. Do you think the way I have named my wrapper object is…
Grace
  • 11
  • 2
0
votes
1 answer

Why is POJO JSON mapping feature (MOXy) in Jersey not working in this simple example?

I'm trying to get very simple POJO mapping to work in a fresh application. I'm following several online examples, but nothing works. I always get Severe: MessageBodyWriter not found for media type=application/json... from GlassFish (4.0) My…
BadZen
  • 4,083
  • 2
  • 25
  • 48
0
votes
0 answers

how to use jaxb external file mapping with jaxws and weblogic

So I'm working on application based on web service (JAXWS). I use some annotations like @WebService, @WebMethod ... I deploy my application in weblogic 12.1.3 as an EAR. In my application, I have an interface that inherits from two interfaces and…
MaDar
  • 1
  • 1
0
votes
1 answer

Glassfish 4 moxy eclipselink 2.5.2 oxm object graph troubles

I'm having this issue marshaling with an oxm xml meta data defined object graph Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBElement not found by org.eclipse.persistence.core [142] at…
user993553
  • 1,077
  • 5
  • 12
0
votes
1 answer

Xpath annotation with a predicate

First, I am new in Xpath. I have found plenty of samples that queries if an element exists ,using Xpath. But I could not manage to implement the sample that I want. My xml is like: xxx yyy
Neron
  • 1,500
  • 7
  • 30
  • 52
0
votes
0 answers

Jersey and MOXy, mapping variable properties

Using Jersey and MOXy to build a RESTful client, I'm stuck on how to handle mapping to an entity/class where the JSON message has variable and unpredictable properties in it. I would love if I could simply have an entity to how a framework like…
jeremy simon
  • 601
  • 1
  • 8
  • 19
0
votes
0 answers

A cycle is detected in the object graph. This will cause an infinite loop

People, Looking for a little guidance. I am using Jersey 2.11 and generating JAXB definitions from XSD. I have a periodic exception that seems to be timing based. If I change the timing of the message sent in anyway the error does not occur. The…
Hacksaw
  • 69
  • 1
  • 13
0
votes
1 answer

Jersey declarative linking using JaxB adapter renders the link incorrectly

I was trying to follow the declarative linking example: http://search.maven.org/#search%7Cga%7C1%7Ca%3A%22declarative-linking%22 Here is my code: @InjectLink( resource = FolderResource.class, method = "query", style =…
Yuri P.
  • 389
  • 2
  • 11