Return-Path: X-Original-To: apmail-chemistry-dev-archive@www.apache.org Delivered-To: apmail-chemistry-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E65661043F for ; Wed, 9 Jul 2014 14:08:54 +0000 (UTC) Received: (qmail 44402 invoked by uid 500); 9 Jul 2014 14:08:54 -0000 Delivered-To: apmail-chemistry-dev-archive@chemistry.apache.org Received: (qmail 44343 invoked by uid 500); 9 Jul 2014 14:08:54 -0000 Mailing-List: contact dev-help@chemistry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@chemistry.apache.org Delivered-To: mailing list dev@chemistry.apache.org Received: (qmail 44332 invoked by uid 99); 9 Jul 2014 14:08:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jul 2014 14:08:54 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [87.230.106.24] (HELO vwp1524.webpack.hosteurope.de) (87.230.106.24) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jul 2014 14:08:49 +0000 Received: from app07.ox.hosteurope.de ([92.51.170.14]); authenticated by vwp1524.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.0:RSA_ARCFOUR_MD5:16) id 1X4sXq-0006ue-2z; Wed, 09 Jul 2014 16:08:26 +0200 Date: Wed, 9 Jul 2014 16:08:26 +0200 (CEST) From: =?UTF-8?Q?Florian_M=C3=BCller?= Reply-To: =?UTF-8?Q?Florian_M=C3=BCller?= To: Alex Devasia , dev@chemistry.apache.org Message-ID: <852724334.18075.1404914906081.open-xchange@app07.ox.hosteurope.de> In-Reply-To: <1404815009.56087.YahooMailNeo@web120001.mail.ne1.yahoo.com> References: <1404400144.16121.YahooMailNeo@web120002.mail.ne1.yahoo.com> <630076642.14466.1404401441359.open-xchange@app08.ox.hosteurope.de> <1404408121.77010.YahooMailNeo@web120003.mail.ne1.yahoo.com> <913556759.15252.1404482025630.open-xchange@app08.ox.hosteurope.de> <1404485333.13523.YahooMailNeo@web120005.mail.ne1.yahoo.com> <755920290.15285.1404486134972.open-xchange@app08.ox.hosteurope.de> <1404815009.56087.YahooMailNeo@web120001.mail.ne1.yahoo.com> Subject: Re: open CMIS server framework 0.11 - WebSphere deployment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Priority: 3 Importance: Medium X-Mailer: Open-Xchange Mailer v7.4.2-Rev25 X-bounce-key: webpack.hosteurope.de;fmui@apache.org;1404914929;ed4216e5; X-Virus-Checked: Checked by ClamAV on apache.org Hi Alex, I guess you need two packages. Unfortunately, whenever it gets a bit more complex, all application servers need some special treatment. - Florian > The AtomPub issue shows up only in Tomcat.=C2=A0 >=20 > I would like to use the same packaged web application for WebSphere and > Tomcat. When the 1.4x jaxp-api.jar and jaxp-ri.jar are included in > WEB-INF/lib, the workbench throws that exception. When the 2 jars aren't > included in the Tomcat deployment, the workbench client works fine. >=20 > Thanks =C2=A0 >=20 >=20 > On Friday, July 4, 2014 8:32 PM, Florian M=C3=BCller wr= ote: >=20 >=20 >=20 > Hi Alex, >=20 > Are you running the Workbench also with the IBM JDK? > If not, then that it is not a Workbench issue. The jaxp library has nothi= ng to > do with the AtomPub parsing on the client side. >=20 > Does your server return extensions? If so, do they all have a namespace? >=20 >=20 > - Florian >=20 >=20 >=20 > > Hi Florian, > >=20 > > I think you are right. I do need jaxp 1.4.2. The AtomPub issue seems to= be > > specific to the workbench client only. I tested with a few other client= s and > > they seem to work ok. Adding jaxp on the server's classpath maybe alter= ing > > the > > xml response which causes workbench to throw this exception? =C2=A0 > > Do we need a JIRA for this? > >=20 > > Thanks > > Alex > >=20 > >=20 > > On Friday, July 4, 2014 7:23 PM, Florian M=C3=BCller = wrote: > >=20 > >=20 > >=20 > > Hi Alex, > >=20 > > I think you need the jaxp-ri version 1.4.2 on the server. > > The AtomPub issue is probably something different. It might be an issue= with > > the > > StAX implementation. > > Please follow Marks recommendation and make sure that your classloader > > configuration is set to PARENT_LAST. > >=20 > > - Florian > >=20 > >=20 > >=20 > > > Thanks Florian. I am using WebSphere version 8.5. The attached doc ha= s > > > stack > > > traces. There are 3 scenarios --=C2=A0 > > > 1. without xerces & jaxp > > > 2. with xerces > > > 3. with jaxp > > >=20 > > > The 3rd option looks the most promising. > > >=20 > > > Thanks again > > > Alex > > >=20 > > >=20 > > > On Thursday, July 3, 2014 9:01 PM, Florian M=C3=BCller wrote: > > >=20 > > >=20 > > >=20 > > > Hi Alex, > > >=20 > > > Which WebSphere version you are using? Which Xerces/JAXP versions are= you > > > adding? > > > Can you provide stack traces of the exceptions that OpenCMIS throws? > > >=20 > > > - Florian > > >=20 > > >=20 > > >=20 > > > > Hello, > > > >=20 > > > > When deploying an open CMIS server framework based application on > > > > Websphere, > > > > I > > > > need to include either xerces or jaxp to get around a similar probl= em as > > > > the > > > > one discussed here --=C2=A0The Standard Implementation for JAX-WS: > > > > users@jax-ws.java.net: Archive =E2=80=94 Project Kenai > > > >=20 > > > >=C2=A0 =C2=A0 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=C2=A0java.net Preview by Yahoo > > > >=20 > > > >=20 > > > > I guess SAAJ api's internally depend on Sun's xerces implementation= . > > > >=20 > > > > However, including xerces causes a conflict with open CMIS (=C2=A0E= rror: > > > > javax.xml.parsers.DocumentBuilderFactory.setFeature) > > > > whereas including JAXP based on the link above seems to cause probl= ems > > > > with > > > > getRepositories specifically when using the atompub protocol. > > > >=20 > > > > Based on my understanding then SAAJ needs to have a xerces impl fro= m Sun > > > > on > > > > Websphere. However both xerces or JAXP seem to conflict with open C= MIS. > > > >=20 > > > > Any recommendations on how this could be resolved? > > > >=20 > > > > Thanks > > > > Alex