Return-Path: X-Original-To: apmail-cxf-users-archive@www.apache.org Delivered-To: apmail-cxf-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4EC0E9CB2 for ; Tue, 26 Jun 2012 08:45:38 +0000 (UTC) Received: (qmail 45249 invoked by uid 500); 26 Jun 2012 08:45:37 -0000 Delivered-To: apmail-cxf-users-archive@cxf.apache.org Received: (qmail 45084 invoked by uid 500); 26 Jun 2012 08:45:37 -0000 Mailing-List: contact users-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@cxf.apache.org Delivered-To: mailing list users@cxf.apache.org Received: (qmail 45065 invoked by uid 99); 26 Jun 2012 08:45:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jun 2012 08:45:36 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of himanshu.kgp@gmail.com designates 74.125.82.49 as permitted sender) Received: from [74.125.82.49] (HELO mail-wg0-f49.google.com) (74.125.82.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jun 2012 08:45:30 +0000 Received: by wgbds1 with SMTP id ds1so4445407wgb.6 for ; Tue, 26 Jun 2012 01:45:09 -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 :content-type; bh=8zuFQQWpJBghAO0ePEbNBNcAWxL8D4vpNJDALcKVPgQ=; b=QCD85umN3+1+P5Uz3XL2hIUpdJL0uxTyn7W7yM0vFON1WYsZJj89ceH5Ja7atgnL6V cg6vsvtgeuWarKU0y/Mi75toqTAQcIVa9lZc7pYEq8CdphBjqVLPymJp/uNVtMtwRZMx BElw7V/UGVQdVjn7wkZE1fUBXGqorp/WjB+lS35cedfTr9GAaN0bkbR7JxSSfESIB7Oo HGaFdii6w6QSFNl3F+pvLSu7CM/1kNtQ9NM4We5mq0KAhyWZ4IoFOzA1tpPxVqcd1bdo P7W/6h9u7DEiZzG/hr4Pn2jUSp2G8+6tasM8owL+fvdOaATNJ4Dhhn3Acc/TYd/OF2yQ +EAg== MIME-Version: 1.0 Received: by 10.216.218.200 with SMTP id k50mr8303483wep.212.1340700309426; Tue, 26 Jun 2012 01:45:09 -0700 (PDT) Received: by 10.223.122.68 with HTTP; Tue, 26 Jun 2012 01:45:09 -0700 (PDT) In-Reply-To: <1340687777388-5710286.post@n5.nabble.com> References: <1340517488744-5710174.post@n5.nabble.com> <1340559120255-5710181.post@n5.nabble.com> <4FE75082.1040206@gmail.com> <1340687777388-5710286.post@n5.nabble.com> Date: Tue, 26 Jun 2012 10:45:09 +0200 Message-ID: Subject: Re: XML/HTTP without SOAP in CXF From: Himanshu Gupta To: users@cxf.apache.org Content-Type: multipart/alternative; boundary=0016e6db2c7ab1916804c35c1d27 X-Virus-Checked: Checked by ClamAV on apache.org --0016e6db2c7ab1916804c35c1d27 Content-Type: text/plain; charset=ISO-8859-1 Try adding your server certificate (on which https is based) to the jdk default keystore on the web client ... that is at /jre/lib/security/cacerts ... May be this works. If yes, then you could use any keystore with this certificate to set it as a default keystore using the -Djavax.net.ssl.*keyStore ...* * * Cheers .. On Tue, Jun 26, 2012 at 7:16 AM, kdesin wrote: > Hi Sergey, > > > I have achieved my requirement using the WebClient API and with the inputs > from this forum. > > > Thanks for that. > > > Currently I am facing problem to post to a https URL.(Every thing works > fine > if I post to the same URL without the secure scheme..i.e without https) > > > > Is there any additional config to be done for posting to secure scheme. > > > *Stack Trace:* > > javax.net.ssl.SSLHandshakeException: SSLHandshakeException invoking > https://myURL/path: sun.security.validator.ValidatorException: No trusted > certificate found > sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > Method) > > > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) > > > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) > java.lang.reflect.Constructor.newInstance(Constructor.java:494) > > > org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.mapException(HTTPConduit.java:1457) > > > org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1442) > > org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56) > > org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:658) > > > org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62) > > > org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:262) > > > org.apache.cxf.jaxrs.client.WebClient.doChainedInvocation(WebClient.java:795) > org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:743) > org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:717) > org.apache.cxf.jaxrs.client.WebClient.invoke(WebClient.java:262) > org.apache.cxf.jaxrs.client.WebClient.post(WebClient.java:271) > com.rest.test.MyClass.myMethod(MyClass.java:158) > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > java.lang.reflect.Method.invoke(Method.java:585) > > > org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180) > > > org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96) > org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:167) > org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:94) > > > org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58) > > > org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:94) > > > org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:262) > > > org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:122) > > > org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:211) > > > org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:213) > > > org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:154) > > > org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:129) > > > org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:187) > > > org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(AbstractHTTPServlet.java:115) > javax.servlet.http.HttpServlet.service(HttpServlet.java:690) > > > org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:166) > > > org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) > > > Saludos > Kartheek > > ----- > Saludos > Kartheek > -- > View this message in context: > http://cxf.547215.n5.nabble.com/XML-HTTP-without-SOAP-in-CXF-tp5710174p5710286.html > Sent from the cxf-user mailing list archive at Nabble.com. > -- Himanshu Gupta. --0016e6db2c7ab1916804c35c1d27--