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 A8A4A104B7 for ; Wed, 9 Jul 2014 14:10:35 +0000 (UTC) Received: (qmail 56975 invoked by uid 500); 9 Jul 2014 14:10:35 -0000 Delivered-To: apmail-chemistry-dev-archive@chemistry.apache.org Received: (qmail 56918 invoked by uid 500); 9 Jul 2014 14:10:35 -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 56907 invoked by uid 99); 9 Jul 2014 14:10:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jul 2014 14:10:35 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.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:09:31 +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 1X4sYQ-0006v4-Hs; Wed, 09 Jul 2014 16:09:02 +0200 Date: Wed, 9 Jul 2014 16:09:01 +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: <204780992.18076.1404914942404.open-xchange@app07.ox.hosteurope.de> In-Reply-To: <1404911062.70669.YahooMailNeo@web120003.mail.ne1.yahoo.com> References: <1404911062.70669.YahooMailNeo@web120003.mail.ne1.yahoo.com> Subject: Re: Websphere issue - The request is not MTOM encoded 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;1404914966;4caf32ec; X-Virus-Checked: Checked by ClamAV on apache.org Hi Alex, The CMIS spec defines that *all* CMIS Web Services calls have to be MTOM encoded. If you are developing your own Web Services CMIS client, make sure that thi= s is the case, If you are seeing an OpenCMIS client receiving this exception, you are prob= ably using the wrong JAX-WS library. Please make sure that you have all OpenCMIS client dependency libraries on = your classpath. - Florian > Hello, >=20 > I am using WebSphere 8.5 and open CMIS 0.11. With my deployment, I could = get > CMIS clients like workbench and other mobile clients to connect to the se= rver. > However, there seems to be an issue if there's a client using some select= ive > CMIS services directly like the repository and navigation service. >=20 > This client ends up with "The request is not MTOM encoded" error. The err= or is > being thrown from=C2=A0CmisWebServicesServlet (code snippet below).=C2=A0 >=20 > When using the same client, I noticed the request doesn't go > to=C2=A0CmisWebServicesServlet if the web application is deployed on Tomc= at. I > guess this has something to do with the deployment descriptor but I am no= t > sure how to resolve it on WebSphere. >=20 > /*=C2=A0 53 > */=C2=A0=C2=A0=C2=A0=C2=A0 String contentType =3D request.getContentType(= ); > /*=C2=A0 54 > */=C2=A0=C2=A0=C2=A0=C2=A0 if ((contentType =3D=3D null) || > (!contentType.toLowerCase(Locale.ENGLISH).startsWith("multipart/"))) { > /*=C2=A0 55 > */=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 throw new ServletException("Invali= d > multipart request!"); >=20 > Any ideas? >=20 > Thanks > Alex