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

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Unable to resolve JAXBContext

Hi,
I am trying to convert a hashtable in Talend to an XML using tjavaflex. However my job dosen't seem to recognize JAXB context. I keep getting the error, "JAXBContext cannot be resolved to a type" even after importing javax.xml.bind.JAXBContext. I made sure my job is being built using my jdk 1.6. Also currently I am using Talend community edition. Can you please suggest what could be going wrong.

Thanks.
Labels (4)
4 Replies
Anonymous
Not applicable
Author

its resolved 0683p000009MACn.png had to prefix javax.xml.bind to JAXBContext
Anonymous
Not applicable
Author

Hi aj88,
It is very interest, could you mind sharing us more details about that
prefix javax.xml.bind to JAXBContext

.
Best regards
Sabrina
Anonymous
Not applicable
Author

Hi,
I was trying to convert a hashtable to an XML, for which I had created a class in my code repository containing a method for the conversion of object to XML. In this class, I had imported javax.xml.bind.JAXBContext.
Following that, in my job, I used tjavaFlex to create an object of JAXBContext, which was going unrecognized. I hadn't prefixed it with javax.xml.bind earlier as it was already imported in the class. However it started working once I prefixed it.
Anonymous
Not applicable
Author

Hi aj88,
It is really a fantastic job, thanks for your dedication which point a light to talend users when they have the same issue.
Best regards
Sabrina