From: <php...@li...> - 2006-07-07 15:12:41
|
Hi all, I am trying to install the php-java-bridge on a Fedora Core 5 64-bit machine. I have tried following various different instructions in the INSTALL and README files trying to find the correct combination. I have upgraded my java-devel, php-devel, and php installations. Can you confirm that the following command is what I want to do? rpmbuild --rebuild php-java-bridge-3.1.4-1.src.rpm This command gave lots of output and appeared to run successfully. However, I don't see if and where the bridge was installed. (I'm pretty new to installing packages on Linux, so this is probably just a misunderstanding on my part). # rpm -q php-java-bridge-3.1.4-1 package php-java-bridge-3.1.4-1 is not installed # rpm -q php-java-bridge package php-java-bridge is not installed It looks like I need to follow additional instructions to move/edit files however I don't know where the files exist. Can someone point me to where my install is, how to start the bridge, and what instructions I need to follow next? Thanks for any help you might be able to provide, I am looking very forward to getting this working. -- Wendy |
From: <php...@li...> - 2006-07-07 17:32:46
|
Hi all, I realized that rpmbuild --rebuild didn't actually install the rpm. So I found the rpm and have it installed. I now am able to start php-java-bridge. I added the [java] section to my php.ini file and restarted both php-java-bridge (standalone) as well as httpd. SELinux is disabled. When I try to hit test.php I get the following error: Error: The PHP/Java Bridge back-end is not running. Please start it and/or check if the directory /usr/lib64/php/modules contains "java.so" and " JavaBridge.jar". Check if the following values are correct: java.java_home = /usr/lib/jvm/java-1.4.2-gcj-1.4.2.0 java.java = /usr/lib/jvm/java- 1.4.2-gcj-1.4.2.0/jre/bin/java If you want to start the back-end automatically, disable: java.socketname = /var/run/.php-java-bridge_socket java.hosts = java.servlet = If that still doesn't work, please check the "java command" above and report this problem to: php...@li.... The back-end *is* running and the modules directory contains java.so and JavaBridge.jar. The java_home and java.java parameters are correct. Any ideas? Thanks! On 7/7/06, Wendy Shuya <w....@gm...> wrote: > > Hi all, I am trying to install the php-java-bridge on a Fedora Core 5 > 64-bit machine. I have tried following various different instructions in > the INSTALL and README files trying to find the correct combination. I have > upgraded my java-devel, php-devel, and php installations. > > Can you confirm that the following command is what I want to do? > > rpmbuild --rebuild php-java-bridge-3.1.4-1.src.rpm > > This command gave lots of output and appeared to run successfully. > However, I don't see if and where the bridge was installed. (I'm pretty new > to installing packages on Linux, so this is probably just a misunderstanding > on my part). > > # rpm -q php-java-bridge-3.1.4-1 > package php-java-bridge-3.1.4-1 is not installed > > # rpm -q php-java-bridge > package php-java-bridge is not installed > > > It looks like I need to follow additional instructions to move/edit files > however I don't know where the files exist. Can someone point me to where > my install is, how to start the bridge, and what instructions I need to > follow next? > > Thanks for any help you might be able to provide, I am looking very > forward to getting this working. > > -- > Wendy > -- Wendy |
From: <php...@li...> - 2006-07-07 17:42:54
|
My log file includes the following: 9267java.lang.RuntimeException: java.lang.NullPointerException at php.java.bridge.JavaBridge.init(JavaBridge.java:385) at php.java.bridge.Standalone.init(Standalone.java:108) at php.java.bridge.Standalone.main(Standalone.java:126) at php.java.bridge.JavaBridge.main(JavaBridge.java:401) Caused by: java.lang.NullPointerException at gnu.gcj.runtime.NameFinder.lookup(libgcj.so.7) at java.lang.Throwable.getStackTrace(libgcj.so.7) at java.lang.Throwable.stackTraceString(libgcj.so.7) at java.lang.Throwable.printStackTrace(libgcj.so.7) at java.lang.Throwable.printStackTrace(libgcj.so.7) at php.java.bridge.Util.redirectOutput(Util.java:773) at php.java.bridge.JavaBridge.init(JavaBridge.java:336) ...3 more On 7/7/06, Wendy Shuya <w....@gm...> wrote: > > Hi all, > > I realized that rpmbuild --rebuild didn't actually install the rpm. So I > found the rpm and have it installed. I now am able to start > php-java-bridge. I added the [java] section to my php.ini file and > restarted both php-java-bridge (standalone) as well as httpd. SELinux is > disabled. > > When I try to hit test.php I get the following error: > Error: The PHP/Java Bridge back-end is not running. Please start it and/or > check if the directory /usr/lib64/php/modules contains "java.so" and " > JavaBridge.jar". Check if the following values are correct: java.java_home= /usr/lib/jvm/java- > 1.4.2-gcj-1.4.2.0 java.java = /usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre/bin/java > If you want to start the back-end automatically, disable: java.socketname= /var/run/.php-java-bridge_socket > java.hosts = java.servlet = If that still doesn't work, please check the > "java command" above and report this problem to: > php...@li.... > > The back-end *is* running and the modules directory contains java.so and > JavaBridge.jar. The java_home and java.java parameters are correct. > > Any ideas? > > Thanks! > > > > On 7/7/06, Wendy Shuya <w....@gm...> wrote: > > > > Hi all, I am trying to install the php-java-bridge on a Fedora Core 5 > > 64-bit machine. I have tried following various different instructions in > > the INSTALL and README files trying to find the correct combination. I have > > upgraded my java-devel, php-devel, and php installations. > > > > Can you confirm that the following command is what I want to do? > > > > rpmbuild --rebuild php-java-bridge-3.1.4-1.src.rpm > > > > This command gave lots of output and appeared to run successfully. > > However, I don't see if and where the bridge was installed. (I'm pretty new > > to installing packages on Linux, so this is probably just a misunderstanding > > on my part). > > > > # rpm -q php-java-bridge-3.1.4-1 > > package php-java-bridge-3.1.4-1 is not installed > > > > # rpm -q php-java-bridge > > package php-java-bridge is not installed > > > > > > It looks like I need to follow additional instructions to move/edit > > files however I don't know where the files exist. Can someone point me to > > where my install is, how to start the bridge, and what instructions I need > > to follow next? > > > > Thanks for any help you might be able to provide, I am looking very > > forward to getting this working. > > > > -- > > Wendy > > > > > > -- > Wendy > -- Wendy |
From: <php...@li...> - 2006-07-07 18:42:30
|
Hi, > java.lang.NullPointerException > at > php.java.bridge.JavaBridge.init(JavaBridge.java:385) > at > php.java.bridge.Util.redirectOutput(Util.java:773) this is a bug that was introduced in 3.1.2, it should be fixed in 3.1.4, please see http://php-java-bridge.cvs.sourceforge.net/php-java-bridge/php-java-bridge/server/php/java/bridge/Util.java?r1=1.41&r2=1.42 The 3.1.2 standalone back-end selects the appropriate channel and passes it back to the Apache or IIS container (the fix was necessary for IIS). Unfortunately the java.so did not pass the appropriate logFile, which caused a null pointer exception. As a workaround please start the standalone back-end with a log file, as follows: java -jar JavaBridge.jar INET:9267 3 JavaBridge.log The appropriate /etc/php.d/java.ini file would look like (remove the /etc/php.d/standalone.ini if it is still there): file /etc/php.d/java.ini: --------------------- extension=java.so [java] java.hosts=127.0.0.1:9267 java.servlet=Off --------------------- Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2006-07-07 18:56:58
|
Wow! It seems to be working :) Thank you for the clear and easy-to-follow instructions Jost! I still have the other Standalone RPM that I have not attached to the problem report. Let me know if I am just not seeing the link to upload a second file. Thanks so much! Wendy On 7/7/06, php...@li... < php...@li...> wrote: > > Hi, > > > java.lang.NullPointerException > > at > > php.java.bridge.JavaBridge.init(JavaBridge.java:385) > > at > > php.java.bridge.Util.redirectOutput(Util.java:773) > > this is a bug that was introduced in 3.1.2, it should > be fixed in 3.1.4, please see > > > http://php-java-bridge.cvs.sourceforge.net/php-java-bridge/php-java-bridge/server/php/java/bridge/Util.java?r1=1.41&r2=1.42 > > The 3.1.2 standalone back-end selects the appropriate > channel and passes it back to the Apache or IIS > container (the fix was necessary for IIS). > Unfortunately the java.so did not pass the appropriate > logFile, which caused a null pointer exception. > > As a workaround please start the standalone back-end > with a log file, as follows: > > > java -jar JavaBridge.jar INET:9267 3 JavaBridge.log > > The appropriate /etc/php.d/java.ini file would look > like (remove the /etc/php.d/standalone.ini if it is > still there): > > file /etc/php.d/java.ini: > --------------------- > extension=java.so > [java] > java.hosts=127.0.0.1:9267 > java.servlet=Off > --------------------- > > > Regards, > Jost Boekemeier > > > > > > > > > ___________________________________________________________ > > Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher > kostenlos - Hier anmelden: http://mail.yahoo.de > > > > ___________________________________________________________ > Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de > > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > -- Wendy |
From: <php...@li...> - 2006-07-07 18:06:11
|
Hi Wendy, > /usr/lib/jvm/java-1.4.2-gcj-1.4.2.0 java.java = > /usr/lib/jvm/java- > 1.4.2-gcj-1.4.2.0/jre/bin/java are you sure that the above binaries are 64 bit binaries? On my installation these are 32 bit binaries. On Unix the usual build process creates a JNI library libnatcJavaBridge.so. It is injected into the Java VM to make unix domain socket communication possible. If you build a 64 bit jni library for a 32 bit VM, the VM will reject the library and the unix domain socket channel fails. As a workaround please use TCP sockets instead, or, better, use the servlet back-end: rpm -e php-java-bridge php-java-bridge-standalone rpm -i php-java-bridge-3.1.4-1.i386.rpm rpm -i php-java-bridge-tomcat-3.1.4.1.noarch.rpm However, this 64 bit jni and 32 VM problem is something that autoconf should catch. Can you please open a problem report (please use http://sourceforge.net/tracker/?func=add&group_id=117793&atid=679233) and attach the php-java-bridge-standalone and php-java-bridge rpm files at the end of the ticket? I will add an autoconf test to the next version of the bridge which should solve this problem. Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2006-07-07 18:34:06
|
Hi Jost, I created the problem report: http://sourceforge.net/tracker/index.php?func=detail&aid=1518913&group_id=117793&atid=679233 However I am having troubles attaching a second file. You gave me a couple options to resolve the problem. 1. Use TCP sockets. How is this done? Do you just configure php.inidifferently? Is there an example somewhere? 2. Use the servlet backend. Don't I need to have tomcat running for this? I currently don't run Tomcat, so this didn't seem like the option I would like. Thanks for your help. Wendy On 7/7/06, php...@li... < php...@li...> wrote: > > Hi Wendy, > > > /usr/lib/jvm/java-1.4.2-gcj-1.4.2.0 java.java = > > /usr/lib/jvm/java- > > 1.4.2-gcj-1.4.2.0/jre/bin/java > > are you sure that the above binaries are 64 bit > binaries? On my installation these are 32 bit > binaries. > > On Unix the usual build process creates a JNI library > libnatcJavaBridge.so. It is injected into the Java VM > to make unix domain socket communication possible. If > you build a 64 bit jni library for a 32 bit VM, the VM > will reject the library and the unix domain socket > channel fails. > > As a workaround please use TCP sockets instead, or, > better, use the servlet back-end: > > rpm -e php-java-bridge php-java-bridge-standalone > rpm -i php-java-bridge-3.1.4-1.i386.rpm > rpm -i php-java-bridge-tomcat-3.1.4.1.noarch.rpm > > > However, this 64 bit jni and 32 VM problem is > something that autoconf should catch. Can you please > open a problem report (please use > http://sourceforge.net/tracker/?func=add&group_id=117793&atid=679233) > and attach the php-java-bridge-standalone and > php-java-bridge rpm files at the end of the ticket? > > I will add an autoconf test to the next version of the > bridge which should solve this problem. > > > Regards, > Jost Boekemeier > > > > > ___________________________________________________________ > Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de > > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > -- Wendy |
From: <php...@li...> - 2006-07-11 16:48:40
|
Hi Wendy, [please excuse the delay] > However I am having troubles attaching a second > file. [to the bug report] Not necessary, the bug has already been fixed. I will create a new download this weekend. > You gave me a couple options to resolve the problem. > 1. Use TCP sockets. How is this done? The RPM binaries incorrectly assume that unix domain sockets are usable and discard most of the autoconf values. Compiling the .tar.bz2 source download should fix this: phpize && ./configure --with-java=<java-home> && make su -c "sh install.sh" answer no/no/yes/no to the questions from the install dialog. > configure > php.inidifferently? Is there an example somewhere? I've never had this 32/64 bit problem. :) > 2. Use the servlet backend. Don't I need to have > tomcat running for this? Either tomcat or any other J2EE server, yes. This is the fastest option, btw. Communication via named pipes is 3 times faster than TCP socket communication and 1.5 times faster than unix domain sockets. > I currently don't run Tomcat, so this didn't seem > like the option I would If you're not familier with it, you don't need to use it, this part is still being developed. However, in the future the Apache front end with a J2EE or Tomcat back-end will be default and the standalone back-end will be deprecated and may vanish. Regards, Jost Boekemeier ___________________________________________________________ Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de |