|
From: Cameron B. <ca...@br...> - 2005-08-18 18:57:20
|
I managed to get the tomcat bridge working when running test.bat.
However every php script that I run within tomcat fails to find the bridge.
Here is the process that I took
Unzipped php-java-bridge_2.0.8pre.zip into c:\php5
Eited c:\php5\php.ini
extension_dir = "c:\php5"
extension = php_java.dll
[java]
#java.socketname
java.hosts="127.0.0.1:8080"
java.servlet=On
Deployed JavaBridge.war into tomcat-5.5.9
Browsed http://localhost/test.php
The phpinfo() function ran, and displayed this for java :
java support Enabled
java bridge 2.0.8pre
java.log_level 2
java.hosts 127.0.0.1:8080
java.servlet On
java command javaw -Djava.library.path=c:\php5
-Djava.class.path=c:\php5/JavaBridge.jar
-Djava.awt.headless=true
php.java.bridge.JavaBridge
INET_LOCAL:9267 2 ""
java status not running
java server localhost
And shows this at the bottom :
Fatal error: php_mod_java(52): Could not connect to server: Unknown error --
Have you started the java bridge and set the java.socketname option? in
C:\java\jakarta-tomcat-5.5.9\webapps\JavaBridge\test.php on line 19
I have tried editing JavaBridge/WEB-INF/web.xml to change things like
override_hosts, servlet_log_level to try and get it working.
Any hints ?
Thanks,
Cameron.
|