Apache CXF JAX-RS service is missing XML document start?

After lots of time invested in this problem, I found the following solution.

After lots of time invested in this problem, I found the following solution. Apache CXF is not putting the XML Document Start when it is marshaling collections, which was my case. It is kind of omission in JAXBElement provider.

I realized that everything is just fine when marshaling single objects. So the obvious solution for me was to wrap my collection in a collection object, like this: public class CollectionWrapper{ private List collection; ... } Refactoring my methods to return CollectionWrapper, rather than List did the job.

1 for sharing your solution with the community. You should also mark your own question as answer. – sra Oct 26 at 12:49.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions