[ 
https://issues.apache.org/jira/browse/APA-71?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14263616#comment-14263616
 ] 

Woonsan Ko commented on APA-71:
-------------------------------

When testing, please be sure that you should set 'javax.net.ssl.trustStore' 
system property to enable SSL client connection like the following example:

{code}
CATALINA_OPTS="-Djavax.net.ssl.trustStore=$CATALINA_BASE/.keystore"
{code}

Without the setting above, you may see the error: "PKIX path building failed” 
and “unable to find valid certification path to requested target”.

References:
- http://docs.oracle.com/javase/1.5.0/docs/guide/security/jsse/JSSERefGuide.html
- 
http://stackoverflow.com/questions/20122099/error-in-javamail-pkix-path-building-failed-unable-to-find-valid-certification

> WebContent - Reverse proxy for https target doesn't work by default
> -------------------------------------------------------------------
>
>                 Key: APA-71
>                 URL: https://issues.apache.org/jira/browse/APA-71
>             Project: Portals Apps
>          Issue Type: Bug
>    Affects Versions: apa-webcontent-2.0
>            Reporter: Woonsan Ko
>            Assignee: Woonsan Ko
>             Fix For: apa-webcontent-2.0
>
>
> For https remote target, it throws an exception like the following:
> {code}
> org.apache.http.client.ClientProtocolException
>       
> org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:186)
>       
> org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
>       
> org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:106)
>       
> org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:57)
>       
> org.apache.portals.applications.webcontent2.proxy.command.ExecuteHttpClientCommand.executeInternal(ExecuteHttpClientCommand.java:63)
>       
> org.apache.portals.applications.webcontent2.proxy.impl.AbstractProxyCommand.execute(AbstractProxyCommand.java:61)
>       org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
>       
> org.apache.portals.applications.webcontent2.proxy.impl.ProxyProcessingChain.execute(ProxyProcessingChain.java:243)
>       org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
>       
> org.apache.portals.applications.webcontent2.proxy.impl.ProxyProcessingChain.execute(ProxyProcessingChain.java:243)
>       
> org.apache.portals.applications.webcontent2.proxy.impl.DefaultReverseProxyService.invoke(DefaultReverseProxyService.java:40)
>       
> org.apache.portals.applications.webcontent2.proxy.servlet.GenericReverseProxyServlet.service(GenericReverseProxyServlet.java:112)
>       javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>       org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
> root cause
> org.apache.http.ProtocolException: The server failed to respond with a valid 
> HTTP response
>       
> org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:151)
>       
> org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:57)
>       
> org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:261)
>       
> org.apache.http.impl.DefaultBHttpClientConnection.receiveResponseHeader(DefaultBHttpClientConnection.java:165)
>       
> org.apache.http.impl.conn.CPoolProxy.receiveResponseHeader(CPoolProxy.java:153)
>       
> org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:272)
>       
> org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:124)
>       
> org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:254)
>       
> org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:195)
>       org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:86)
>       
> org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
>       
> org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
>       
> org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:106)
>       
> org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:57)
>       
> org.apache.portals.applications.webcontent2.proxy.command.ExecuteHttpClientCommand.executeInternal(ExecuteHttpClientCommand.java:63)
>       
> org.apache.portals.applications.webcontent2.proxy.impl.AbstractProxyCommand.execute(AbstractProxyCommand.java:61)
>       org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
>       
> org.apache.portals.applications.webcontent2.proxy.impl.ProxyProcessingChain.execute(ProxyProcessingChain.java:243)
>       org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
>       
> org.apache.portals.applications.webcontent2.proxy.impl.ProxyProcessingChain.execute(ProxyProcessingChain.java:243)
>       
> org.apache.portals.applications.webcontent2.proxy.impl.DefaultReverseProxyService.invoke(DefaultReverseProxyService.java:40)
>       
> org.apache.portals.applications.webcontent2.proxy.servlet.GenericReverseProxyServlet.service(GenericReverseProxyServlet.java:112)
>       javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>       org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to