From: Jim D. <jd...@ho...> - 2005-09-29 02:29:56
|
To all, I installed the latest bridge on Fedora 4.0. and it starts successfully. What is the best way to test it out to make sure it's functioning ok. Jim |
From: Jim D. <jd...@ho...> - 2005-09-29 23:58:09
|
I have a struts/tiles app, when I put the month.php file in my struts.xml file <definition name="site.index.page.monthf" extends="site.index.page.online" > <put name="title" value="Calendar" /> <put name="body" value="/pages/month.php" /> </definition> The php code comes back to the browser. Are there any directions that go with the Fedore4.0 RMP install? I can start and restart the bridge successfully. What do I need to configure? Jim |
From: Jost B. <jos...@ya...> - 2005-09-30 15:45:15
|
Hi Jim, > What is the best way to test it out to make sure > it's functioning ok. please copy the /usr/share/doc/php-java-bridge-2.0.8/test.php to /var/www/html/ and browse to http://localhost/test.php You should see the java properties at the bottom of the page. Additional (feature-) tests are in the source tar.bz download, in the folders php-java-bridge-2.0.8/tests.php4 and php-java-bridge-2.0.8/tests.php5 You can copy these to /var/www/html and run them by browsing to http://localhost/tests.php4/ etc. Regards, Jost Boekemeier ___________________________________________________________ Was denken Sie über E-Mail? Wir hören auf Ihre Meinung: http://surveylink.yahoo.com/wix/p0379378.aspx |
From: Jim D. <jd...@ho...> - 2005-10-01 06:51:48
|
This is what I get.. #!/usr/bin/php Please permanently activate the extension. Loading java extension now... java extension not installed. Jim >From: Jost Boekemeier <jos...@ya...> >To: Jim Douglas ><jd...@ho...>,php...@li... >Subject: Ant: [Php-java-bridge-users] Testing the bridge >Date: Fri, 30 Sep 2005 17:44:59 +0200 (CEST) > >Hi Jim, > > > > What is the best way to test it out to make sure > > it's functioning ok. > >please copy the >/usr/share/doc/php-java-bridge-2.0.8/test.php to >/var/www/html/ > >and browse to http://localhost/test.php > >You should see the java properties at the bottom of >the page. > >Additional (feature-) tests are in the source tar.bz >download, in the folders >php-java-bridge-2.0.8/tests.php4 and >php-java-bridge-2.0.8/tests.php5 > >You can copy these to /var/www/html and run them by >browsing to http://localhost/tests.php4/ etc. > > >Regards, >Jost Boekemeier > > > > >___________________________________________________________ >Was denken Sie über E-Mail? Wir hören auf Ihre Meinung: >http://surveylink.yahoo.com/wix/p0379378.aspx > > >------------------------------------------------------- >This SF.Net email is sponsored by: >Power Architecture Resource Center: Free content, downloads, discussions, >and more. http://solutions.newsforge.com/ibmarch.tmpl >_______________________________________________ >php-java-bridge-users mailing list >php...@li... >https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
From: Jost B. <jos...@ya...> - 2005-10-02 19:37:11
|
Hi, > #!/usr/bin/php Please permanently activate the > extension. Loading java > extension now... java extension not installed. what is the result of the commands: rpm -q --whatprovides php-java-bridge rpm -q --whatprovides php and ls -Z /usr/lib/php/modules/java.so Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: Jim D. <jd...@ho...> - 2005-10-02 22:03:38
|
>rpm -q --whatprovides php-java-bridge php-java-bridge-2.0.8-1 >rpm -q --whatprovides php php-5.0.4-10 >ls -Z /usr/lib/php/modules/java.so /usr/lib/php/modules/java.so Jim >From: Jost Boekemeier <jos...@ya...> >To: Jim Douglas <jd...@ho...>, >php...@li... >Subject: Ant: RE: Ant: [Php-java-bridge-users] Testing the bridge >Date: Sat, 1 Oct 2005 13:59:35 +0200 (CEST) > >Hi, > > > #!/usr/bin/php Please permanently activate the > > extension. Loading java > > extension now... java extension not installed. > >what is the result of the commands: > >rpm -q --whatprovides php-java-bridge >rpm -q --whatprovides php > >and > >ls -Z /usr/lib/php/modules/java.so > > >Regards, >Jost Boekemeier > > > > > > > >___________________________________________________________ >Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier >anmelden: http://mail.yahoo.de |
From: Jim D. <jd...@ho...> - 2005-10-03 00:26:10
|
Jost, Where can I get a copy of the JavaBridge.war to deploy to my Tomcat server? Jim |
From: Jost B. <jos...@ya...> - 2005-10-03 15:42:48
|
Hi, > Where can I get a copy of the JavaBridge.war to > deploy to my Tomcat > server? It's in the j2ee download, please see http://prdownloads.sourceforge.net/php-java-bridge/php-java-bridge.j2ee_2.0.8.zip?download Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: Jim D. <jd...@ho...> - 2005-10-04 00:43:42
|
Jost, I deployed the WAR file and got a confirmation that it is working in the browser by browsing http://localhost:8080/JavaBridge/test.php and the other files. The only problem is it says it is version 5.0.4. I have version PHP 5.0.5 installed...I don't think that should be a problem. Do you? One more issue I have is trying to get these PHP pages served up from my deployed STRUTS app. Do I need to copy the deployed files from the JavaBridge.war deployment directories into my deployed app directories? I think if you work through this with me it would be great for all who follow. Jim, Direction for all who follow, Directions to install on Fedora 4.0 with Apache 2.0.44 and Tomcat 5.5 1 Download and install php-java-bridge-2.0.8-1.FC4.i386.rpm 2 Download the WAR file from http://prdownloads.sourceforge.net/php-java-bridge/php-java-bridge.j2ee_2.0.8.zip?download Now copy it into into your app server deployment directory...and browse http://localhost:8080/JavaBridge/test.php 3 To integrate with STRUTS ???? >From: Jost Boekemeier <jos...@ya...> >To: Jim Douglas <jd...@ho...>, >php...@li... >Subject: Ant: [Php-java-bridge-users] JavaBridge.war >Date: Mon, 3 Oct 2005 17:41:51 +0200 (CEST) > >Hi, > > > Where can I get a copy of the JavaBridge.war to > > deploy to my Tomcat > > server? > >It's in the j2ee download, please see >http://prdownloads.sourceforge.net/php-java-bridge/php-java-bridge.j2ee_2.0.8.zip?download > > >Regards, >Jost Boekemeier > > > > > > > >___________________________________________________________ >Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier >anmelden: http://mail.yahoo.de |
From: Jost B. <jos...@ya...> - 2005-10-04 16:22:43
|
Hi, > files. The only problem is it says it is version > 5.0.4. I have version PHP 5.0.5 installed... Well, you have php 5.0.4 installed from RPM (in /usr/) and this is what the bridge uses. Everything you've installed in /usr/local/ is ignored intentionally unless you install *all* components (apache, mod_jk, tomcat, php and the php/java bridge) into this directory and remove the default (system-) components. But you can copy your version of php to the $CATALINA_HOME/webapps/JavaBridge/WEB-INF/cgi/ folder, please see the README in that folder for details. > One more issue I have is trying to get these PHP > pages served up from my > deployed STRUTS app. Do I need to copy the deployed > files from the > JavaBridge.war deployment directories into my > deployed app directories? The PHP/Java Bridge needs the JavaBridge.jar in the WEB-INF/lib/ folder and the PhpJavaServlet in the WEB-INF/classes folder. It also needs the servlet mapping from the web.xml merged into your web.xml. I am currently creating a demo .ear which uses JSF (struts) and the php/java bridge. I think I will have more information this weekend. Please see PR1309610 (http://sourceforge.net/tracker/index.php?func=detail&aid=1309610&group_id=117793&atid=679233) Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: Jim D. <jd...@ho...> - 2005-10-08 17:11:43
|
Jost, When I tried this cp /usr/bin/php . chmod +x php in the $CATALINA_HOME/webapps/JavaBridge/WEB-INF/cgi/ folder, so I could use my version of PHP I get a blank page returned? Jim >From: Jost Boekemeier <jos...@ya...> >To: Jim Douglas <jd...@ho...>, >php...@li... >Subject: Ant: RE: Ant: [Php-java-bridge-users] JavaBridge.war >Date: Tue, 4 Oct 2005 18:22:29 +0200 (CEST) > >Hi, > > > files. The only problem is it says it is version > > 5.0.4. I have version PHP 5.0.5 installed... > >Well, you have php 5.0.4 installed from RPM (in /usr/) >and this is what the bridge uses. Everything you've >installed in /usr/local/ is ignored intentionally >unless you install *all* components (apache, mod_jk, >tomcat, php and the php/java bridge) into this >directory and remove the default (system-) components. > >But you can copy your version of php to the >$CATALINA_HOME/webapps/JavaBridge/WEB-INF/cgi/ folder, >please see the README in that folder for details. > > > > One more issue I have is trying to get these PHP > > pages served up from my > > deployed STRUTS app. Do I need to copy the deployed > > files from the > > JavaBridge.war deployment directories into my > > deployed app directories? > >The PHP/Java Bridge needs the JavaBridge.jar in the >WEB-INF/lib/ folder and the PhpJavaServlet in the >WEB-INF/classes folder. It also needs the servlet >mapping from the web.xml merged into your web.xml. > >I am currently creating a demo .ear which uses JSF >(struts) and the php/java bridge. I think I will have >more information this weekend. > > >Please see PR1309610 >(http://sourceforge.net/tracker/index.php?func=detail&aid=1309610&group_id=117793&atid=679233) > > >Regards, >Jost Boekemeier > > > > > > > >___________________________________________________________ >Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier >anmelden: http://mail.yahoo.de |
From: Jost B. <jos...@ya...> - 2005-10-10 18:50:05
|
Hi, > my version of PHP I get a blank page returned? recent versions of php have error reporting switched off. Another reason might be that your version of php is not a cgi but a cli binary (this happens if you compile for apache for example). The usual to debug these problems is to call php via strace. Please rename the cgi/php into cgi/php.bin and create a file cgi/php with the following content: #!/bin/sh strace -s160 /path/to/your/php/cgi/binary 2>/tmp/error.log and make it executable with the command: chmod +x cgi/php In the /tmp/error.log one should see the error message as well as the location of the php.ini file that is used. Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: Jim D. <jd...@ho...> - 2005-10-11 00:19:02
|
Jost, It looks like it is using the right ini file, but still no luck.. Jim execve("/usr/opt/tomcat/webapps/JavaBridge/WEB-INF/cgi/php.bin", ["/usr/opt/tomcat/webapps/JavaBridge/WEB-INF/cgi/php.bin"], [/* 33 vars */]) = 0 brk(0) = 0x899c000 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f5c000 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/tls/i686/sse2/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/tls/i686/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/tls/sse2/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/tls/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/i686/sse2/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/i686/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/sse2/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=74975, ...}) = 0 old_mmap(NULL, 74975, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f49000 close(3) = 0 open("/lib/libcrypt.so.1", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360\7\0\0004\0\0\0\270`\0\0\0\0\0\0004\0 \0\10\0(\0\36\0\35\0\6\0\0\0004\0\0\0004\0\0\0004\0\0\0\0\1\0\0\0\1\0\0\5\0\0\0\4\0\0\0\3\0\0\0#A\0\0#A\0\0#A\0\0\23\0\0\0\23\0\0\0\4\0\0\0\1\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0<A\0\0<A\0\0\5\0\0\0\0\20\0\0\1\0\0\0\360N"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=25960, ...}) = 0 old_mmap(NULL, 184604, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7f1b000 old_mmap(0xb7f20000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4000) = 0xb7f20000 old_mmap(0xb7f22000, 155932, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7f22000 close(3) = 0 open("/usr/interbase/lib/tls/i686/sse2/libgds.so", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/tls/i686/libgds.so", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/tls/sse2/libgds.so", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/tls/libgds.so", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/i686/sse2/libgds.so", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/i686/libgds.so", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/sse2/libgds.so", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/libgds.so", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/lib/libgds.so", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20\321\0\0004\0\0\0\324\313\4\0\0\0\0\0004\0 \0\3\0(\0\25\0\22\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\310\315\3\0\310\315\3\0\5\0\0\0\0\20\0\0\1\0\0\0\340\315\3\0\340\335\3\0\340\335\3\0x\363\0\0\4.\1\0\6\0\0\0\0\20\0\0\2\0\0\0\310\300\4\0\310\320\4\0\310\320\4\0\220"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=355176, ...}) = 0 old_mmap(NULL, 330724, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7eca000 old_mmap(0xb7f07000, 69632, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3c000) = 0xb7f07000 old_mmap(0xb7f18000, 11236, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7f18000 mprotect(0xbf879000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC|PROT_GROWSDOWN) = 0 close(3) = 0 open("/usr/interbase/lib/tls/i686/sse2/libresolv.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/tls/i686/libresolv.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/tls/sse2/libresolv.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/tls/libresolv.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/i686/sse2/libresolv.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/i686/libresolv.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/sse2/libresolv.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/libresolv.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) open("/lib/libresolv.so.2", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320#\0\0004\0\0\0000\36\1\0\0\0\0\0004\0 \0\10\0(\0\37\0\36\0\6\0\0\0004\0\0\0004\0\0\0004\0\0\0\0\1\0\0\0\1\0\0\5\0\0\0\4\0\0\0\3\0\0\0\344\345\0\0\344\345\0\0\344\345\0\0\23\0\0\0\23\0\0\0\4\0\0\0\1\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\374\345\0\0\374\345\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=74504, ...}) = 0 old_mmap(NULL, 75880, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7eb7000 old_mmap(0xb7ec6000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xe000) = 0xb7ec6000 old_mmap(0xb7ec8000, 6248, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7ec8000 close(3) = 0 open("/usr/interbase/lib/tls/i686/sse2/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/tls/i686/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/tls/sse2/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/tls/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/i686/sse2/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/i686/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/sse2/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory) open("/lib/libm.so.6", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0203\0\0004\0\0\0\214\363\2\0\0\0\0\0004\0 \0\t\0(\0\"\0!\0\6\0\0\0004\0\0\0004\0\0\0004\0\0\0 \1\0\0 \1\0\0\5\0\0\0\4\0\0\0\3\0\0\0x\v\2\0x\v\2\0x\v\2\0\23\0\0\0\23\0\0\0\4\0\0\0\1\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0P\33\2\0P\33\2\0\5\0\0\0\0\20\0\0\1\0\0\0\344"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=194780, ...}) = 0 old_mmap(NULL, 143520, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7e93000 old_mmap(0xb7eb5000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x21000) = 0xb7eb5000 close(3) = 0 open("/usr/interbase/lib/tls/i686/sse2/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/tls/i686/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/tls/sse2/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/tls/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/i686/sse2/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/i686/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/sse2/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) open("/lib/libdl.so.2", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0\f\0\0004\0\0\0\3203\0\0\0\0\0\0004\0 \0\10\0(\0\37\0\36\0\6\0\0\0004\0\0\0004\0\0\0004\0\0\0\0\1\0\0\0\1\0\0\5\0\0\0\4\0\0\0\3\0\0\0F\33\0\0F\33\0\0F\33\0\0\23\0\0\0\23\0\0\0\4\0\0\0\1\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0`\33\0\0`\33\0\0\5\0\0\0\0\20\0\0\1\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=14504, ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7e92000 old_mmap(NULL, 12404, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7e8e000 old_mmap(0xb7e90000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1000) = 0xb7e90000 close(3) = 0 open("/usr/interbase/lib/tls/i686/sse2/libnsl.so.1", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/tls/i686/libnsl.so.1", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/tls/sse2/libnsl.so.1", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/tls/libnsl.so.1", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/i686/sse2/libnsl.so.1", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/i686/libnsl.so.1", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/sse2/libnsl.so.1", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/libnsl.so.1", O_RDONLY) = -1 ENOENT (No such file or directory) open("/lib/libnsl.so.1", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p5\0\0004\0\0\0lo\1\0\0\0\0\0004\0 \0\10\0(\0\36\0\35\0\6\0\0\0004\0\0\0004\0\0\0004\0\0\0\0\1\0\0\0\1\0\0\5\0\0\0\4\0\0\0\3\0\0\0t\21\1\0t\21\1\0t\21\1\0\23\0\0\0\23\0\0\0\4\0\0\0\1\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\214\21\1\0\214\21\1\0\5\0\0\0\0\20\0\0\1\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=95260, ...}) = 0 old_mmap(NULL, 88064, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7e78000 old_mmap(0xb7e8a000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x11000) = 0xb7e8a000 old_mmap(0xb7e8c000, 6144, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7e8c000 close(3) = 0 open("/usr/interbase/lib/tls/i686/sse2/libxml2.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/tls/i686/libxml2.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/tls/sse2/libxml2.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/tls/libxml2.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/i686/sse2/libxml2.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/i686/libxml2.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/sse2/libxml2.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/libxml2.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/lib/libxml2.so.2", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340\232\1\0004\0\0\0\220\16\21\0\0\0\0\0004\0 \0\5\0(\0\32\0\31\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\304\221\20\0\304\221\20\0\5\0\0\0\0\20\0\0\1\0\0\0\304\221\20\0\304\241\20\0\304\241\20\0\334{\0\0\260\212\0\0\6\0\0\0\0\20\0\0\2\0\0\0\354\252\20\0\354\272\20\0\354"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=1118880, ...}) = 0 old_mmap(NULL, 1125492, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7d65000 old_mmap(0xb7e6f000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x109000) = 0xb7e6f000 old_mmap(0xb7e77000, 3188, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7e77000 close(3) = 0 open("/usr/interbase/lib/tls/i686/sse2/libz.so.1", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/tls/i686/libz.so.1", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/tls/sse2/libz.so.1", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/tls/libz.so.1", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/i686/sse2/libz.so.1", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/i686/libz.so.1", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/sse2/libz.so.1", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/libz.so.1", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/lib/libz.so.1", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320\26\0\0004\0\0\0x\35\1\0\0\0\0\0004\0 \0\5\0(\0\32\0\31\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\310\31\1\0\310\31\1\0\5\0\0\0\0\20\0\0\1\0\0\0\310\31\1\0\310)\1\0\310)\1\0\300\2\0\0\304\2\0\0\6\0\0\0\0\20\0\0\2\0\0\0\210\32\1\0\210*\1\0\210*\1\0\310\0\0\0\310\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=74120, ...}) = 0 old_mmap(NULL, 76940, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7d52000 old_mmap(0xb7d64000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x11000) = 0xb7d64000 close(3) = 0 open("/usr/interbase/lib/tls/i686/sse2/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/tls/i686/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/tls/sse2/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/tls/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/i686/sse2/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/i686/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/sse2/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory) open("/lib/libc.so.6", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\nO\1\0004\0\0\0<\244\26\0\0\0\0\0004\0 \0\n\0(\0A\0@\0\6\0\0\0004\0\0\0004\0\0\0004\0\0\0@\1\0\0@\1\0\0\5\0\0\0\4\0\0\0\3\0\0\0\240\314\21\0\240\314\21\0\240\314\21\0\23\0\0\0\23\0\0\0\4\0\0\0\1\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\351:\22\0\351:\22\0\5\0\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=1486436, ...}) = 0 old_mmap(NULL, 1219548, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7c28000 old_mmap(0xb7d4c000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x124000) = 0xb7d4c000 old_mmap(0xb7d50000, 7132, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7d50000 close(3) = 0 open("/usr/interbase/lib/tls/i686/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/tls/i686/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/tls/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/tls/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/i686/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/i686/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/tls/i686/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/tls/i686/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/tls/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/tls/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/i686/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/i686/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/interbase/lib/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory) open("/lib/libpthread.so.0", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\204G\0\0004\0\0\0\210\177\1\0\0\0\0\0004\0 \0\t\0(\0$\0#\0\6\0\0\0004\0\0\0004\0\0\0004\0\0\0 \1\0\0 \1\0\0\5\0\0\0\4\0\0\0\3\0\0\0\230\305\0\0\230\305\0\0\230\305\0\0\23\0\0\0\23\0\0\0\4\0\0\0\1\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\360\320\0\0\360\320\0\0\5\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=99624, ...}) = 0 old_mmap(NULL, 70084, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7c16000 old_mmap(0xb7c24000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xd000) = 0xb7c24000 old_mmap(0xb7c26000, 4548, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7c26000 close(3) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7c15000 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7c14000 set_thread_area({entry_number:-1 -> 6, base_addr:0xb7c146c0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0 mprotect(0xb7c24000, 4096, PROT_READ) = 0 mprotect(0xb7d4c000, 8192, PROT_READ) = 0 mprotect(0xb7e8a000, 4096, PROT_READ) = 0 mprotect(0xb7e90000, 4096, PROT_READ) = 0 mprotect(0xb7eb5000, 4096, PROT_READ) = 0 mprotect(0xb7ec6000, 4096, PROT_READ) = 0 mprotect(0xb7f20000, 4096, PROT_READ) = 0 mprotect(0xb7f78000, 4096, PROT_READ) = 0 munmap(0xb7f49000, 74975) = 0 set_tid_address(0xb7c14708) = 4977 rt_sigaction(SIGRTMIN, {0xb7c1a340, [], SA_SIGINFO}, NULL, 8) = 0 rt_sigaction(SIGRT_1, {0xb7c1a3a8, [], SA_RESTART|SA_SIGINFO}, NULL, 8) = 0 rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0 getrlimit(RLIMIT_STACK, {rlim_cur=10240*1024, rlim_max=RLIM_INFINITY}) = 0 _sysctl({{CTL_KERN, KERN_VERSION}, 2, 0xbf879270, 30, (nil), 0}) = 0 rt_sigaction(SIGPIPE, {SIG_IGN}, {SIG_DFL}, 8) = 0 brk(0) = 0x899c000 brk(0x89bd000) = 0x89bd000 open("/etc/localtime", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=1267, ...}) = 0 fstat64(3, {st_mode=S_IFREG|0644, st_size=1267, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f5b000 read(3, "TZif\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\4\0\0\0\4\0\0\0\0\0\0\0\353\0\0\0\4\0\0\0\20\236\246\36p\237\272\353`\240\206\0p\241\232\315`\242e\342p\243\203\351\340\244j\256p\2455\247`\246S\312\360\247\25\211`\2503\254\360\250\376\245\340\252\23\216\360\252\336\207\340\253\363p\360\254\276i\340\255\323R\360\256"..., 4096) = 1267 close(3) = 0 munmap(0xb7f5b000, 4096) = 0 open("/usr/opt/tomcat/webapps/JavaBridge/WEB-INF/cgi//php-cli.ini", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/local/lib/php-cli.ini", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/opt/tomcat/webapps/JavaBridge/WEB-INF/cgi//php.ini", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/local/lib/php.ini", O_RDONLY) = 3 getcwd("/usr/opt/tomcat/webapps/JavaBridge/WEB-INF/cgi", 4096) = 47 lstat64("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 lstat64("/usr/local", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 lstat64("/usr/local/lib", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 lstat64("/usr/local/lib/php.ini", {st_mode=S_IFREG|0644, st_size=45595, ...}) = 0 ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbf879128) = -1 ENOTTY (Inappropriate ioctl for device) fstat64(3, {st_mode=S_IFREG|0644, st_size=45595, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f5b000 read(3, "[PHP]\n\n;;;;;;;;;;;;;;;;;;;\n; About php.ini ;\n;;;;;;;;;;;;;;;;;;;\n; This file controls many aspects of PHP\'s behavior. In order for PHP to\n; read it, it must "..., 8192) = 8192 read(3, "f the output of your scripts to a function. For\n; example, if you set output_handler to \"mb_output_handler\", character\n; encoding will be transparently convert"..., 8192) = 8192 read(3, "y encouraged to turn this feature off, and use error logging\n; instead (see below). Keeping display_errors enabled on a production web site\n; may reveal securi"..., 8192) = 8192 read(3, "er to allow the treatment of URLs (like http:// or ftp://) as files.\nallow_url_fopen = On\n\n; Define the anonymous ftp password (your email address)\n;from=\"john@"..., 8192) = 8192 read(3, "-CT]\n; Allow or prevent persistent links.\nsybct.allow_persistent = On\n\n; Maximum number of persistent links. -1 means no limit.\nsybct.max_persistent = -1\n\n; Ma"..., 8192) = 8192 read(3, "r\nmssql.secure_connection = Off\n\n; Specify max number of processes. Default = 25\n;mssql.max_procs = 25\n\n[Assertion]\n; Assert(expr); active by default.\n;assert.a"..., 8192) = 4635 read(3, "", 4096) = 0 read(3, "", 8192) = 0 close(3) = 0 munmap(0xb7f5b000, 4096) = 0 brk(0x89de000) = 0x89de000 brk(0x89ff000) = 0x89ff000 futex(0xb7e77adc, FUTEX_WAKE, 2147483647) = 0 brk(0x8a20000) = 0x8a20000 setitimer(ITIMER_PROF, {it_interval={0, 0}, it_value={0, 0}}, NULL) = 0 setitimer(ITIMER_PROF, {it_interval={0, 0}, it_value={0, 0}}, NULL) = 0 rt_sigaction(SIGPROF, {0x81701c8, [PROF], SA_RESTART}, {SIG_DFL}, 8) = 0 rt_sigprocmask(SIG_UNBLOCK, [PROF], NULL, 8) = 0 setitimer(ITIMER_PROF, {it_interval={0, 0}, it_value={60, 0}}, NULL) = 0 rt_sigaction(SIGPROF, {0x81701c8, [PROF], SA_RESTART}, {0x81701c8, [PROF], SA_RESTART}, 8) = 0 rt_sigprocmask(SIG_UNBLOCK, [PROF], NULL, 8) = 0 gettimeofday({1128988605, 771875}, NULL) = 0 getcwd("/usr/opt/tomcat/webapps/JavaBridge/WEB-INF/cgi", 4096) = 47 lstat64("/usr/opt/tomcat/webapps/JavaBridge/WEB-INF/cgi/-", 0xbf8771bc) = -1 ENOENT (No such file or directory) setitimer(ITIMER_PROF, {it_interval={0, 0}, it_value={0, 0}}, NULL) = 0 rt_sigaction(SIGPROF, {0x81701c8, [PROF], SA_RESTART}, {0x81701c8, [PROF], SA_RESTART}, 8) = 0 rt_sigprocmask(SIG_UNBLOCK, [PROF], NULL, 8) = 0 ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbf877038) = -1 EINVAL (Invalid argument) brk(0x8a42000) = 0x8a42000 fstat64(0, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f5b000 read(0, "", 8192) = 0 close(0) = 0 munmap(0xb7f5b000, 4096) = 0 setitimer(ITIMER_PROF, {it_interval={0, 0}, it_value={0, 0}}, NULL) = 0 setitimer(ITIMER_PROF, {it_interval={0, 0}, it_value={30, 0}}, NULL) = 0 rt_sigaction(SIGPROF, {0x81701c8, [PROF], SA_RESTART}, {0x81701c8, [PROF], SA_RESTART}, 8) = 0 rt_sigprocmask(SIG_UNBLOCK, [PROF], NULL, 8) = 0 setitimer(ITIMER_PROF, {it_interval={0, 0}, it_value={0, 0}}, NULL) = 0 exit_group(0) = ? >From: Jost Boekemeier <jos...@ya...> >To: Jim Douglas ><jd...@ho...>,php...@li... >Subject: PHP creates an empty page (Was: Ant: RE: Ant: RE: Ant: >[Php-java-bridge-users] JavaBridge.war) >Date: Mon, 10 Oct 2005 20:49:56 +0200 (CEST) > >Hi, > > > my version of PHP I get a blank page returned? > >recent versions of php have error reporting switched >off. Another reason might be that your version of php >is not a cgi but a cli binary (this happens if you >compile for apache for example). > >The usual to debug these problems is to call php via >strace. > >Please rename the cgi/php into cgi/php.bin and create >a file cgi/php with the following content: >#!/bin/sh >strace -s160 /path/to/your/php/cgi/binary >2>/tmp/error.log > >and make it executable with the command: >chmod +x cgi/php > >In the /tmp/error.log one should see the error message >as well as the location of the php.ini file that is >used. > > >Regards, >Jost Boekemeier > > > > > > > >___________________________________________________________ >Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier >anmelden: http://mail.yahoo.de > > >------------------------------------------------------- >This SF.Net email is sponsored by: >Power Architecture Resource Center: Free content, downloads, discussions, >and more. http://solutions.newsforge.com/ibmarch.tmpl >_______________________________________________ >php-java-bridge-users mailing list >php...@li... >https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
From: Jost B. <jos...@ya...> - 2005-10-11 17:40:40
|
Hi Jim, the trace is okay and php has completed. Could it be that you have copied the cli version into the cgi folder? cgi/php -i must display HTML output, if it displays plain ascii text (without HTML tags), that's the command line version of php. RedHat Fedora 4 contains both versions: /usr/bin/php and /usr/bin/php-cgi. Please use php-cgi instead. Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |