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 CFAE1783B for ; Tue, 23 Aug 2011 19:00:52 +0000 (UTC) Received: (qmail 56207 invoked by uid 500); 23 Aug 2011 19:00:52 -0000 Delivered-To: apmail-chemistry-dev-archive@chemistry.apache.org Received: (qmail 56049 invoked by uid 500); 23 Aug 2011 19:00:51 -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 56041 invoked by uid 99); 23 Aug 2011 19:00:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Aug 2011 19:00:51 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,NORMAL_HTTP_TO_IP,RP_MATCHES_RCVD,WEIRD_PORT X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Aug 2011 19:00:49 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 63119CC34A for ; Tue, 23 Aug 2011 19:00:29 +0000 (UTC) Date: Tue, 23 Aug 2011 19:00:29 +0000 (UTC) From: =?utf-8?Q?Florian_M=C3=BCller_=28JIRA=29?= To: dev@chemistry.apache.org Message-ID: <453813497.6183.1314126029402.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1220396577.5811.1314119429194.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CMIS-423) Open CMIS Client Framework Not initializing after enabling security on web services MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CMIS-423?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D130896= 64#comment-13089664 ]=20 Florian M=C3=BCller commented on CMIS-423: ------------------------------------- First of all, there is no good reason to hide the CMIS WSDLs. They are not = containing any information that have to be protected and many CMIS Web Serv= ices clients cannot handle HTTP authentication. The workaround for OpenCMIS is to install an Authenticator [1] before the f= irst call is made. A simple implementation of an Authenticator could look like this: public class BasicAuthenticator extends Authenticator { private PasswordAuthentication passwordAuthentication; public BasicAuthenticator(String user, String password) { passwordAuthentication =3D new PasswordAuthentication(user, passwor= d.toCharArray()); } @Override protected synchronized PasswordAuthentication getPasswordAuthentication= () { return passwordAuthentication; } } [1] http://download.oracle.com/javase/6/docs/api/java/net/Authenticator.htm= l > Open CMIS Client Framework Not initializing after enabling security on we= b services > -------------------------------------------------------------------------= ---------- > > Key: CMIS-423 > URL: https://issues.apache.org/jira/browse/CMIS-423 > Project: Chemistry > Issue Type: Bug > Components: opencmis-client > Affects Versions: OpenCMIS 0.4.0 > Environment: IBM Websphere 7,0,13 > Reporter: Krishna Penugonda > Priority: Critical > Original Estimate: 12h > Remaining Estimate: 12h > > After enabling HTTP Authentication on webservices opencmis client API not= Initzializing. we are getting following Exception: > Aug 23, 2011 9:32:42 AM com.thrivent.cmis.commons.logging.Logger error > SEVERE: $1$ Current User Id :n050767 > Aug 23, 2011 9:32:42 AM com.thrivent.cmis.commons.logging.Logger error > SEVERE: $1$ Query:SELECT this,DocumentTitle,amtPaid,acctNbr,doc_Typ_Code,= cust_Id_Nbr_ FROM Document WHERE DocumentTitle LIKE '%GCS%' > Aug 23, 2011 9:32:42 AM com.thrivent.cmis.commons.logging.Logger error > SEVERE: $1$ com.thrivent.cms.client.exception.ServiceClientException: org= .apache.chemistry.opencmis.commons.exceptions.CmisConnectionException: Cann= ot initalize Web Services service object [org.apache.chemistry.opencmis.bin= ding.webservices.RepositoryService]: Failed to access the WSDL at: http://1= 0.83.4.223:9080/ThriventCmisServiceWeb/services/RepositoryService?wsdl. It = failed with:=20 > =09Server returned HTTP response code: 401 for URL: http://10.83.4.223:90= 80/ThriventCmisServiceWeb/services/RepositoryService?wsdl. > =09at com.thrivent.cms.client.provider.ClientSessionProvider.intiialize(C= lientSessionProvider.java:112) > =09at com.thrivent.cms.client.provider.ClientSessionProvider.(Clien= tSessionProvider.java:43) > =09at com.thrivent.cms.client.provider.ClientSessionProvider.getInstance(= ClientSessionProvider.java:54) > =09at com.thrivent.cms.client.handler.ClientRequestHandler.query(ClientRe= questHandler.java:88) > =09at com.thrivent.cms.client.helper.ServiceClientHelper.invokeQuery(Serv= iceClientHelper.java:81) > =09at TestApp.invokeQueryCall(TestApp.java:74) > =09at TestApp.main(TestApp.java:328) > Caused by: java.io.IOException: Server returned HTTP response code: 401 f= or URL: http://10.83.4.223:9080/ThriventCmisServiceWeb/services/RepositoryS= ervice?wsdl > =09at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLC= onnection.java:1285) > =09at java.net.URL.openStream(URL.java:1009) > =09at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.createReader(RuntimeWS= DLParser.java:804) > =09at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.resolveWSDL(RuntimeWSD= LParser.java:262) > =09at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParse= r.java:129) > =09... 21 more -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira