From: <php...@li...> - 2006-04-21 18:35:53
|
I've been struggling for a couple of weeks to make this work. In = particular I want to use the bridge with tomcat 5.5. If I browse to http://localhost:8080/JavaBridge nothing happens. http://localhost:8080 <http://localhost:8080/> does bring up the tomcat default page OK. = Running http://localhost/test.php from the JavaBridge directory was working at = one time. It still displays phpinfo OK but now at the bottom where I was getting a lot of java info I'm getting this instead: =20 Error: The PHP/Java Bridge backend is not running. Please start it = and/or check if the directory /usr/local/lib/php/20050922 contains "java.so" = and "JavaBridge.jar". Check if the following values are correct: = java.java_home =3D java.java =3D If you want to start the backend automatically, = disable: java.socketname =3D java.hosts =3D java.servlet =3D If that still = doesn't work, please check the "java command" above and report this problem to: php...@li.... =20 Here is the java section of phpinfo: =20 java support Enabled java bridge 3.0.8rc3 java.java_home no value java.java java java.log_file <stdout> java.log_level no value (use backend's default level) java.ext_java_compatibility Off java command LD_LIBRARY_PATH=3D/usr/local/lib/php/20050922:/usr/local/lib: /usr/local/lib/php/20050922-debug/RunJavaBridge java -Djava.library.path=3D/usr/local/lib/php/20050922 -Djava.class.path=3D/usr/local/lib/php/20050922/JavaBridge.jar -Djava.awt.headless=3Dtrue php.java.bridge.JavaBridge INET_LOCAL:0 2 java status not running java server localhost =20 I notice java.java_home has no value. How do I set it and what should = it be set to? My JAVA_HOME is /usr/local/diablo-jdk1.5.0/ =20 I also notice that the LD_LIBRARY_PATH refers to /usr/local/lib/php/20050922-debug/RunJavaBridge when it should be = using just 20050922? =20 I'm running: =20 freebsd 6.0 apache 2.2.0 tomcat 5.5 php 5.1.2 java version "1.5.0" Java(TM) 2 Runtime Environment, Standard Edition (build = diablo-1.5.0-b00) Java HotSpot(TM) Client VM (build diablo-1.5.0_06-b00, mixed mode) =20 any help at all would really be appreciated ... =20 Tom =20 p.s. I installed everything else from freebsd ports, but I don't see a = port for the php-java bridge? =20 =20 =20 |