You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by "Raf D (JIRA)" <ji...@apache.org> on 2013/11/21 17:32:37 UTC
[jira] [Commented] (CMIS-420) CMIS provided JAX-WS/JAXB engine
compatibility issues when using IBM Webshere server
[ https://issues.apache.org/jira/browse/CMIS-420?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13829076#comment-13829076 ]
Raf D commented on CMIS-420:
----------------------------
It is also possible to solve this problem by putting file: jaxb.properties
With single line: javax.xml.bind.context.factory=com.sun.xml.bind.v2.ContextFactory
In package: com.sun.xml.ws.fault
somewhere with your classes.
For other solutions you can check sources of: javax.xml.bind.ContextFinder.find
http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/6-b14/javax/xml/bind/ContextFinder.java#ContextFinder.find%28java.lang.String%2Cjava.lang.String%2Cjava.lang.ClassLoader%2Cjava.util.Map%29
> CMIS provided JAX-WS/JAXB engine compatibility issues when using IBM Webshere server
> ------------------------------------------------------------------------------------
>
> Key: CMIS-420
> URL: https://issues.apache.org/jira/browse/CMIS-420
> Project: Chemistry
> Issue Type: Bug
> Components: opencmis-server
> Affects Versions: OpenCMIS 0.4.0
> Environment: Websphere 7.0
> JRE1.6
> Spring 2.5.5
> Linux
> Reporter: Krishna Penugonda
> Assignee: Florian Müller
> Priority: Critical
> Fix For: OpenCMIS 0.6.0
>
>
> We have created CMIS services as per the OpenCMIS package from Apache Chemistry. Since OpenCMIS uses the Sun JAX-WS/JAXB runtimes, we are seeing conflicts between Sun's implementation of JAX-WS and WebSphere 7's JAX-WS runtime.
> When processing SOAP faults within the OpenCMIS package, we get ClassCastExceptions where it's clear that WebSphere's JAXB implementation is being used instead of Sun's JAXB implementation. The exact error is:
> Caused by: java.lang.ClassCastException: com.ibm.xml.xlxp2.jaxb.JAXBContextImpl incompatible with com.sun.xml.bind.api.JAXBRIContext
> at com.sun.xml.ws.fault.SOAPFaultBuilder.<clinit>(SOAPFaultBuilder.java:544)
> at java.lang.J9VMInternals.initializeImpl(Native Method)
> Please help us and suggest a solution in getting these issues resolved.
> Thanks in advance.
--
This message was sent by Atlassian JIRA
(v6.1#6144)