You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Philippe Vandenhove <ph...@gmail.com> on 2010/04/14 12:30:29 UTC

Axis2 behind a reverse proxy in HTTPS

Hi,

I have to install an Axis2 web service in Tomcat (HTTP) behind a Reverse
Proxy (HTTPS).

The web service has to be accessible from the web.

In my wsdl, i have set the address to  https://myurl and it works fine, i
can access my web service from the web.


The problem comes when i send my Soap Request :

 - A SOAP request is sended to the Reverse Proxy.
 - The Reverse Proxy redirect to http://tomcat_url/
 - Axis2 receives the SOAP request but it can't find an EPR for this
address. See  stack trace below this message.

Is there some parameters i can use to correct that?

Regards,
Philippe



14/04/2010 ; 09:27:32 ; ERROR ; (AxisEngine.java:212); The service cannot be
found for the endpoint reference (EPR)
org.apache.axis2.AxisFault: The service cannot be found for the endpoint
reference (EPR) http://myurl



at
org.apache.axis2.engine.DispatchPhase.validateTransport(DispatchPhase.java:218)

     at
org.apache.axis2.engine.DispatchPhase.validateTransport(DispatchPhase.java:218)

        at
org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:95)

        at org.apache.axis2.engine.Phase.invoke(Phase.java:333)

        at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:264)

        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:163)

        at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)

        at
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:131)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)

        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)

        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)

        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)

        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)

        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)

        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)

        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)

        at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)

        at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)

        at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)

        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)

        at java.lang.Thread.run(Thread.java:595)

Re: Axis2 behind a reverse proxy in HTTPS

Posted by Amila Suriarachchi <am...@gmail.com>.
this seems you have not exposed the http transport in the server. check the
services.xml file.

thanks,
Amila.



On Wed, Apr 14, 2010 at 4:00 PM, Philippe Vandenhove <
philippe.vandenhove@gmail.com> wrote:

> Hi,
>
> I have to install an Axis2 web service in Tomcat (HTTP) behind a Reverse
> Proxy (HTTPS).
>
> The web service has to be accessible from the web.
>
> In my wsdl, i have set the address to  https://myurl and it works fine, i
> can access my web service from the web.
>
>
> The problem comes when i send my Soap Request :
>
>  - A SOAP request is sended to the Reverse Proxy.
>  - The Reverse Proxy redirect to http://tomcat_url/
>  - Axis2 receives the SOAP request but it can't find an EPR for this
> address. See  stack trace below this message.
>
> Is there some parameters i can use to correct that?
>
> Regards,
> Philippe
>
>
>
> 14/04/2010 ; 09:27:32 ; ERROR ; (AxisEngine.java:212); The service cannot
> be found for the endpoint reference (EPR)
> org.apache.axis2.AxisFault: The service cannot be found for the endpoint
> reference (EPR) http://myurl
>
>
>
> at
> org.apache.axis2.engine.DispatchPhase.validateTransport(DispatchPhase.java:218)
>
>      at
> org.apache.axis2.engine.DispatchPhase.validateTransport(DispatchPhase.java:218)
>
>         at
> org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:95)
>
>         at org.apache.axis2.engine.Phase.invoke(Phase.java:333)
>
>         at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:264)
>
>         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:163)
>
>         at
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
>
>         at
> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:131)
>
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
>
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
>
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
>
>         at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>
>         at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
>
>         at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>
>         at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
>
>         at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
>
>         at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
>
>         at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
>
>         at
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
>
>         at
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
>
>         at
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
>
>         at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
>
>         at java.lang.Thread.run(Thread.java:595)
>



-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/