IBM Support

Methods to create a JAXBContext for WAS client applications

Troubleshooting


Problem

There are two methods to create a JAXBContext when the client uses JAXB: 1. Provide the list of packages that contain JAXB classes. 2. Provide a list of potential JAXB classes. The client application may be logging errors similar to the ones listed below: - JAXBUtils 1 org.apache.axis2.jaxws.message.databinding.JAXBUtils checkPackage looking for xyz/package/framework/webservice/exception/jaxb.index - JAXBUtils 1 org.apache.axis2.jaxws.message.databinding.JAXBUtils checkPackage jaxb.index file Not Found: xyz/package/framework/webservice/exception/jaxb.index - JAXBUtils 1 org.apache.axis2.jaxws.message.databinding.JAXBUtils createJAXBContextValue Package xx.bpm.framework.webservice.exception does not contain an ObjectFactory or package-info class. Searching for JAXB classes - javax.xml.bind.JAXBException: xyz.package.finxxx.xxp.webservices.xxyyzz is not known to this context" Creating a JAXBContext to make sure the package can be seen should resolve this problem.

Symptom


[{"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Web Services (for example: SOAP or UDDI or WSGW or WSIF)","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"9.0;8.5;8.0;7.0.0.27;7.0.0.25","Edition":"","Line of Business":{"code":"LOB77","label":"Automation Platform"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
03 March 2025

UID

swg21634869