You can subscribe to this list here.
2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(6) |
Oct
(6) |
Nov
(8) |
Dec
(2) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
(19) |
Feb
(15) |
Mar
(10) |
Apr
(8) |
May
(7) |
Jun
(9) |
Jul
(13) |
Aug
(31) |
Sep
(111) |
Oct
(52) |
Nov
(72) |
Dec
(42) |
2006 |
Jan
(21) |
Feb
(32) |
Mar
(33) |
Apr
(24) |
May
(15) |
Jun
(40) |
Jul
(32) |
Aug
(19) |
Sep
(38) |
Oct
(37) |
Nov
(63) |
Dec
(37) |
2007 |
Jan
(18) |
Feb
(39) |
Mar
(69) |
Apr
(49) |
May
(71) |
Jun
(59) |
Jul
(71) |
Aug
(85) |
Sep
(46) |
Oct
(14) |
Nov
(25) |
Dec
(56) |
2008 |
Jan
(24) |
Feb
(77) |
Mar
(104) |
Apr
(44) |
May
(41) |
Jun
(11) |
Jul
(31) |
Aug
(59) |
Sep
(44) |
Oct
(86) |
Nov
(66) |
Dec
(93) |
2009 |
Jan
(88) |
Feb
(41) |
Mar
(49) |
Apr
(135) |
May
(22) |
Jun
(31) |
Jul
(60) |
Aug
(71) |
Sep
(76) |
Oct
(18) |
Nov
(52) |
Dec
(20) |
2010 |
Jan
(8) |
Feb
(50) |
Mar
(35) |
Apr
(48) |
May
(46) |
Jun
(84) |
Jul
(38) |
Aug
(61) |
Sep
(51) |
Oct
(31) |
Nov
(17) |
Dec
(18) |
2011 |
Jan
(51) |
Feb
(14) |
Mar
(17) |
Apr
(23) |
May
(15) |
Jun
(11) |
Jul
(5) |
Aug
(5) |
Sep
(15) |
Oct
(8) |
Nov
(5) |
Dec
(25) |
2012 |
Jan
(2) |
Feb
(4) |
Mar
(6) |
Apr
(9) |
May
(27) |
Jun
(32) |
Jul
(36) |
Aug
(10) |
Sep
(16) |
Oct
(3) |
Nov
(13) |
Dec
(7) |
2013 |
Jan
(1) |
Feb
(4) |
Mar
|
Apr
(1) |
May
|
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(4) |
Oct
(2) |
Nov
(1) |
Dec
|
2014 |
Jan
|
Feb
|
Mar
(2) |
Apr
(1) |
May
(2) |
Jun
(9) |
Jul
(5) |
Aug
(2) |
Sep
(4) |
Oct
|
Nov
|
Dec
|
2015 |
Jan
(3) |
Feb
(2) |
Mar
(4) |
Apr
(3) |
May
(1) |
Jun
(2) |
Jul
|
Aug
(2) |
Sep
(5) |
Oct
(1) |
Nov
|
Dec
|
2016 |
Jan
|
Feb
(5) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(5) |
Sep
(3) |
Oct
|
Nov
|
Dec
|
2017 |
Jan
(6) |
Feb
|
Mar
|
Apr
(10) |
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(1) |
Dec
|
2018 |
Jan
(2) |
Feb
(5) |
Mar
|
Apr
|
May
(1) |
Jun
(3) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2020 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
2021 |
Jan
(5) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2023 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <php...@li...> - 2006-07-09 03:05:19
|
because i use xampp,and my php and apache is not like 'c:/php' so i wanna change java_require path |
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: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: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-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 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 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 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-02 21:01:18
|
Hi Pat, thank you for looking into this. Versions 3.1.2 and 3.1.3 indeed have a bug which might cause a crash on Solaris and Windows; the java.c contains a new global variable which was not properly initialized. On OS which return uninitialized data for alloc_globals_ctor (i.e. every OS except Linux), the bridge crashed in rshutdown. I have created a new download, 3.1.4 which should work properly on Solaris. It also contains a java.so and php-cgi, so the test.sh should now work on Solaris x86, too. I could prepare an update for 3.0.8, if you want it, but I hope that this is not necessary, if 3.1.4 is stable enough. Regards, Jost Boekemeier P.S: Patch for the unitialized cb stack: http://php-java-bridge.cvs.sourceforge.net/php-java-bridge/php-java-bridge/java.c?r1=1.126&r2=1.127&sortby=date&diff_format=u ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2006-06-30 18:05:42
|
Hi Jost, Sorry I haven't been able to look at this for a while... SourceForge.net wrote: > does version 3.1.0 fix this problem? If so, I'll provide a > patch for 3.0.8. > I see the latest version is 3.1.3 - do you want me to verify against that one? Cheers, Pat -- ------------------------------------------------------------------------ Pat Patterson <mailto:pat...@su...> Federation Architect Superpatterns <http://blogs.sun.com/roller/page/superpat> blog, Planet Identity <http://planetidentity.org> Identity Management Products <http://www.sun.com/identity> /Sun Microsystems, Inc. <http://www.sun.com/>/ ------------------------------------------------------------------------ |
From: <php...@li...> - 2006-06-30 17:32:53
|
Hi, > keeping my .jars). The jars are being found okay, > but the .properties files are not. I think it should be possible to add /usr/share/java/ and extension_dir/lib/ to java_ext_dirs, so that the static loader can load .class files and other resources from those directories. In the meantime just jar them or use the dynamic loader. Add: java_require("path/to/resource_dir/") at the beginning of your scripts. Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: <php...@li...> - 2006-06-29 22:17:06
|
Is there any support to allow a Java class that is being used by the php-java-bridge to use a .properties file? I have many that I put into my /etc/share/java/ directory (which is where I'm keeping my .jars). The jars are being found okay, but the .properties files are not. Any idea of how to fix this? Thanks. --------------------------------- The all-new Yahoo! Mail goes wherever you go - free your email address from your Internet provider. |
From: <php...@li...> - 2006-06-28 18:16:10
|
Hi, > Stand-Alone - the architecture is as follows > > Browser - Apache - CGI - PHP - PHP/JAVA-Bridge - > sun-jre binary In this case the bridge doesn't create any cookies. PHP must do that: session_start(); if(is_null($_SESSION["var"])) $_SESSION["var"]=new Java("java.lang.StringBuffer"); $val=$_SESSION["var"]; ...your script... session_write_close(); should work. But this way you cannot share the php session with java servlets or JSP, of course. BTW: Why CGI within Apache? Isn't the Apache SAPI good enough? -- Privilege dropping isn't as effective as strong security contexts, but I don't know if Gentoo supports Security Enhanced Linux contexts. Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2006-06-27 23:27:07
|
Hi Jost thx for the very long response - I think you missunderstood some details (I didnt provide so much detaisl that I was not aware off....) > probably because the browser does not accept the > cookie for some reason. PHP scripts usually send a No Cookie is sent at all....so I guess this is the main problem. > When running the back-end within a servlet engine or > AS , the servlet engine or AS generates page I run no servlet engine but the sun-jre directly >> with SUPHP > What is SUPHP? A SuEXEC wrapper designed for php - www.suphp.org - in fact its a small extension that changes the user and than forks off a shell running the php script - but it doesnt matter as the problem persists without suphp when using php-cgi >> Problem: I tried the example script for session >> usage withput success. > > What happens when you click on the sessionSharing.jsp > link at the bottom of the page does that increase the > value? And what are the properties of the generated > cookie, what's the PATH value for example? as written above - nothing happens, always get "new session, var:2", I dont receive a cookie...(its not a browser denial, I sniffed the traffic and no cookie headers are sent - cookies work with php session, so that seems to be ok) > I am not sure what you mean with "named sessions", but > java_session() at the beginning of the script is all > you need. java_session("mySession") - iiuc the given string is a kind of token to identify the session. > You've mentioned that session sharing works when > running in apache. Do you use the servlet back-end or > the standalone back-end? The standalone back-end uses > the PATH value /, so I guess the PATH value is the > problem. Stand-Alone - the architecture is as follows Browser - Apache - CGI - PHP - PHP/JAVA-Bridge - sun-jre binary > Can you please open a ticket (please use > http://sourceforge.net/tracker/?func=add&group_id=117793&atid=679233) > and set the java.log_level to 5 and attach the > generated log and the value of the generated cookie > (PATH, etc.) there? Will do so tomorrow... > If you run a FastCGI server please also generate a > trace: no I dont regards Oliver -- Diese Nachricht wurde digital unterschrieben oliwel's public key: http://www.oliwel.de/oliwel.crt Basiszertifikat: http://www.ldv.ei.tum.de/page72 |
From: <php...@li...> - 2006-06-27 19:12:41
|
Hi, > I am unable to use "java_session" in my PHP scripts > and dont have any clues why... probably because the browser does not accept the cookie for some reason. PHP scripts usually send a PATH value / but tomcat creates a PATH value /webapp. If the webapp is JavaBridge, tomcat creates a /JavaBridge cookie, so that sessions from the JavaBridge webapp do not interfere with sessions from myBridge for example. When running the back-end within a servlet engine or AS , the servlet engine or AS generates page templates for PHP, PHP fills in the PHP-based content and returns the result to the browser. The "CGI subcomponent within a servlet engine or AS" is only special case of the above: the servlet forks off a PHP FastCGI server when it starts and passes control to the PHP server which in turn passes control over to the servlet engine. The servlet engine then returns the page template to PHP, PHP passes the page back to the servlet which finally passes the page to the browser. > with SUPHP What is SUPHP? > Problem: I tried the example script for session > usage withput success. What happens when you click on the sessionSharing.jsp link at the bottom of the page does that increase the value? And what are the properties of the generated cookie, what's the PATH value for example? > new timestamps everytime). I tried named sessions and > unnamed sessions, > added php session_start() but nothing works..... I am not sure what you mean with "named sessions", but java_session() at the beginning of the script is all you need. The session_start(); $_SESSION is only syntactic sugar which uses java_session() internally. You've mentioned that session sharing works when running in apache. Do you use the servlet back-end or the standalone back-end? The standalone back-end uses the PATH value /, so I guess the PATH value is the problem. However, there is no technical difference between the CGI component running within a servlet engine or AS, a FastCGI component associated with a servlet engine or AS or a Apache/IIS front-end associated with a servlet engine or AS. They all rely on the servlet/AS back-end to generate the page template and then pass it and the added PHP content to the client. Can you please open a ticket (please use http://sourceforge.net/tracker/?func=add&group_id=117793&atid=679233) and set the java.log_level to 5 and attach the generated log and the value of the generated cookie (PATH, etc.) there? If you run a FastCGI server please also generate a trace: export X_JAVABRIDGE_OVERRIDE_HOSTS=/ strace -s1024 php-cgi -b127.0.0.1:9667 2>protocol.log Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: <php...@li...> - 2006-06-27 11:24:47
|
Hi Folks, I played around a bit - I get it working with PHP as Module... So - are they any known issues, configuration hints, etc for installing the java-bridge with a CGI-driven PHP ? TIA Oliver -- Diese Nachricht wurde digital unterschrieben oliwel's public key: http://www.oliwel.de/oliwel.crt Basiszertifikat: http://www.ldv.ei.tum.de/page72 |
From: <php...@li...> - 2006-06-27 10:15:16
|
Hi Folks, I am unable to use "java_session" in my PHP scripts and dont have any clues why... Setup: Apache 2.0 with PHP 5.1.2-pl1-gentoo, running with SUPHP via cgi, Sun JRE 1.5 and Java-Bridge 3.1.2 (tried 2.0.8 also) Problem: I tried the example script for session usage withput success. Everytime I hit reload, a new session is created (getCreationTime shows new timestamps everytime). I tried named sessions and unnamed sessions, added php session_start() but nothing works..... Any hints ?? Oliver -- Diese Nachricht wurde digital unterschrieben oliwel's public key: http://www.oliwel.de/oliwel.crt Basiszertifikat: http://www.ldv.ei.tum.de/page72 |
From: <php...@li...> - 2006-06-20 18:23:29
|
Hi, while bootstrapping the autoconf files (in server/configure.gnu.in), the configure script already creates a symlink from the system libtool into the current working directory. So I think all we need to do is to check if glibtool is available, check if it is indeed GNU libtool and then symlink glibtool into the current working directory. Something like this: { { libtool=glibtool; glibtool --version } || { libtool=libtool; libtool --version } } && { ln -s `which $libtool` libtool; ${libtool}ize -f } The above change assumes that the Mac version of "libtoolize" is called "glibtoolize", I don't know if it exists. > 1. libtool vs. glibtool > > The bridge requires GNU libtool version 1.4.3 or > higher, which exists on > MacOS 10.4.6 as glibtool. There is ANOTHER utility > called libtool on the > Mac, which is NOT the right tool. > > To solve this issue, make glibtool masquerade as > libtool: > > sudo mv /usr/bin/libtool ~/a.safe.tmp.dir > sudo ln -s /usr/bin/libtool /usr/bin/glibtool Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: <php...@li...> - 2006-06-14 12:08:40
|
dGhrIHWjrGl0IHdvcmsgd2VsbKOso6x1IHIgZ29vZCBwZW9wbGUuCgoyMDA2LzYvMTQsIHBocC1q YXZhLWJyaWRnZS11c2Vyc0BsaXN0cy5zb3VyY2Vmb3JnZS5uZXQgPApwaHAtamF2YS1icmlkZ2Ut dXNlcnNAbGlzdHMuc291cmNlZm9yZ2UubmV0PjoKPgo+IEhpLAo+Cj4gamF2YSBpdCByZXF1aXJl cyB0aGF0IHRoZSBKYXZhIHBhY2thZ2UgaGllcmFyY2h5IG11c3QKPiBtYXRjaCB0aGUgVW5peCBk aXJlY3RvcnkgaGllcmFyY2h5LiBJZiB5b3UgaGF2ZSBhCj4gY2xhc3MgIGZvby5iYXIuQmF6LmNs YXNzLCB0aGlzIGNsYXNzIG11c3QgYmUgcGxhY2VkIGluCj4gdGhlIGRpcmVjdG9yeSBmb28vYmFy LyAob24gd2luZG93czogZm9vXGJhclwpLgo+Cj4gQlRXOiBUaGUgVVJMQ2xhc3NMb2FkZXIgZ29l cyBldmVuIGZ1cnRoZXIgYnkgcmVxdWlyaW5nCj4gdGhhdCBhIGZpbGUgdXJsIHRvIGEgZGlyZWN0 b3J5IG11c3QgZW5kIHdpdGggYSBzbGFzaCwKPiBldmVuIG9uIHdpbmRvd3MuIEZvciBleGFtcGxl IG9uIHdpbmRvd3MKPgo+IGxvYWRlciA9IG5ldyBVUkxDbGFzc0xvYWRlcigpOwo+IGxvYWRlci0+ YWRkVVJMcyhuZXcgVVJMW117ImZpbGU6YzpcXGRpcmVjdG9yeVxcIil9Cj4KPiB3aWxsIGZhaWwg YnV0Cj4KPiBsb2FkZXIgPSBuZXcgVVJMQ2xhc3NMb2FkZXIoKTsKPiBsb2FkZXItPmFkZFVSTHMo bmV3IFVSTFtdeyJmaWxlOmM6XFxkaXJlY3RvcnkvIil9Cj4KPiB3aWxsIHN1Y2NlZWQuCj4KPgo+ ID4gaSBtIGphdmEgbmV3ZXIuIG15IGNvbXBpbGUgcHJvY2VkdXJlIGxpa2UgdGhpczoKPiA+IGph dmFjIHBocHRlc3QuamF2YQo+ID4gamFyIGN2ZiBwaHB0ZXN0LmphciBwaHB0ZXN0LmNsYXNzCj4K PiBta2RpciBqbAo+IG12IHBocHRlc3QuamF2YSBqbAo+IGphdmFjIGpsL3BocHRlc3QuamF2YQo+ IGphciBjdmYgcGhwdGVzdC5qYXIgamwvKi5jbGFzcwo+Cj4gb24gd2luZG93czoKPgo+IG1rZGly IGpsCj4gY29weSBwaHB0ZXN0LmphdmEgamxccGhwdGVzdC5qYXZhCj4gamF2YWMgamxccGhwdGVz dC5qYXZhCj4gamFyIGN2ZiBwaHB0ZXN0LmphciBqbFwqLmNsYXNzCj4KPgo+IFJlZ2FyZHMsCj4g Sm9zdCBCb2VrZW1laWVyCj4KPgo+IF9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fCj4gRG8gWW91IFlhaG9vIT8KPiBTaWUgc2luZCBTcGFtIGxlaWQ/IFlh aG9vISBNYWlsIHZlcmaouWd0IKi5YmVyIGVpbmVuIGhlcmF1c3JhZ2VuZGVuIFNjaHV0ego+IGdl Z2VuIE1hc3Nlbm1haWxzLgo+IGh0dHA6Ly9tYWlsLnlhaG9vLmNvbQo+Cj4KPiBfX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fXwo+IHBocC1qYXZhLWJyaWRnZS11 c2VycyBtYWlsaW5nIGxpc3QKPiBwaHAtamF2YS1icmlkZ2UtdXNlcnNAbGlzdHMuc291cmNlZm9y Z2UubmV0Cj4gaHR0cHM6Ly9saXN0cy5zb3VyY2Vmb3JnZS5uZXQvbGlzdHMvbGlzdGluZm8vcGhw LWphdmEtYnJpZGdlLXVzZXJzCj4K |
From: <php...@li...> - 2006-06-13 16:59:03
|
Hi, java it requires that the Java package hierarchy must match the Unix directory hierarchy. If you have a class foo.bar.Baz.class, this class must be placed in the directory foo/bar/ (on windows: foo\bar\). BTW: The URLClassLoader goes even further by requiring that a file url to a directory must end with a slash, even on windows. For example on windows loader = new URLClassLoader(); loader->addURLs(new URL[]{"file:c:\\directory\\")} will fail but loader = new URLClassLoader(); loader->addURLs(new URL[]{"file:c:\\directory/")} will succeed. > i m java newer. my compile procedure like this: > javac phptest.java > jar cvf phptest.jar phptest.class mkdir jl mv phptest.java jl javac jl/phptest.java jar cvf phptest.jar jl/*.class on windows: mkdir jl copy phptest.java jl\phptest.java javac jl\phptest.java jar cvf phptest.jar jl\*.class Regards, Jost Boekemeier __________________________________________________ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com |
From: <php...@li...> - 2006-06-13 07:44:19
|
> > "In PHP/Java Bridge version 3.0.8 > > jar tvf c:/phptest.jar should display: > > jl/phptest > > META-INF/MANIFEST.MF > > " > i jar tvf c:/phptest.jar not find jl/phptest , only list: META-INF/ META-INF/MANIFEST.MF TxtFileIndexer.class i m java newer. my compile procedure like this: javac phptest.java jar cvf phptest.jar phptest.class is it wrong? |
From: <php...@li...> - 2006-06-12 18:41:59
|
Hi, > package jl; > public class phptest{ ... > public String test(String str) { ... > if i write "java_require("c:/phptest.jar"); $tf =new > Java("jl/phptest");",,,it shows error. > > how can i write it? In PHP/Java Bridge version 3.0.8: jar tvf c:/phptest.jar should display: jl/phptest META-INF/MANIFEST.MF The PHP code may look like: java_require("c:/phptest.jar"); $tf = new Java("jl.phptest"); $tf->test("hello"); In PHP/Java Bridge 3.1.0 you can convert the java library into a PHP class and require it: convert your java library /libraries to PHP code: java -jar JavaBridge.jar --convert c:/php5/pear c:/phptest.jar The above command creates the PHP class jl_phptest in c:/php5/pear/phptest/: <?php /* ini_set("include_path", "c:/php5/pear"); */ require_once("phptest/jl_phptest.php"); $tf = new jl_phptest(); $result = $tf->test("hello"); echo "$result"; ?> Regards, Jost Boekemeier __________________________________________________ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com |
From: <php...@li...> - 2006-06-12 18:23:07
|
Hi [please excuse the delay] > Added 1504821 to Issue Tracker. great, thank you very much for these bug reports! > > X_javabridge_redirect, referer: Interesting. They probably have a hash function which doesn't allow upper case and probably use this function to also hash up headers from applications. I have attached a patch called php-java-bridge-3.0.8.3_to_3.0.8.4.patch, it should fix this and the "ar" issue. I will apply it to 3.0.8 and 3.1.0, when I have some time. Regards, Jost Boekemeier __________________________________________________ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com |
From: <php...@li...> - 2006-06-12 14:59:13
|
Added 1504821 to Issue Tracker. Cheers, Pat php...@li... wrote: > I added some debug output to begin_header in client.c: > > case 'X':// Redirect > { > php_log_err("Got X"); > php_log_err(str); > char *key; > static const char context[] = "X_JAVABRIDGE_CONTEXT"; > static const char redirect[]= "X_JAVABRIDGE_REDIRECT"; > if(!(*ctx)->peer_redirected && !strcmp(str, redirect)) { > php_log_err("redirect"); > > And this is what I get: > > [Sat Jun 10 21:50:47 2006] [error] [client 127.0.0.1] Got X, referer: > http://localhost:81/JavaBridge/index.php > [Sat Jun 10 21:50:47 2006] [error] [client 127.0.0.1] > X_javabridge_redirect, referer: http://localhost:81/JavaBridge/index.php > > But no 'redirect'; the header has been munged to Mixed case, so the > strcmp against redirect fails. I suspect this is happening in the Web > Server implementation of HttpServletResponse. > > HTTP spec (http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2) > states that header field names are case-insensitive, so the comparison > should use strcasecmp. Changing strcmp to strcasecmp in lines 398, 414, > 424 and 444 fixes the problem. > > Hope this is useful, and thanks again for a really useful tool :-) > > Cheers, > > Pat > > php...@li... wrote: > >> I successfully built php-java-bridge_3.0.8.3 on Solaris 10 U1 x86. I'm >> now trying to deploy it. I have Apache 2.2 + PHP5 on the 'client' end, >> Sun Java System Web Server 6.1 SP5 on the server end. >> >> In my php.ini, I have: >> >> extension = java.so >> [java] >> java.hosts = "127.0.0.1:80" >> java.servlet = "/JavaBridge/JavaBridge.phpjavabridge" >> java.log_level="4" >> >> >> After some tweaks to fix some SJSWS specific issues (ensuring that all >> directories in the pat to the shared docs directory are 755, changing >> the ACL to allow PUT), I'm stuck. test.php hangs before it shows the >> bottom of the page. >> >> The WS error log shows an NPE in GlobalRef.get. Here is the whole >> interaction as logged at WS: >> >> [09/Jun/2006:23:10:33] info (21795): for host 127.0.0.1 trying to PUT >> /JavaBridge/JavaBridge.phpjavabridge, service-j2ee reports: WEB2798: >> [/JavaBridge] ServletContext.log(): JavaBridge DEBUG: @1a73d30 --> <C >> v="java.lang.System" p="C" i="136880520" > >> [09/Jun/2006:23:10:33] info (21795): for host 127.0.0.1 trying to PUT >> /JavaBridge/JavaBridge.phpjavabridge, service-j2ee reports: WEB2798: >> [/JavaBridge] ServletContext.log(): JavaBridge DEBUG: @1a73d30 --> </C> >> [09/Jun/2006:23:10:33] info (21795): for host 127.0.0.1 trying to PUT >> /JavaBridge/JavaBridge.phpjavabridge, service-j2ee reports: WEB2798: >> [/JavaBridge] ServletContext.log(): JavaBridge DEBUG: @1a73d30 <-- <O >> v="1" p="O" i="136880520"/> >> [09/Jun/2006:23:10:33] info (21795): for host 127.0.0.1 trying to PUT >> /JavaBridge/JavaBridge.phpjavabridge, service-j2ee reports: WEB2798: >> [/JavaBridge] ServletContext.log(): JavaBridge DEBUG: @1a73d30 >> re-directing to port# Pipe:/var/tmp//.php_java_bridgeC3a4CQ >> [09/Jun/2006:23:10:33] info (21795): for host 127.0.0.1 trying to PUT >> /JavaBridge/JavaBridge.phpjavabridge, service-j2ee reports: WEB2798: >> [/JavaBridge] ServletContext.log(): JavaBridge DEBUG: @1a73d30 --> <I >> v="1" m="getProperties" p="I" i="136886208" > >> [09/Jun/2006:23:10:33] info (21795): for host 127.0.0.1 trying to PUT >> /JavaBridge/JavaBridge.phpjavabridge, service-j2ee reports: WEB2798: >> [/JavaBridge] ServletContext.log(): JavaBridge ERROR: An exception occured >> [09/Jun/2006:23:10:33] failure (21795): for host 127.0.0.1 trying to PUT >> /JavaBridge/JavaBridge.phpjavabridge, service-j2ee reports: WEB2798: >> [/JavaBridge] ServletContext.log(): >> java.lang.NullPointerException >> at php.java.bridge.GlobalRef.get(GlobalRef.java:30) >> at php.java.bridge.Request.getGlobalRef(Request.java:88) >> at php.java.bridge.Request.begin(Request.java:352) >> at php.java.bridge.Parser.CALL_BEGIN(Parser.java:95) >> at php.java.bridge.Parser.parse(Parser.java:156) >> at php.java.bridge.Request.handleRequest(Request.java:460) >> at php.java.bridge.Request.handleRequests(Request.java:493) >> at >> php.java.servlet.PhpJavaServlet.handleSocketConnection(PhpJavaServlet.java:213) >> at php.java.servlet.PhpJavaServlet.doPut(PhpJavaServlet.java:260) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:908) >> at >> org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:771) >> at >> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:322) >> at >> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509) >> at >> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212) >> at >> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509) >> at >> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:209) >> at >> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509) >> at >> com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:161) >> at com.iplanet.ias.web.WebContainer.service(WebContainer.java:580) >> >> 30 seconds later, Apache reports: >> >> [Fri Jun 09 23:11:03 2006] [notice] child pid 21735 exit signal >> Segmentation fault (11) >> >> Any idea what could be happening here? >> >> I'm trying to interpret the trace from the WS error file - extracting >> the relevant stuff, it says: >> >> # $v = new JavaClass("java.lang.System"); >> <C v="java.lang.System" p="C" i="136880520" > >> </C> >> <O v="1" p="O" i="136880520"/> >> >> re-directing to port# Pipe:/var/tmp//.php_java_bridgeC3a4CQ >> >> # $v->getProperties() >> <I v="1" m="getProperties" p="I" i="136886208" > >> >> So the first method invocation returns an object reference '1', which is >> then used in the second invocation, but, by then, this object doesn't >> seem to exist. I can see the redirection to the named pipe in between >> the two calls, but, from the stack trace, the client doesn't seem to be >> following the redirect - it's just doing another PUT. >> >> It looks like the client should be setting the >> X_JAVABRIDGE_OVERRIDE_HOSTS header to override the redirect, but, for >> some reason, it doesn't, so the server doesn't know to preserve the >> context in the second PUT. >> >> Does this all make sense? Any suggestions on tracking this down further? >> >> Cheers, >> >> Pat >> -- ------------------------------------------------------------------------ Pat Patterson <mailto:pat...@su...> Federation Architect Superpatterns <http://blogs.sun.com/roller/page/superpat> blog, Planet Identity <http://planetidentity.org> Identity Management Products <http://www.sun.com/identity> /Sun Microsystems, Inc. <http://www.sun.com/>/ ------------------------------------------------------------------------ |
From: <php...@li...> - 2006-06-12 14:44:53
|
Hi, php...@li... wrote: > ... > if i write "java_require("c:/phptest.jar"); $tf =new > Java("jl/phptest");",,,it shows error. > > how can i write it? I think the syntax is $tf =new Java("jl.phptest"); - dot instead of slash. Cheers, Pat -- ------------------------------------------------------------------------ Pat Patterson <mailto:pat...@su...> Federation Architect Superpatterns <http://blogs.sun.com/roller/page/superpat> blog, Planet Identity <http://planetidentity.org> Identity Management Products <http://www.sun.com/identity> /Sun Microsystems, Inc. <http://www.sun.com/>/ ------------------------------------------------------------------------ |