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: Marek L. <ma...@le...> - 2005-05-07 11:24:37
|
Hello, Right know I'm using php/java bridge as a apache component. In docs it says that it is not meant to be used in production environment. As an alternative solution "system service" is given. I'm using Debian and I have problems with setting up the service. Can anyone help me with this ? Thanks in advance. ML |
From: Jost B. <jos...@ya...> - 2005-04-30 15:58:54
|
The version 2.0.6 of the PHP/Java Bridge is now available. The binary for RedHat Enterprise Linux, RedHat Fedora 1, 2 and 3: http://php-java-bridge.sf.net/php-java-bridge-2.0.6-1.i386.rpm Windows XP: http://php-java-bridge.sf.net/php-java-bridge_2.0.6-win32-php5.zip For the rest: http://php-java-bridge.sf.net/php-java-bridge_2.0.6-pre.tar.bz2 The following features were added: <NONE> The bugs from the following problem reports were fixed: *PR1174918 ("first start bug with charset): The default encoding used for strings is UTF-8. But it can be changed using the java_set_file_encoding("ISO-8896-1") for example. Please see tests.php4/utf8.php, tests.php4/utf8-1.php, tests.php4/utf8-2.php, tests.php4/utf8-3.php to see how to use the default file encoding and how to encode individual strings with different input and output encodings. *PR1190518 ("JDK1.5 reflection bug"): Methods are searched in the class first before methods of the class class are examined. (Problematic procedure was getInstance which is also defined in the meta-class of class.) Please see tests.php/xmlTransform.php. * PR1187636 ("java_get_session support"): The method is now supported and works correctly with the load balancer. Please see tests.php4/session.php * PR1188659 ("classloader bug"): Classes are cached again and can be used to attach data which is expensive to create. Please see tests.php4/cache.php for details. That was a bug that was introduced in 2.0.5. * PR1179352 ("Apache/PHP as WORKER/NT module not supported,use CGI instead:"): The problem was here that the GC opened a server connection which was then shared by the following request. The bridge now throws an exception if a connection is shared or if a connection is opened after request shutdown (RSHUTDOWN). WORKER and NT are now fully supported. * PR1178795 ("Create /usr/lib/php4/lib "): Users are expected to store their .jar files as <name>-<version>.jar in either /usr/share/java or java.libdir/lib or one of their sub-directories. These are the only directories which are tagged with the appropriate Security Enhanced Linux security context. The java_set_library_path has been changed so that "foo/bar.jar" is searched in these system directories. * PR1177992 ("Error message on Security Enhanced Linux"): The bridge now throws an appropriate exception if a library cannot be loaded because of security restrictions. * PR1177991("FC3 service status command not working"): If installed in /usr/sbin, the php-java-bidge script show up as "php-java-bridge" in the process list. * PR1176534 ("PHP/Java Bridge 2.0.5 does not compile on Solaris, OS X, ..."): This bug has been fixed. * PR1176523 ("multidimensional arrays are not sent correctly"): Please see tests.php4/array6.php for details. For other changes please see the ChangeLog contained in the php-java-bridge_2.0.6-pre.tar.bz2 download file -- the two binary files contain an old ChangeLog and README, but the binaries are up to date. If I don't get any problem reports within the next two weeks, I will release the code contained in php-java-bridge_2.0.6-pre.tar.bz2 as the official PHP/Java Bridge version 2.0.6. Regards, Jost Boekemeier --------------------------------- Gesendet von Yahoo! Mail - Jetzt mit 250MB kostenlosem Speicher |
From: Jost B. <jos...@ya...> - 2005-04-27 17:32:58
|
Hi, [server part not starting because port 9167 is already in use] Could it be that another application uses port 9167? I am not a windows expert but I think netstat is available on windows, too. Can you please check which application uses port 9167? Anyhow, can you please start the server part as follows: java -jar JavaBridge.jar INET:9268 4 "" and send the result? > i put my jar files on the extension directory as > indicated java.ext.dirs -> I:\j2re\lib\ext That's okay. > how can i try tcp sockets? With the INET prefix, please see above. However, the server part already tried this and failed because #9167 is already in use(?). Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 250MB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: cins <f74...@cc...> - 2005-04-27 14:44:11
|
hi there, i follow the instructions from this page: cvs: php-java-bridge/php-java-bridge/INSTALL.WINDOWS i put the test.php on my webserver, but it doesn't seems to recognize = java classes, only shows the phpinfo() part this is my output.log: =A5|=A4=EB 27 22:01:17 JavaBridge ERROR: Local sockets not = available:java.lang.UnsatisfiedLinkError: startNative. Try TCP sockets = instead java.net.BindException: Address already in use: JVM_Bind at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(Unknown Source) at java.net.ServerSocket.bind(Unknown Source) at java.net.ServerSocket.<init>(Unknown Source) at java.net.ServerSocket.<init>(Unknown Source) at php.java.bridge.TCPServerSocket.<init>(TCPServerSocket.java:33) at php.java.bridge.TCPServerSocket.create(TCPServerSocket.java:26) at php.java.bridge.JavaBridge.init(JavaBridge.java:195) at php.java.bridge.JavaBridge.main(JavaBridge.java:231) is this a classpath problem? i put my jar files on the extension directory as indicated java.ext.dirs -> I:\j2re\lib\ext how can i try tcp sockets? i'm using j2se 1.4.2 OS: windows NT please reply, ..... or don't if you think this is a silly question=20 cins |
From: Jost B. <jos...@ya...> - 2005-04-04 18:10:06
|
Hi, please see the PR1176523 -> http://sourceforge.net/tracker/index.php?func=detail&aid=1176523&group_id=117793&atid=679233 Thank you very much for reporting this bug. Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 250MB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: Michael P. D. <dob...@we...> - 2005-04-02 02:19:17
|
Hi Jost, sorry an email done again of me, but either I make something wrong or perhaps I have found a little bug. However I hope you can help me ;-) If java returns a multidimensional array, the bridge takes this as a nested one-dimensional array. A small example: public class javatest { public javatest() { } public static Object[][] test3(String testvar1, String testvar2, String testvar3, String testvar4) { Object[][] testobj = null; testobj = new Object[2][2]; testobj[0][0] = testvar1; testobj[0][1] = testvar2; testobj[1][0] = testvar3; testobj[1][1] = testvar4; return testobj; } } <?php $testvar = new Java('javatest'); $testobj3 = $testvar->test3("Field 1,1","Field 1,2","Field 2,1","Field 2,2"); print "testobj3: "; print_r($testobj3); print "<br>"; for ($i = 0; $i < 2; $i++) { for ($j = 0; $j < 2; $j++) { print "$i,$j: " . $testobj3[$i][$j] .' <br>'; } } print "0,2: " . $testobj3[0][2] .' <br>'; $phptestobj = array(array("Field 1,1","Field 1,2"), array("Field 2,1","Field 2,2")); print "phptestobj: "; print_r($phptestobj); print "<br>"; for ($i = 0; $i < 2; $i++) { for ($j = 0; $j < 2; $j++) { print "$i,$j: " . $phptestobj[$i][$j] .' <br>'; } } ?> Output: testobj3: Array ( [0] => Array ( [0] => Field 1,1 [1] => Field 1,2 [2] => Array ( [0] => Field 2,1 [1] => Field 2,2 ) ) ) 0,0: Field 1,1 0,1: Field 1,2 1,0: 1,1: 0,2: Array phptestobj: Array ( [0] => Array ( [0] => Field 1,1 [1] => Field 1,2 ) [1] => Array ( [0] => Field 2,1 [1] => Field 2,2 ) ) 0,0: Field 1,1 0,1: Field 1,2 1,0: Field 2,1 1,1: Field 2,2 Thanks and many Greetings Michael |
From: Michael P. D. <dob...@we...> - 2005-04-01 19:31:12
|
Hi Jost, with this Email I want to thank you for your work and the fast implementation of things I mentioned only a few days before.=20 I tried the new bridge today and I'm happy about the new things ;-). Many thanks, Michael -----Urspr=FCngliche Nachricht----- Von: php...@li... [mailto:php...@li...] Im Auftrag = von Jost Boekemeier Gesendet: Montag, 28. M=E4rz 2005 13:54 An: php...@li... Betreff: [Php-java-bridge-users] PHP/Java Bridge Version 2.0.5 = available. Version 2.0.5 of the PHP/Java Bridge is available. =20 =20 The binary for RedHat Enterprise Linux 3 or 4 or Fedora Linux: =20 http://prdownloads.sourceforge.net/php-java-bridge/php-java-bridge-2.0.5-= 1.i 386.rpm?download =20 The binary for Windows XP: =20 http://prdownloads.sourceforge.net/php-java-bridge/php-java-bridge_2.0.5-= win 32-php5.zip?download =20 Source for the rest: =20 http://prdownloads.sourceforge.net/php-java-bridge/php-java-bridge_2.0.5.= tar .bz2?download =20 The following bugs were fixed: * The JavaBridgeClassLoader now extends from=20 URLClassloader, so that custom code written against=20 URLClassloader works as expected. * A bug in the new 2.0 protocol was fixed which=20 ignored array values when the bridge run in PHP4. See test tests.php5/arrayArray.php4 for details.=20 * A bug in the new 2.0 protocol was fixed which=20 confused empty arrays with "null values". See test=20 tests.php5/showResources.php for details.=20 * The default __tostring and cast <String> was=20 changed. Java objects displayed this way start=20 with "<Class:". This change was necessary for=20 PR1170405. See test tests.php5/printToOutputStream.php for details. New features: * MONO supported (experimental). =20 You can compile JavaBridge.jar into a .NET=20 executable, for example with the command: ikvm.exe JavaBridge.jar=20 and start JavaBridge.exe as usual. The bridge will automatically join the MC group and responds to both .NET and Java queries (i.e. java scripts may be=20 executed by a .NET VM, but not the other way 'round). * Fail over and load balancing supported(experimental). The bridge sends out a multicast to all VM's which=20 have joined the MC group and selects the first VM=20 which has a load <20. =09 =09 =09 ___________________________________________________________=20 Gesendet von Yahoo! Mail - Jetzt mit 250MB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=3D6595&alloc_id=3D14396&op=3Dclick _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
From: Jost B. <jos...@ya...> - 2005-04-01 11:24:15
|
> multicast.c:24: error: storage size of `ip_mreqn' I think your OS has only "ip_mreq" (which is missing one entry at the end, but that doesn't matter). > SOL_IP" undeclared It is probably IPPROTO_IP on your system. :( So I have to write an autoconf test for it. I'll check this and send a patch asap (probably tomorrow). Thank you very much for reporting this problem. Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 250MB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: Anil S. <ani...@or...> - 2005-04-01 03:39:40
|
Hi When i try building the downloaded version I get following compile errors during make. config did run ok. I am on Mac OSX. Darwin anthos-mac.local 7.8.0 Darwin Kernel Version 7.8.0: Wed Dec 22 14:26:17 PST 2004; root:xnu/xnu-517.11.1.obj~1/RELEASE_PPC Power Macintosh powerpc ... php-java-bridge-2.0.5]$ make /bin/sh /Users/anthos/projects/php-java-bridge/php-java-bridge-2.0.5/libtool --mode=compile gcc -DEXTENSION_DIR="\"/opt/local/lib/php/extensions/no-debug-non-zts -20040412\"" -I. -I/Users/anthos/projects/php-java-bridge/php-java-bridge-2.0.5 -DPHP_ATOM_INC -I/Users/anthos/projects/php-java-bridge/php-java-bridge-2.0.5/include -I/Users/anthos/projects/php-java-bridge/php-java-bridge-2.0.5/main -I/Users/anthos/projects/php-java-bridge/php-java-bridge-2.0.5 -I/opt/local/include/php -I/opt/local/include/php/main -I/opt/local/include/php/Zend -I/opt/local/include/php/TSRM -I/Library/Java/Home//include -DHAVE_CONFIG_H -g -O2 -prefer-pic -c /Users/anthos/projects/php-java-bridge/php-java-bridge-2.0.5/ multicast.c -o multicast.lo gcc -DEXTENSION_DIR=\"/opt/local/lib/php/extensions/no-debug-non-zts -20040412\" -I. -I/Users/anthos/projects/php-java-bridge/php-java-bridge-2.0.5 -DPHP_ATOM_INC -I/Users/anthos/projects/php-java-bridge/php-java-bridge-2.0.5/include -I/Users/anthos/projects/php-java-bridge/php-java-bridge-2.0.5/main -I/Users/anthos/projects/php-java-bridge/php-java-bridge-2.0.5 -I/opt/local/include/php -I/opt/local/include/php/main -I/opt/local/include/php/Zend -I/opt/local/include/php/TSRM -I/Library/Java/Home//include -DHAVE_CONFIG_H -g -O2 -c /Users/anthos/projects/php-java-bridge/php-java-bridge-2.0.5/ multicast.c -fno-common -DPIC -o .libs/multicast.o /Users/anthos/projects/php-java-bridge/php-java-bridge-2.0.5/ multicast.c: In function `php_java_init_multicast': /Users/anthos/projects/php-java-bridge/php-java-bridge-2.0.5/ multicast.c:24: error: storage size of `ip_mreqn' isn't known /Users/anthos/projects/php-java-bridge/php-java-bridge-2.0.5/ multicast.c:37: error: `SOL_IP' undeclared (first use in this function) /Users/anthos/projects/php-java-bridge/php-java-bridge-2.0.5/ multicast.c:37: error: (Each undeclared identifier is reported only once /Users/anthos/projects/php-java-bridge/php-java-bridge-2.0.5/ multicast.c:37: error: for each function it appears in.) make: *** [multicast.lo] Error 1 |
From: Jost B. <jos...@ya...> - 2005-03-28 11:54:22
|
Version 2.0.5 of the PHP/Java Bridge is available. The binary for RedHat Enterprise Linux 3 or 4 or Fedora Linux: http://prdownloads.sourceforge.net/php-java-bridge/php-java-bridge-2.0.5-1.i386.rpm?download The binary for Windows XP: http://prdownloads.sourceforge.net/php-java-bridge/php-java-bridge_2.0.5-win32-php5.zip?download Source for the rest: http://prdownloads.sourceforge.net/php-java-bridge/php-java-bridge_2.0.5.tar.bz2?download The following bugs were fixed: * The JavaBridgeClassLoader now extends from URLClassloader, so that custom code written against URLClassloader works as expected. * A bug in the new 2.0 protocol was fixed which ignored array values when the bridge run in PHP4. See test tests.php5/arrayArray.php4 for details. * A bug in the new 2.0 protocol was fixed which confused empty arrays with "null values". See test tests.php5/showResources.php for details. * The default __tostring and cast <String> was changed. Java objects displayed this way start with "<Class:". This change was necessary for PR1170405. See test tests.php5/printToOutputStream.php for details. New features: * MONO supported (experimental). You can compile JavaBridge.jar into a .NET executable, for example with the command: ikvm.exe JavaBridge.jar and start JavaBridge.exe as usual. The bridge will automatically join the MC group and responds to both .NET and Java queries (i.e. java scripts may be executed by a .NET VM, but not the other way 'round). * Fail over and load balancing supported(experimental). The bridge sends out a multicast to all VM's which have joined the MC group and selects the first VM which has a load <20. ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 250MB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: Jost B. <jos...@ya...> - 2005-03-26 09:11:41
|
Hi, what you describe is a bug in the new 2.0 protocol. Your second example should create a PHP Array if run in PHP 4. (It works correctly in PHP5, see tests.php5 folder). I am going to fix this asap. In the meantime please use PHP 5 or use the PHP/Java Bridge 1.0.8 for your tests. Thank you very much for reporting this bug. Regards, Jost Boekemeier |
From: Michael P. D. <dob...@we...> - 2005-03-26 00:04:20
|
Hi, sorry I need help once more, because I don't get the answer for my question even though I tried it for half a day How can I access the fields of a returned array? Example (here the number of the fields are known before execution, but in my real application the number of the fields are known not until execution): import java.util.*; import java.sql.*; public class javatest { public javatest() { } public static Object test1(String testvar) { Object testobj = null; testobj = new Object(); testobj = testvar; return testobj; } public static Object[] test2(String testvar1, String testvar2) { Object[] testobj = null; testobj = new Object[2]; testobj[0] = testvar1; testobj[1] = testvar2; return testobj; } } <?php $testvar = new Java('javatest'); $testobj1 = $testvar->test1("TestAusgabe1"); print $testobj1.' <br>'; $testobj2 = $ testvar ->test2("TestAusgabe2.1"," TestAusgabe2.2")); print $testobj2[0].' <br>'; print $testobj2.' <br>'; ?> Output: TestAusgabe1 T TestAusgabe2.2 So $testobj2 is not an array but a string which has the second value of test2. I have tried several things to access the first field of testobj2 but without access. So I would be very happy if you have an advice what to do. Many thanks in advance Michael |
From: Jost B. <jos...@ya...> - 2005-03-25 17:39:19
|
On Thu, 2005-03-24 at 22:11, Jay Gaynor wrote: > If I use the php-java bridge, will my Java code be run in the applet > sandbox? The java code (usually) runs in a J2EE application server and the PHP scripts (usually) run in the HTTP server domain. The PHP/Java Bridge connects those two components. I.e. it is a server technology, it cannot run in a client browser or on a client machine and it cannot be used as a replacement for java applets or ECMA script. Regards, Jost Boekemeier |
From: Jay G. <yoe...@gm...> - 2005-03-24 21:11:08
|
If I use the php-java bridge, will my Java code be run in the applet sandbox? I want to pull machine-specific info from my users so that i can identify unique machines in a way not easily spoofed. Also, this will prompt the user to allow the application, correct? -- Jay Gaynor Computer Engineering University of Pittsburgh 412.327.5895 yoe...@gm... |
From: Michael P. D. <dob...@we...> - 2005-03-21 23:16:28
|
Hi Jost, many thanks for your very fast answer and the workaround! Regards Michael P.S.: The Php/Java Bridge is a great project! -----Urspr=FCngliche Nachricht----- Von: jos...@ya... [mailto:jos...@ya...]=20 Gesendet: Montag, 21. M=E4rz 2005 23:16 An: Michael P. Dobmeier Cc: php...@li... Betreff: Re: [Php-java-bridge-users] CLASSPATH once more Hi, it depends how you search for the resources. Currently only findResource() is available.=20 Since the JavaBridgeClassLoader is currently not(!) an URLClassLoader, the ShowResources.listResources() function ignores it. I will probably change that for the next version 2.0.5. As a workaround please copy your jar file(s) to $JAVA_HOME/jre/lib/ext, for example to /opt/jdk1.5/jre/lib/ext and re-start the bridge. After that your jar(s) are loaded via the standard class loader. Regards, Jost Boekemeier |
From: Jost B. <jos...@ya...> - 2005-03-21 22:10:54
|
Hi, it depends how you search for the resources. Currently only findResource() is available. Since the JavaBridgeClassLoader is currently not(!) an URLClassLoader, the ShowResources.listResources() function ignores it. I will probably change that for the next version 2.0.5. As a workaround please copy your jar file(s) to $JAVA_HOME/jre/lib/ext, for example to /opt/jdk1.5/jre/lib/ext and re-start the bridge. After that your jar(s) are loaded via the standard class loader. Regards, Jost Boekemeier |
From: Michael P. D. <dob...@we...> - 2005-03-21 16:57:27
|
Dear Experts! Yesterday I installed the Java-Bridge (ver. 2.0.4) and everything works fine so far, but I'm struggling with JAR, CLASSPATH or whatever the problem generates. With PHP I call a Java-Class (UserClass1) stored in a JAR-file (jarfile.jar). In PHP I "link" to this JAR file with: java_set_library_path("/srv/www/htdocs/user/jarfile.jar"). In that JAR-File there is also a file (Data.File) stored, which is called by another JAVA-Class (UserClass2) with java.net.JarURLConnection and ClassLoader-Function. UserClass2 is called by UserClass1. This works fine by calling it direct with java (java -classpath jarfile.jar UserClass1) but by using it with the Java-Bridge it does not work. Here the UserClass2 can't find the Data.File. To get an idea, what's going wrong, I inserted a further class (ShowResources.class) (http://forum.java.sun.com/thread.jspa?threadID=286026&messageID=3034420) which shows me ALL accessible resources (output in the /var/log/php-java-bridge.log). ShowResources is called in UserClass2 before trying to load Data.File. With this information I saw, that only the classes of JavaBridge.jar and the java-classes are accessible by the ClassLoader, but my jarfile.jar is not. So I tried to reference it in the php.ini with the setup-variable java.classpath (I also tried java.class.path) but without any access. I also saved the jarfile.jar under /usr/lib/php/extensions. Nothing is working; everytime only the above mentioned classes are available. So I'm at my wits end and I hope you can help me to solve this problem. Many thanks in advance Michael |
From: Jost B. <jos...@ya...> - 2005-03-09 18:05:59
|
A number of people reported that binary data isn't send correctly in version 2.0.1. There are a number of bugs regarding this which 2.0.2 attempts to solve. To the best of my knowledge 2.0.2 should handle binary data as well as 1.0.8. If there are still open issues, please send a PR to the mailing list of open a ticket. The binary for RedHat Enterprise Linux 3 or 4 or Fedora Linux: http://prdownloads.sourceforge.net/php-java-bridge/php-java-bridge-2.0.2-1.i386.rpm?download The binary for Windows XP: http://prdownloads.sourceforge.net/php-java-bridge/php-java-bridge_2.0.2-win32-php5.zip?download Source for the rest: http://prdownloads.sourceforge.net/php-java-bridge/php-java-bridge_2.0.2.tar.bz2?download ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 250MB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: Jost B. <jos...@ya...> - 2005-03-06 19:29:12
|
Version 2.0.1 of the PHP/Java Bridge is available. The binary for RedHat Enterprise Linux 3 or 4 or Fedora Linux: http://prdownloads.sourceforge.net/php-java-bridge/php-java-bridge-2.0.1-1.i386.rpm?download The binary for Windows XP: http://prdownloads.sourceforge.net/php-java-bridge/php-java-bridge_2.0.1-win32-php5.zip?download Source for the rest: http://prdownloads.sourceforge.net/php-java-bridge/php-java-bridge_2.0.1.tar.bz2?download There are no user-visible changes from version 1.0.8 to version 2.0.1. However, the server part is now written in pure java. The new XML protocol is at least two times faster than the old binary protocol based on java JNI. Furthermore it is now possible to deploy the JavaBridge.jar into WebSphere or WebLogic and to invoke java enterprise applications from PHP scripts without writing SOAP or EJB interfaces. The XML protocol makes it easy to write bindings for perl, phython or other script languages. The examples/clients directory contains a sample written in the programming language Scheme which connects to the server, asks for System.getProperties() and transforms the resulting XML document via a XSL into a HTML table. Two experimental features were added: 1. session sharing, see tests.php5/session.php 2. the bridge can connect to a number of backends running the server part of the bridge. If one backend is unavailable, the bridge uses the next available backend. Please see the documentation for java.hosts for more information. |
From: Marek L. <ma...@le...> - 2005-02-22 17:39:54
|
Hello Jost I've just wanted to say that I'm testing 2.0-beta version from over 2 days and I must say that it is working like a charm, without any problems. The performance is very good and I didn't notice any errors. So in my opinion you can say that it is stable :-). One more thing - did you thought about putting Java/PHP bridge into PECL repository ? Best regards, ML |
From: Jost B. <jos...@ya...> - 2005-02-21 17:03:27
|
> can you give me the compiled version for > windows binary It's here: http://php-java-bridge.sf.net/php-java-bridge-2.0.0_win32.zip > - compile the PHP 4 binary (PHP 5 should work, too) > How can I compile it ? With "autoconf && configure && make" if you have RedHat Cygwin. Or with the MS Visual Studio and the project files contained in the PHP distribution. > -CGI folder of your IIS ( what is that folder & is > this opreation is necessary) I thought that you want to run PHP in your web-server. If not, then it isn't necessary to install IIS and the PHP CGI binary, of course[1]. However, please see the MS IIS documentation for the location of the CGI folder. Regards, Jost Boekemeier [1] If you plan to run PHP as a module in apache 1.3 on windows, please don't do this. This requires Zend's "ZTS" which is experimental. If you want to run apache with a PHP module, please run it on a unix machine. If you want windows, please install Microsoft IIS and run PHP as a CGI binary. ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 250MB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: Jost B. <jos...@ya...> - 2005-02-20 14:28:41
|
--- Alawi Albaity <al...@gm...> schrieb: > Please inform me how to use the bridge in windows In version 1.0.8 you need to compile the natcJavaBridge.dll via a cross-compiler, for example mingw. In version 2.0.0 this dll is no longer necessary: * Install php 4, copy the php-java-bridge sources into the php4/ext folder (see windows section in the README) and compile the PHP 4 binary (PHP 5 should work, too) * Copy the sapi/cli/php.exe into the CGI folder of your IIS * start the server part of the bridge with: java -jar JavaBridge.jar Regards, Jost Boekemeier P.S.: Version 2.0.0 is available at http://osdn.dl.sourceforge.net/sourceforge/php-java-bridge/php-java-bridge_2.0.0-beta.tar.bz2 Although is is called "beta", it is quite stable. I will release that code as 2.0.0 if I don't get bug reports within the next three weeks. ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 250MB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: Alawi A. <al...@gm...> - 2005-02-20 13:49:13
|
Please inform me how to use the bridge in windows -- Alawi Albaity Jeddah - KSA Mobile : +966506660442 |
From: Jost B. <jos...@ya...> - 2005-02-18 18:21:10
|
> PHP bug, an object destructor was called after > module shutdown Yes (it's a PHP bug, not a bug in the bridge). There are a number of tickets regarding this problem. I don't know if or when the PHP people are going to fix it. > JavaBridge is quite slow - over 2 seconds in making > 100 strings objects Depends on the network latency. If you talk to the server via a slow network with ~2ms latency, this is feasible. For local sockets (either TCP or Unix domain) the new protocol makes the bridge at least two times faster. From what I have seen the bench now executes twice as fast as before: ~11s vs. ~4 seconds native java code. > - is this normal behavior ? Certainly. Every RPC protocol has this problem. That's why one normally creates "value objects" on the client-side and then sends these to the server. Bandwith is not the problem, latency is. One could invent techniques such as "reply cookies" to minimize the number of roundtrips. But this is not worth it, imho. If you use local sockets, the communication is reasonably fast. If you want to talk to a remote server, use value classes to communicate with it. Jost ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 250MB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: Marek L. <ma...@le...> - 2005-02-18 07:24:08
|
Marek Lewczuk napisał(a): > Jost Boekemeier napisał(a): > >> A binary snapshot of version 2.0 is available: >> >> http://php-java-bridge.sf.net/JavaBridge.jar >> http://php-java-bridge.sf.net/php >> >> The server can be started with: >> >> java -jar JavaBridge.jar >> >> The PHP binary is version 5.0.3 with the bridge >> compiled in. >> >> The official 2.0 version will be available next month. >> >> Please report bugs to the mailing list or open a >> ticket. >> Regards, >> Jost Boekemeier > > Hello Jost, > After start of PHP I saw something like this in JavaBridge console: > lut 18 07:07:35 JavaBridge DEBUG: Request from unknown client > > But this is only a warning. But, I've made simple test: > > > require_once "Benchmark/Timer.php"; > $timer = new Benchmark_Timer(); > $timer->start(); > for ($i = 0; $i < 100; $i++) { > $string = new Java("java.lang.String", "sdsdsd"); > } > $timer->stop(); > $timer->display(); > > The results: > ------------------------------------------------------------- > marker time index ex time perct > ------------------------------------------------------------- > Start 1108710914.89464700 - 0.00% > ------------------------------------------------------------- > Stop 1108710917.28214400 2.38749718666 100.00% > ------------------------------------------------------------- > total - 2.38749718666 100.00% > ------------------------------------------------------------- > > PHP bug, an object destructor was called after module shutdown > > > > As you see there is some problem with object destructor and also > JavaBridge is quite slow - over 2 seconds in making 100 strings objects > - is this normal behavior ? One correction: the performance is low because of that I've run JavaBridge in second console which prints all debug informations. When I've run with " > /dev/null &" then the results looks much better: ------------------------------------------------------------- marker time index ex time perct ------------------------------------------------------------- Start 1108711271.00199500 - 0.00% ------------------------------------------------------------- Stop 1108711271.10505000 0.103055000305 100.00% ------------------------------------------------------------- total - 0.103055000305 100.00% ------------------------------------------------------------- PHP bug, an object destructor was called after module shutdown |