From: Jim D. <jd...@ho...> - 2005-09-17 17:39:31
|
Jost, I tried you're directions below for extracting the "java.so" and "JavaBridge.jar" from RPM and copying them into the PHP extension folder(/usr/local/lib/php/ext). I get this error returned to the browser, #!/usr/bin/php Please permanently activate the extension. Loading java extension now... java extension not installed. I can't run test.php from a command line either, it can't load the java.so with similar error messages. I added the java.ini lines to the php.ini. PHP is running fine. The .so and .war file are located in - usr/local/lib/php/ext The contents of the php.ini file is below... RH 9.0 PHP 4.4.0 Thanks, Jim ---------------PHP INI FILE START---------------- . . . regula PHP.INI entries are ok... . . . The BELOW PORTION WAS ADDED TO THE PHP.INI file ;; -*- mode: Scheme; tab-width:4 -*- ;; Copy this file to the php ini directory (usually /etc/php.d) or ;; copy its content to the global php.ini (usually /etc/php.ini or ;; /usr/local/lib/php.ini). ;; ;; Use the java.socketname, java.hosts and java.servlet to ;; control the operation mode: ;; ;; 1) java.socketname and java.hosts off: local backend which ;; starts automatically. ;; ;; 2) java.socketname set: local system backend started by the ;; php-java-bridge service script. ;; ;; 3) java.hosts set: external backend(s) on a different server(s). ;; ;; 4) java.hosts and java.servlet set: external backend(s) ;; deployed in a j2ee application server or servlet engine. extension = java.so [java] ;; log level between 0 (log off) and 4 (log debug). The default "log ;; file" is the standard output. The default level is 2. java.log_level = 2 java.log_file = /var/log/php-java-bridge.log ;; Adjust the following options if the VM or its location have ;; changed since you ran the ./configure command. java.java_home = @JAVA_HOME@ java.java = @JAVA_JAVA@ ;; If you want to start the backend automatically as a sub-component ;; of your HTTP server, comment out _all the following options_. ;; If you don't have a servlet engine, double-click on JavaBridge.jar ;; or use the php-java-bridge service script to start and stop the ;; backend as a system service. Please see the RedHat RPM download ;; for an example how to start java as a system service. ;;POR took out ;;java.socketname = /var/run/.php-java-bridge_socket ;; If you have a servlet engine or an application server, deploy ;; JavaBridge.war and re-start the servlet engine or the application ;; server. Comment out the "java.socketname" option and uncomment ;; the following options. java.hosts = "127.0.0.1:8080" java.servlet = On ---------------PHP INI FILE FINISH---------------- >From: Jost Boekemeier <jos...@ya...> >To: William Lovaton ><wil...@co...>,php...@li... >Subject: Ant: [Php-java-bridge-users] Problem compiling version 2.0.7 on >RedHat 9 >Date: Sat, 17 Sep 2005 17:24:35 +0200 (CEST) > >Hi William, > >[please excuse the delay] > >to the best of my knowledge this problem should be >fixed in version 2.0.8RC5. Please see the updated >INSTALL document for details. > >Furthermore it should be possible to use the binary >RPM: > >* Extract the "java.so" and "JavaBridge.jar" from the >binary RPM with the command: > > rpm2cpio php-java-bridge*.rpm | cpio -iduv > >* Install PHP 4.3.2 or above and copy the "java.so" >and "JavaBridge.jar" into its extension folder. > >* run the test.php with: php test.php > > >Regards, >Jost Boekemeier > > > > > >___________________________________________________________ >Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier >anmelden: http://mail.yahoo.de > > >------------------------------------------------------- >SF.Net email is sponsored by: >Tame your development challenges with Apache's Geronimo App Server. >Download it for free - -and be entered to win a 42" plasma tv or your very >own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php >_______________________________________________ >php-java-bridge-users mailing list >php...@li... >https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |