Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

marshal pojos with dsl

Hello,
i would like to marshal a jaxb-annotated pojo to xml with cJavaDslProcessor but I'm not sure how to do this.
Does anybody have some suggestions?
Labels (4)
4 Replies
Anonymous
Not applicable
Author

Try .marshal().jaxb(true)
Anonymous
Not applicable
Author

Thanks for your quick reply. This ends up in this error message
class org.apache.camel.component.cxf.CxfPayload nor any of its super class is known to this context.
Anonymous
Not applicable
Author

Hi,
You need to use cConfig and add camel-jaxb-alldep.
Anonymous
Not applicable
Author

Thanks for your reply. This dependency is already included. The failure above may be a bit confusing - sorry for that. It is not the cxf payload. This happens to any class I try to marshal from like com.mypackage.car or com.mypackage.bike. But the packages are added as dependency within cConfig. I thought with adding this dependency, those classes are known by the context?
Is there something else I missed?