Might be late to the conversation but we've had our share of headaches with WAS7 (I know you're on 8.5) when deploying any EAR/WAR application that uses JAX-WS and related dependencies, where one does *NOT* want the WAS7 stack interfering. The wording of this implies it's a server side application into WAS8.5, correct?
2 things which had helped in the past were: 1) is the WAR file carrying all the needed JARs in /WEB-INF/lib - as I recall the OpenCMIS server apps do carry the JAX-WS related JARs and associated dependencies. 2) is the classloader policy for the EAR or WAR set correctly? (I know in WAS7, an EAR file has to be used to deploy the WAR file)... is it set to *PARENT_LAST and "classloader per application" - not single classloader*. If not, we would find that "other" JARs from the IBM stack (including XML, SAAJ, and JAX-WS related classes) would get loaded from the WAS7 stack BEFORE those in our application and we'd see things ranging from "incompatible class..." to "no class def found..." types of errors. (As I recall WAS7 uses Axis2, making things even worse - I don't know about WAS8.5, much of our new platform uses straight Tomcat now making things far easier to track down) *HTH* *Mark* On Thu, Jul 3, 2014 at 1:22 PM, Alex Devasia <deva...@yahoo.com.invalid> wrote: > Thanks Florian. I am using WebSphere version 8.5. The attached doc has > stack traces. There are 3 scenarios -- > 1. without xerces & jaxp > 2. with xerces > 3. with jaxp > > The 3rd option looks the most promising. > > Thanks again > Alex > > On Thursday, July 3, 2014 9:01 PM, Florian Müller <f...@apache.org> > wrote: > > > Hi Alex, > > Which WebSphere version you are using? Which Xerces/JAXP versions are you > adding? > Can you provide stack traces of the exceptions that OpenCMIS throws? > > - Florian > > > > > Hello, > > > > When deploying an open CMIS server framework based application on > Websphere, I > > need to include either xerces or jaxp to get around a similar problem as > the > > one discussed here -- The Standard Implementation for JAX-WS: > > us...@jax-ws.java.net: Archive — Project Kenai > > > > The Standard Implementation for JAX-WS: users@jax-ws.... > > Use Advanced Search to search the entire archive. Re: Please help > > java.lang.NoClassDefFoundError: > > com.sun.org.apache.xerces.internal.dom.DocumentIm... > > View on java.net Preview by Yahoo > > > > > > I guess SAAJ api's internally depend on Sun's xerces implementation. > > > > However, including xerces causes a conflict with open CMIS ( Error: > > javax.xml.parsers.DocumentBuilderFactory.setFeature) > > whereas including JAXP based on the link above seems to cause problems > with > > getRepositories specifically when using the atompub protocol. > > > > Based on my understanding then SAAJ needs to have a xerces impl from Sun > on > > Websphere. However both xerces or JAXP seem to conflict with open CMIS. > > > > Any recommendations on how this could be resolved? > > > > Thanks > > Alex > > >