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 A8B1B109BF for ; Wed, 9 Jul 2014 15:54:40 +0000 (UTC) Received: (qmail 59060 invoked by uid 500); 9 Jul 2014 15:54:40 -0000 Delivered-To: apmail-chemistry-dev-archive@chemistry.apache.org Received: (qmail 58999 invoked by uid 500); 9 Jul 2014 15:54:40 -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 58985 invoked by uid 99); 9 Jul 2014 15:54:40 -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 15:54:40 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of mcs130@gmail.com designates 209.85.220.47 as permitted sender) Received: from [209.85.220.47] (HELO mail-pa0-f47.google.com) (209.85.220.47) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jul 2014 15:54:36 +0000 Received: by mail-pa0-f47.google.com with SMTP id kq14so9381785pab.20 for ; Wed, 09 Jul 2014 08:54:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=utVUDY6unkJCZvCUKnyBBgyJSGcOgWWD1oUs4L0eQRM=; b=sCqOmk/DeaGHCwn4V5cAsfFxQ+SahXPse3atlv1QVphSg0be39Y1BGXHalKNQ+g0U2 JJNCNRmC2xZBcHQuTMNd3DafAKwFXbYgpHfn/uIP0SdAMaFBR+rYbX304FhCmYD4OKh/ XGE1XCEK/POjbARavjKmA58ww5pieom0gf30B2y7P9SlI1uglSeCDI0MWi9JNW+sOr2L wMqCfKm097KZxiEI0REdDWagzI7Sq2M3Hs6YKrBRmnKiAYBIdJUyjMKAH386MJo1yXGl K1D14AUbhvnoNDSlFdiYppiItKwyL23zNME+Gnho7torU7/pTpJ0DRV0TQynyo5MiGmk UPbA== MIME-Version: 1.0 X-Received: by 10.70.88.17 with SMTP id bc17mr11687411pdb.45.1404921251331; Wed, 09 Jul 2014 08:54:11 -0700 (PDT) Received: by 10.70.136.6 with HTTP; Wed, 9 Jul 2014 08:54:11 -0700 (PDT) In-Reply-To: <204780992.18076.1404914942404.open-xchange@app07.ox.hosteurope.de> References: <1404911062.70669.YahooMailNeo@web120003.mail.ne1.yahoo.com> <204780992.18076.1404914942404.open-xchange@app07.ox.hosteurope.de> Date: Wed, 9 Jul 2014 11:54:11 -0400 Message-ID: Subject: Re: Websphere issue - The request is not MTOM encoded From: Mark Streit To: "dev@chemistry.apache.org" , =?UTF-8?Q?Florian_M=C3=BCller?= Cc: Alex Devasia Content-Type: multipart/alternative; boundary=001a11c215ec1f860d04fdc4b89d X-Virus-Checked: Checked by ClamAV on apache.org --001a11c215ec1f860d04fdc4b89d Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable There was another thread about something similar before - I believe it was Alex as well, correct? Recall that you don't want the WebSphere stack interfering and it will unless you specifically configure the application that is running to avoid it. If your "client" code is running from inside WAS8.X (it was similar for WAS7 too), I am assuming it is part of a WAR/EAR...IIRC, in WAS7 you couldn't deploy any WAR w/o a corresponding EAR file (unlike Tomcat for instance). As before, assuming the client code is running from inside some web application... 1) is the WAR file carrying all the needed JARs in /WEB-INF/lib - there are dependencies that CMIS clients have which are JAX-WS related 2) is the classloader policy for the EAR or WAR set correctly? ... 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. *Or... the CLIENT call that gets sent is then not compatible with the CMIS SERVER you are now calling* - perhaps in this case, the MTOM encoding is not occurring because WAS is interfering You almost have to think of it this way. You're running a CMIS client application to talk to a CMIS server application. BOTH applications have similar dependencies, especially where the JAX-WS client/service stack is concerned. You only want those JARs --- which are *shipped with the OpenCMIS distribution*, involved ... and want to *avoid anything that the Websphere stack is "providing"*. We are now using mostly Tomcat servers for our implementation and have been moving away from WAS so, of late, have not been battling this. As I recall, there was a time when a websphere-specific JAR was provided with OpenCMIS, but I believe that stopped after 0.8.0 - when I look at 0.11.0, I don't see that anymore. *HTH* Mark On Wed, Jul 9, 2014 at 10:09 AM, Florian M=C3=BCller wrot= e: > 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 > this is > the case, > > If you are seeing an OpenCMIS client receiving this exception, you are > probably > using the wrong JAX-WS library. > Please make sure that you have all OpenCMIS client dependency libraries o= n > your > classpath. > > - Florian > > > > Hello, > > > > I am using WebSphere 8.5 and open CMIS 0.11. With my deployment, I coul= d > get > > CMIS clients like workbench and other mobile clients to connect to the > server. > > However, there seems to be an issue if there's a client using some > selective > > CMIS services directly like the repository and navigation service. > > > > This client ends up with "The request is not MTOM encoded" error. The > error is > > being thrown from CmisWebServicesServlet (code snippet below). > > > > When using the same client, I noticed the request doesn't go > > to CmisWebServicesServlet if the web application is deployed on Tomcat.= I > > guess this has something to do with the deployment descriptor but I am > not > > sure how to resolve it on WebSphere. > > > > /* 53 > > */ String contentType =3D request.getContentType(); > > /* 54 > > */ if ((contentType =3D=3D null) || > > (!contentType.toLowerCase(Locale.ENGLISH).startsWith("multipart/"))) { > > /* 55 > > */ throw new ServletException("Invalid > > multipart request!"); > > > > Any ideas? > > > > Thanks > > Alex > --001a11c215ec1f860d04fdc4b89d--