|
From: <php...@li...> - 2009-07-20 14:34:34
|
Hi all,
I've been running tests with the new 5.4.4.2 version, and the bridge
works flawlessly both in "PhpJavaServlet mode" and in "PhpCGIServlet
mode" when the PHP script resides on the same machine where my Jetty
server runs, but I can't successfully run the same program from a
different computer.
Specifically, I do not understand how I need to set the #define
statements listed in java/Java.inc ... this is how the start of the
latest version of my calling script looks like (base URL for the bridge
webapp is /bridge):
define ("JAVA_SERVLET", "/bridge/JavaBridge.phpjavabridge");
define ("JAVA_PERSISTENT_SERVLET_CONNECTIONS", false);
include_once('http://jetty_server_IP:80/bridge/java/Java.inc');
.....
According to php_errors.log, the script cannot connect to port 9267 on
the target server; ethereal shows that a first connection is made to
port 80, and the servlet response contains headers like:
X_JAVABRIDGE_CONTEXT: b@%2Fopt%2Fjetty%2Fwebapps%2Fbridge
X_JAVABRIDGE_REDIRECT: 9267
but then it shows that the client is, again, trying to call port 80 on
the next interaction, disregarding the redirection.
What am I doing wrong?
Thank you,
Massimo
|