Greetings.

I read the solution for mapping some content from Orion to another web server like Apache, but I'm still having some problems trying to make it work.

Right now I have an Apache web server with SSL support turned on (https://localhost/) and I have the Orion server in the same machine in port 8888 (both in a Linux platform). Apache uses mod_proxy to send Java content to Orion like this:

<IfModule mod_proxy.c>

ProxyRequests On

ProxyPass /servlet/ http://localhost:8888/servlet/
ProxyPassReverse /servlet/ http://localhost:8888/servlet/

ProxyPass /jsp/ http://localhost:8888/
ProxyPassReverse /jsp/ http://localhost:8888/

</IfModule>

I need Apache to serve some special CGI and .html content; and some JSP and servlets need to "call back" to Apache to serve this content. So in global-web-application.xml ($ORION_HOME/config/) I turned on the tunneling servlet using the com.evermind.server.http.TunnelServlet as follows:

...
<servlet>
        <servlet-name>tunnel</servlet-name>
        <servlet-class>com.evermind.server.http.TunnelServlet</servlet-class>
        <init-param>
                <param-name>targetRoot</param-name>
                <param-value>https://localhost/</param-value>
        </init-param>
</servlet>
...
<servlet-mapping>
        <servlet-name>tunnel</servlet-name>
        <url-pattern>/sp_*</url-pattern>
</servlet-mapping>

<servlet-mapping>
        <servlet-name>tunnel</servlet-name>
        <url-pattern>/pk_*</url-pattern>
</servlet-mapping>

<servlet-mapping>
        <servlet-name>tunnel</servlet-name>
        <url-pattern>/*.html</url-pattern>
</servlet-mapping>
...

...but this is not working. I tried to request some page directly from Orion with http://localhost:8888/menu.html just as a simple test (this page is located in Apache document root, not in Orion), and got the following error:

500 Internal Server Error
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:312)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:132)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:119)
at java.net.Socket.<init>(Socket.java:269)
at java.net.Socket.<init>(Socket.java:125)
at com.evermind[Oracle9iAS (1.0.2.2) Containers for J2EE].server.http.TunnelServlet.service(TunnelServlet.java:42)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
at com.evermind[Oracle9iAS (1.0.2.2) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:501)
at com.evermind[Oracle9iAS (1.0.2.2) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:170)
at com.evermind[Oracle9iAS (1.0.2.2) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:576)
at com.evermind[Oracle9iAS (1.0.2.2) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:189)
at com.evermind[Oracle9iAS (1.0.2.2) Containers for J2EE].util.ThreadPoolThread.run(ThreadPoolThread.java:62)

Is this because we are using SSL (https://...) for the Apache? Or is it something else?


Jose Ant. Vargas A.
Web & Java Developer
Online Data Systems (ODS)
PariAction.com
www.pariaction.com

Reply via email to