You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Bilgehan Maraş <bi...@gmail.com> on 2017/02/20 15:55:02 UTC

Re: proxy authorization error

Sorry for late reply, it took a while to prepare a test system. I was using
jre8 111 and the change titled *Disable Basic authentication for HTTPS
tunneling* was the reason. Switched back to jre 8 102 and problem
disappeared.

Thanks for the information.

Regards

Bilgehan

On Tue, Jan 24, 2017 at 9:02 PM, Daniel Kulp <dk...@apache.org> wrote:

> Are you using JDK8 update 111 or later?   If so, see:
>
> http://www.oracle.com/technetwork/java/javase/8u111-relnotes-3124969.html
>
> In the section labelled "Disable Basic authentication for HTTPS
> tunneling”.   You can try setting the system property
> “jdk.http.auth.tunneling.disabledSchemes” to an empty string and see if
> that helps.
>
>
>
> Dan
>
>
>
>
> > On Jan 18, 2017, at 10:19 AM, Bilgehan Maraş <bi...@gmail.com>
> wrote:
> >
> > Hi,
> >
> > I am trying to consume a ws-trust enabled webservice through proxy
> server.
> > The service is served over https
> >
> > In my client configuration i have
> >
> >
> > <jaxws:client name="***" createdFromAPI="true">
> >    <jaxws:properties>
> >        <entry key="ws-security.sts.client">
> >            <bean class="org.apache.cxf.ws.security.trust.STSClient">
> >                <constructor-arg ref="cxf"/>
> >                <property name="wsdlLocation" value="***"/>
> >                <property name="serviceName" value="***/>
> >                <property name="endpointName" value="***"/>
> >            </bean>
> >        </entry>
> >    </jaxws:properties>
> > </jaxws:client>
> >
> > <http-conf:conduit name="*.http-conduit">
> >    <http-conf:client ProxyServer="***" ProxyServerPort="3128" />
> >    <http-conf:proxyAuthorization>
> >        <conf-sec:UserName>***</conf-sec:UserName>
> >        <conf-sec:Password>***</conf-sec:Password>
> >    </http-conf:proxyAuthorization>
> > </http-conf:conduit>
> >
> >
> > I get the following error. There is a similar bug report (
> > https://issues.apache.org/jira/browse/CXF-2223 ) but it is marked at
> > resolved at 2.1.9. My cxf version is 3.0.3
> >
> > Unable to tunnel through proxy. Proxy returns "HTTP/1.0 407 Proxy
> > Authentication Required"
> >    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
> >    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
> Source)
> >    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
> > Source)
> >    at java.lang.reflect.Constructor.newInstance(Unknown Source)
> >    at
> > org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.
> mapException(HTTPConduit.java:1359)
> >    at
> > org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(
> HTTPConduit.java:1343)
> >    at
> > org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
> >    at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.
> java:638)
> >    at
> > org.apache.cxf.interceptor.MessageSenderInterceptor$
> MessageSenderEndingInterceptor.handleMessage(
> MessageSenderInterceptor.java:62)
> >
> > Any help is appreciated
> >
> > Regards,
> > Bilgehan
>
> --
> Daniel Kulp
> dkulp@apache.org - http://dankulp.com/blog
> Talend Community Coder - http://coders.talend.com
>
>