Questions tagged [spring-oxm]

46 questions
0
votes
1 answer

Jaxb2Marshaller subclasses scanning

I'm using maven-jaxb2-plugin to generate Java classes according to a WSDL. Generated Java classes are under package com.myapp.generated and for example, there is Jaxb2 generated class…
user3157855
  • 714
  • 2
  • 9
  • 24
0
votes
1 answer

Spring OXM doesn't work with Struts 1

I use Spring OXM as well as Struts 1 but without using integrating Struts with Spring IOC. This is because the application is an old one and I'm just adding a module that involves the XML binding and I have no intention to change the architecture of…
Will Sumekar
  • 1,249
  • 5
  • 16
  • 25
0
votes
1 answer

How to integrate the Jaxb2Marshaller in the Spring integration route?

Created the Jaxb2Marshaller object. Need to convert a java POJO to XML (Marshalling). Need help in integrating Jaxb2Marshaller in the Integration Route. Code flow:- @Bean public IntegrationFlow flow() throws JAXBException { return…
Amit Bhati
  • 5,569
  • 1
  • 24
  • 45
0
votes
1 answer

Jaxb Binding with List returned in web service response

I am developing a jax-ws client, I am trying to handle an ArrayList returned as a response, but i had always empty list. Returned list is NOT empty, I am sure that WebService provider is returning data in that list, I checked that using SoapUI.…
Youssefo
  • 1
  • 4
0
votes
0 answers

Jaxb2Marshaller for multiple packages with the same classes

I have 2 xsd schemas and generated java classes from them like this: org.apache.cxf cxf-xjc-plugin
dabdullin
  • 46
  • 1
  • 8
0
votes
2 answers

Why java.lang.NoSuchMethodError: org.springframework.util.ClassUtils.forName(Ljava/lang/String;)Ljava/lang/Class is thrown on Deploy operation?

Case 1:When I deploy an application with Jenkins in an environment say E1, it works successfully. App gets deployed and no errors on Jenkins console output. Case 2:When I deploy the same application with Jenkins in another environment say E2, the…
0
votes
0 answers

Same XML file name for two class of same name in different package have class cast exception

I have two package and both package have some class with same name in my project.I had successfully created XML file for class with same name using spring oxm but when i try to convert from XML to class then it shows the following error…
subash048
  • 31
  • 1
  • 1
  • 5
0
votes
1 answer

Does spring oxm creates singleton jaxbcontext?

Inside Spring OXM framework how does JAXBContext.newInstance() creates. Is it a singleton or multiple instance. My requirement is I want singleton jaxbcontext object? Please share Spring OXM details. Thanks.
Bhupati Patel
  • 1,400
  • 2
  • 13
  • 18
0
votes
2 answers

JAXB "Unexpected element" error

I'm trying to unmarshal an XML document. I generate the classes using XJC. The XSD:
manash
  • 6,985
  • 12
  • 65
  • 125
0
votes
1 answer

xstream conditionally unmarshall to a class

Because of legacy (unfortunate) reasons, we have the same xml roots for 2 different representations. With xstream, how would we let unmarshaller to use a class we need while unmarshalling. I am thinking of passing some context (through…
Stackee007
  • 3,196
  • 1
  • 26
  • 39
0
votes
1 answer

Read from multiple XMLs and write in one XML in Spring batch

I used JAXB xjc tool to generate java classes from my multiple xsd files (I used an online tool to generate xsd files from my xml files). My problem is that I don't know how to configure my context.xml to make it read all the classes (and xmls)…
Sinda MOKADDEM
  • 796
  • 2
  • 12
  • 35
0
votes
1 answer

Handling collections of domain objects in JAXB and Spring

We have a Spring Integration application which uses a JDBC poller together with a RowMapper to read from a database and output a collection of domain objects (presuming the result set returned more than one row). The domain objects are then…
user1052610
  • 4,440
  • 13
  • 50
  • 101
0
votes
1 answer

XStream JavaBeanConverter Spring config to serialize using getter

I would like to register XStream JavaBeanConverter in Spring config. I see test examples where JavaBeanConverter is registered as below. xstream.registerConverter(new JavaBeanConverter(xstream.getClassMapper(), "class"), -20); But how do I…
NewQueries
  • 4,841
  • 11
  • 33
  • 39
0
votes
1 answer

Use of Spring oxm

I am new to spring. I was looking into spring-oxm's XStreamMarshaller. I was hoping to find a way to convert my objects into xml using this. The spring site tells me clearly how to do it but it still needs me to add a XStream dependency in my POM. I…
0
votes
1 answer

Multiple marshallers/unmarshallers with Spring OXM

I have a legacy web service project that receives two different XML schemas, but with the same attribute name (including the root element). I'm using Spring, OXM and JAXB2 for marshalling/unmarshalling. I've solved a previous issue with another…
ilazgo
  • 650
  • 2
  • 11
  • 35