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...> - 2010-06-16 14:37:22
|
Hi, I am actually using java-bridge 6.1.2.1 Following your advice I have found that setting JAVA_PIPE_DIR to null fixes the problem. Previously I had this set to a directory within the open_basedir path. Thanks for your help. Joe On 16/06/10 14:31, php...@li... wrote: > Hi, > > which version of the PHP/Java Bridge do you use? > > As of version 6 the bridge doesn't use named pipes anymore; the code > is gone. In PHP/Java Bridge version 5 you can switch off named pipes > by define("JAVA_PIPE_DIR", null). > > > >> However, having done so I now find that files in /tmp are being >> accessed, such as: "/tmp/.php_java_bridgejNmYsU.i". >> > Unlikely. If JAVA_PIPE_DIR is null, the path would be > "null/.php_java_bridgejNmYsU.i" > > > >> I can't see where this location is being set. Does anyone have any ideas? >> > Neither do I. Why don't you switch to version 6.1.2.1. t has some > issues, mostly regressions for features introduced in 5.x. But overall > it is running fine. > > > Regards, > Jost Boekemeier > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |
From: <php...@li...> - 2010-06-16 13:55:11
|
Hi, which version of the PHP/Java Bridge do you use? As of version 6 the bridge doesn't use named pipes anymore; the code is gone. In PHP/Java Bridge version 5 you can switch off named pipes by define("JAVA_PIPE_DIR", null). > However, having done so I now find that files in /tmp are being > accessed, such as: "/tmp/.php_java_bridgejNmYsU.i". Unlikely. If JAVA_PIPE_DIR is null, the path would be "null/.php_java_bridgejNmYsU.i" > I can't see where this location is being set. Does anyone have any ideas? Neither do I. Why don't you switch to version 6.1.2.1. t has some issues, mostly regressions for features introduced in 5.x. But overall it is running fine. Regards, Jost Boekemeier |
From: <php...@li...> - 2010-06-16 10:32:11
|
In order to get a java-bridge configuration up and running I initially set my PHP open_basedir to "/". For security reasons I now want to restrict the open_basedir path to within the webserver document root. I had an issue with attempts to access "/dev/shm/", which I fixed by changing JAVA_PIPE_DIR in: /var/lib/tomcat5.5/webapps/JavaBridge/java/Java.inc However, having done so I now find that files in /tmp are being accessed, such as: "/tmp/.php_java_bridgejNmYsU.i". I can't see where this location is being set. Does anyone have any ideas? The full error log is: ========================================================================================= Warning: fopen() [function.fopen]: open_basedir restriction in effect. File(/tmp/.php_java_bridgejNmYsU.i) is not within the allowed path(s): (/home/josepht/DEV) in http://localhost:8080/JavaBridge/java/Java.inc on line 846 Warning: fopen(/tmp/.php_java_bridgejNmYsU.i) [function.fopen]: failed to open stream: Operation not permitted in http://localhost:8080/JavaBridge/java/Java.inc on line 846 Warning: stream_set_blocking(): supplied argument is not a valid stream resource in http://localhost:8080/JavaBridge/java/Java.inc on line 848 Warning: stream_set_timeout(): supplied argument is not a valid stream resource in http://localhost:8080/JavaBridge/java/Java.inc on line 849 Warning: fopen() [function.fopen]: open_basedir restriction in effect. File(/tmp/.php_java_bridgejNmYsU.o) is not within the allowed path(s): (/home/josepht/DEV) in http://localhost:8080/JavaBridge/java/Java.inc on line 850 Warning: fopen(/tmp/.php_java_bridgejNmYsU.o) [function.fopen]: failed to open stream: Operation not permitted in http://localhost:8080/JavaBridge/java/Java.inc on line 850 Warning: unlink() [function.unlink]: open_basedir restriction in effect. File(/tmp/.php_java_bridgejNmYsU.i) is not within the allowed path(s): (/home/josepht/DEV) in http://localhost:8080/JavaBridge/java/Java.inc on line 851 Warning: unlink() [function.unlink]: open_basedir restriction in effect. File(/tmp/.php_java_bridgejNmYsU.o) is not within the allowed path(s): (/home/josepht/DEV) in http://localhost:8080/JavaBridge/java/Java.inc on line 852 Warning: unlink() [function.unlink]: open_basedir restriction in effect. File(/tmp/.php_java_bridgejNmYsU) is not within the allowed path(s): (/home/josepht/DEV) in http://localhost:8080/JavaBridge/java/Java.inc on line 853 Warning: stream_set_timeout(): supplied argument is not a valid stream resource in http://localhost:8080/JavaBridge/java/Java.inc on line 854 Warning: fwrite(): supplied argument is not a valid stream resource in http://localhost:8080/JavaBridge/java/Java.inc on line 858 Broken local connection handle fwrite(): supplied argument is not a valid stream resource |
From: <php...@li...> - 2010-06-15 11:21:41
|
FYI: I have changed the quotes, so that the test command now works on both Unix and Windows. From the updated FAQ: If the command: echo "<?php require_once('http://localhost:8080/JavaBridge/java/Java.inc'); echo java('java.lang.System')->getProperties();?>" | php -n -d allow_url_include=On works in the shell but not within apache, then there's something wrong with your php.ini file. And while testing I've noticed another regression in 6.1.2.1 (due to the refactoring of FastCGIServlet): http://php-java-bridge.cvs.sourceforge.net/viewvc/php-java-bridge/php-java-bridge/server/php/java/servlet/fastcgi/FastCGIServlet.java?r1=1.29&r2=1.30 You might want to use the latest PHP/Java Bridge 5.x release or the current CVS, if you want to use jsp:include page="foo.php". Regards, Jost Boekemeier On 6/15/10, php...@li... <php...@li...> wrote: > Am 14.06.2010 20:26, schrieb php...@li...: >> Hi, >> >> >> >>> i installed php-java bridge to a tomcat server. if i try the examples i >>> always get "Fatal error: Cannot redeclare java() in >>> http://localhost:8080/JavaBridge/java/Java.inc on line 81". >>> I'm running zend server with php 5.2.13 on a debian machine. Any ideas >>> whats >>> wrong?* >>> >> >> Please see our FAQ entry "I get a blank page or some other error!?!" >> at http://php-java-bridge.sourceforge.net/pjb/FAQ.html : >> >> If the command: >> >> echo '<?php >> require_once("http://localhost:8080/JavaBridge/java/Java.inc"); echo >> java("java.lang.System")->getProperties();?>' | php -n -d >> allow_url_include=On >> >> works in the shell but not within apache, then there's something wrong >> with your php.ini file. >> >> >> Regards, >> Jost Boekemeier >> > indeed the shell command worked. The problem was, that the Zend Java > Bridge Component was loaded. After deactivating it, it works as expected. > > regards, Thomas > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |
From: <php...@li...> - 2010-06-15 10:41:12
|
Am 14.06.2010 20:26, schrieb php...@li...: > Hi, > > > >> i installed php-java bridge to a tomcat server. if i try the examples i >> always get "Fatal error: Cannot redeclare java() in >> http://localhost:8080/JavaBridge/java/Java.inc on line 81". >> I'm running zend server with php 5.2.13 on a debian machine. Any ideas whats >> wrong?* >> > > Please see our FAQ entry "I get a blank page or some other error!?!" > at http://php-java-bridge.sourceforge.net/pjb/FAQ.html : > > If the command: > > echo '<?php > require_once("http://localhost:8080/JavaBridge/java/Java.inc"); echo > java("java.lang.System")->getProperties();?>' | php -n -d > allow_url_include=On > > works in the shell but not within apache, then there's something wrong > with your php.ini file. > > > Regards, > Jost Boekemeier > indeed the shell command worked. The problem was, that the Zend Java Bridge Component was loaded. After deactivating it, it works as expected. regards, Thomas |
From: <php...@li...> - 2010-06-14 18:26:50
|
Hi, > i installed php-java bridge to a tomcat server. if i try the examples i > always get "Fatal error: Cannot redeclare java() in > http://localhost:8080/JavaBridge/java/Java.inc on line 81". > I'm running zend server with php 5.2.13 on a debian machine. Any ideas whats > wrong?* Please see our FAQ entry "I get a blank page or some other error!?!" at http://php-java-bridge.sourceforge.net/pjb/FAQ.html : If the command: echo '<?php require_once("http://localhost:8080/JavaBridge/java/Java.inc"); echo java("java.lang.System")->getProperties();?>' | php -n -d allow_url_include=On works in the shell but not within apache, then there's something wrong with your php.ini file. Regards, Jost Boekemeier |
From: <php...@li...> - 2010-06-14 16:32:24
|
hi, i installed php-java bridge to a tomcat server. if i try the examples i always get "Fatal error: Cannot redeclare java() in http://localhost:8080/JavaBridge/java/Java.inc on line 81". I'm running zend server with php 5.2.13 on a debian machine. Any ideas whats wrong?* *regards, Thomas* * |
From: <php...@li...> - 2010-06-14 13:54:38
|
Hi Jost, Thanks for the prompt reply. I wasn't trying to run as a desktop app, but via a web server. However, your reply made me realise that the documentation I was looking at was out of date. I found that by compiling my java code using "javac -extdirs . *.java" and putting the jar file into: /var/lib/tomcat5.5/webapps/JavaBridge/WEB-INF/lib .. then my classes were found, without the need to use "java_require" (which I now realise is depricated). Thanks again, Joe On 14/06/10 11:19, php...@li... wrote: > Hi, > > please see > http://php-java-bridge.sourceforge.net/pjb/desktop-apps.php > > And please forget about CLASSPATH an java_require. Please see our FAQ for > details. > > Regards, > Jost Boekemeier > > Am 14.06.2010 11:57 schrieb<php...@li...>: > > I've never done any Java programming before, so I may be missing > something fairly obvious here. > > I want to use the Saxon java classes to process XML 2.0 Xpaths via PHP. > > So I've done: > > java_require(SAXON_DIR."saxon9he.jar"); > > (where SAXON_DIR is predefined). I then find that I can directly access > the Saxon classes via PHP , such as: > > $config = new java("net.sf.saxon.Configuration"); > > So all OK so far! > > However, for efficiency reason I don't want to make multiple PHP calls > to java to do the Xpath processing. So I want to create my own java > class which does all the necessary Saxon processing and can be accessed > with one PHP call. > > I've created this class, built a JAR file (SaxonXPath.jar) and verified > that it works via a standalone java program, run as: > > java -cp .:SaxonXPath.jar:saxon9he.jar TestProg > > So I now want to run this via PHP/java-bridge and have done: > > java_require(SAXON_DIR."saxon9he.jar"); > java_require(SAXON_DIR."SaxonXPath.jar"); > > I put these into a catch/try block, so I have verified that they are > successfully loaded. However, when I try and instantiate my class in > "SaxonXPath.jar" I get the error: > > java.lang.ClassNotFoundException: Could not find > com.legatio.xml.SaxonXPath in java_require() path. Please check the path > and the SEL and File permissions. > > I can still access the "saxon9he.jar" classes directly and I've > double-checked that I'm using the correct path to my own class. > > I tried setting "[java]" "java.classpath" in the php.ini file to the jar > files directory location, but this made no difference. > > Does anyone have any idea of what I might be doing wrong here? > > > > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > -- Joe Tully Software Developer Legatio Technologies Limited T: 0113 350 8772 x 104 www.ftax.co.uk; www.callvalidate.co.uk , www.legatio.com Legatio Technologies Limited, One Park Lane, Leeds, West Yorkshire, LS3 1EP Registered in England and Wales No. 4519902, VAT Number GB 799 5777 30, Data Protection Registration Number Z8175343. Legal Notice: We are not legal advisers and we cannot give advice on any Claims or Responses or the Employment Tribunals process. If you have any legal questions about your Employment Tribunals case or completing a form you should contact the Employment Tribunals Enquiry Line on 08457 959775. Any advice or information, whether oral or written, that you obtain from us or from the use of the Service shall not create any warranty, representation or other kind of obligation whatsoever. ------------------ Powered by Legatio.com This message is confidential. It may not be disclosed to, or used by, anyone other than the addressee(s). If you receive this message in error, please advise us immediately using the email address in...@le.... Internet e-mail is not necessarily secure. Legatio will not accept responsibility for alterations or additions to any e-mail message or attached documents that occur after transmission. |
From: <php...@li...> - 2010-06-14 10:19:32
|
Hi, please see http://php-java-bridge.sourceforge.net/pjb/desktop-apps.php And please forget about CLASSPATH an java_require. Please see our FAQ for details. Regards, Jost Boekemeier Am 14.06.2010 11:57 schrieb <php...@li...>: I've never done any Java programming before, so I may be missing something fairly obvious here. I want to use the Saxon java classes to process XML 2.0 Xpaths via PHP. So I've done: java_require(SAXON_DIR."saxon9he.jar"); (where SAXON_DIR is predefined). I then find that I can directly access the Saxon classes via PHP , such as: $config = new java("net.sf.saxon.Configuration"); So all OK so far! However, for efficiency reason I don't want to make multiple PHP calls to java to do the Xpath processing. So I want to create my own java class which does all the necessary Saxon processing and can be accessed with one PHP call. I've created this class, built a JAR file (SaxonXPath.jar) and verified that it works via a standalone java program, run as: java -cp .:SaxonXPath.jar:saxon9he.jar TestProg So I now want to run this via PHP/java-bridge and have done: java_require(SAXON_DIR."saxon9he.jar"); java_require(SAXON_DIR."SaxonXPath.jar"); I put these into a catch/try block, so I have verified that they are successfully loaded. However, when I try and instantiate my class in "SaxonXPath.jar" I get the error: java.lang.ClassNotFoundException: Could not find com.legatio.xml.SaxonXPath in java_require() path. Please check the path and the SEL and File permissions. I can still access the "saxon9he.jar" classes directly and I've double-checked that I'm using the correct path to my own class. I tried setting "[java]" "java.classpath" in the php.ini file to the jar files directory location, but this made no difference. Does anyone have any idea of what I might be doing wrong here? ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
From: <php...@li...> - 2010-06-14 09:57:15
|
I've never done any Java programming before, so I may be missing something fairly obvious here. I want to use the Saxon java classes to process XML 2.0 Xpaths via PHP. So I've done: java_require(SAXON_DIR."saxon9he.jar"); (where SAXON_DIR is predefined). I then find that I can directly access the Saxon classes via PHP , such as: $config = new java("net.sf.saxon.Configuration"); So all OK so far! However, for efficiency reason I don't want to make multiple PHP calls to java to do the Xpath processing. So I want to create my own java class which does all the necessary Saxon processing and can be accessed with one PHP call. I've created this class, built a JAR file (SaxonXPath.jar) and verified that it works via a standalone java program, run as: java -cp .:SaxonXPath.jar:saxon9he.jar TestProg So I now want to run this via PHP/java-bridge and have done: java_require(SAXON_DIR."saxon9he.jar"); java_require(SAXON_DIR."SaxonXPath.jar"); I put these into a catch/try block, so I have verified that they are successfully loaded. However, when I try and instantiate my class in "SaxonXPath.jar" I get the error: java.lang.ClassNotFoundException: Could not find com.legatio.xml.SaxonXPath in java_require() path. Please check the path and the SEL and File permissions. I can still access the "saxon9he.jar" classes directly and I've double-checked that I'm using the correct path to my own class. I tried setting "[java]" "java.classpath" in the php.ini file to the jar files directory location, but this made no difference. Does anyone have any idea of what I might be doing wrong here? |
From: <php...@li...> - 2010-06-13 11:51:50
|
>> It actually doesn't hang anymore, it just takes a few seconds and >> gives me an error page with this > > Aha. Well, but I will take a look at this anyway. :) Fixed in CVS head. I forgot to remove the old code which used to delegate to a JavaBridge context. > You can copy php-cgi binaries into your web application, yes. But > since you have installed PHP[/Java Bridge] for *all* of your web applications, you > must install a system php binary [...] In previous versions it was possible to install a "system" php-cgi binary into a "JavaBridge" web context. But this "feature" wasn't documented. It is no longer supported as of PHP/Java Bridge version 6. Regards, Jost Bökemeier |
From: <php...@li...> - 2010-06-11 12:07:26
|
> It actually doesn't hang anymore, it just takes a few seconds and > gives me an error page with this Aha. Well, but I will take a look at this anyway. :) > java.io.IOException: No suitable php fastcgi sapi found. Install PHP > as either "/usr/bin/php-cgi" or "c:/Program Files/PHP/php-cgi.exe" or > "/home/Sravan/Desktop/tomcat/webapps/ROOT/WEB-INF/cgi/php-cgi-i386-linux". > See also "php_exec" in your WEB-INF/web.xml. > I'm guessing I have to install PHP? I thought the php-servlet.jar took > care of all of that? You can copy php-cgi binaries into your web application, yes. But since you have installed PHP for *all* of your web applications, you must install a system php binary, yes. > If not, how do I install? Simply download PHP and copy it to c:\Program Files\PHP\ (Windows) or type yum install php (Linux) Regards, Jost Bökemeier > > Sincerely, > Sravan Suryadevara > University of Illinois | Urbana-Champaign > B.S Computer Science | Class of 2013 > E-mail | sur...@il... > Phone | (908) 432-5330 > > > > On Fri, Jun 11, 2010 at 3:56 PM, > <php...@li...> wrote: >> The "hanging" is a separate issue. Since version 6 we use chunked >> connections everywhere. HTTP/1.1 Transfer-Encoding: chunked requires >> 0\r\n as a shutdown sequence. If PHP crashes early, both, the >> front-end and the back-end side will wait for each other's 0\r\n to >> appear. Similar to this bug already fixed in the standalone component. >> >> 2010-05-23 <jostb@intern> >> >> * server/php/java/bridge/http/ChunkedInputStream.java >> (read): PR#3005379: Return the buffer contents before reading from >> the network, in order to avoid deadlock. >> Thanks to Oliver Billmann. >> >> * server/php/java/bridge/http/ChunkedInputStream.java >> (eof): New method >> >> * server/php/java/bridge/http/ChunkedOutputStream.java >> (eof): New method >> >> * server/php/java/bridge/JavaBridgeRunner.java >> (doPut): do not read/write 0\r\n chunk after an exception (e.g.: >> OutOfMemoryError or RequestAbortException) occured >> >> >> I think the new 6.x versions still aren't ready for prime time ... :( >> >> >> >> >> On 6/11/10, Jost Boekemeier <jos...@go...> wrote: >>> Hi Sravan, >>> >>> thank you very much for this bug report. This is a regression. We have >>> added security checks to JavaProxy.php, see NEWS file and >>> http://php-java-bridge.cvs.sourceforge.net/viewvc/php-java-bridge/php-java-bridge/server/buildJavaProxy.php?view=markup >>> >>> Since version 6.x the java/JavaProxy.php cannot read your .php file >>> anymore. >>> >>> Please change the php_include_java option to "Off" >>> >>> - >>> <init-param><param-name>php_include_java</param-name><param-value>On</param-value></init-param> >>> + >>> <init-param><param-name>php_include_java</param-name><param-value>Off</param-value></init-param> >>> >>> and include Java.inc in each of your PHP scripts. I will fix this in >>> the CVS head and change the install instructions. >>> >>> Thanks again for reporting this issue. >>> >>> >>> Regards, >>> Jost Bökemeier >>> >> >> ------------------------------------------------------------------------------ >> ThinkGeek and WIRED's GeekDad team up for the Ultimate >> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the >> lucky parental unit. See the prize list and enter to win: >> http://p.sf.net/sfu/thinkgeek-promo >> _______________________________________________ >> php-java-bridge-users mailing list >> php...@li... >> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users >> > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |
From: <php...@li...> - 2010-06-11 11:55:31
|
It actually doesn't hang anymore, it just takes a few seconds and gives me an error page with this: java.io.IOException: No suitable php fastcgi sapi found. Install PHP as either "/usr/bin/php-cgi" or "c:/Program Files/PHP/php-cgi.exe" or "/home/Sravan/Desktop/tomcat/webapps/ROOT/WEB-INF/cgi/php-cgi-i386-linux". See also "php_exec" in your WEB-INF/web.xml. Reason follows: php.java.servlet.fastcgi.FastCGIServlet.handle(FastCGIServlet.java:1002) php.java.servlet.fastcgi.FastCGIServlet.doPost(FastCGIServlet.java:1028) javax.servlet.http.HttpServlet.service(HttpServlet.java:637) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) I'm guessing I have to install PHP? I thought the php-servlet.jar took care of all of that? If not, how do I install? Sincerely, Sravan Suryadevara University of Illinois | Urbana-Champaign B.S Computer Science | Class of 2013 E-mail | sur...@il... Phone | (908) 432-5330 On Fri, Jun 11, 2010 at 3:56 PM, <php...@li...> wrote: > The "hanging" is a separate issue. Since version 6 we use chunked > connections everywhere. HTTP/1.1 Transfer-Encoding: chunked requires > 0\r\n as a shutdown sequence. If PHP crashes early, both, the > front-end and the back-end side will wait for each other's 0\r\n to > appear. Similar to this bug already fixed in the standalone component. > > 2010-05-23 <jostb@intern> > > * server/php/java/bridge/http/ChunkedInputStream.java > (read): PR#3005379: Return the buffer contents before reading from > the network, in order to avoid deadlock. > Thanks to Oliver Billmann. > > * server/php/java/bridge/http/ChunkedInputStream.java > (eof): New method > > * server/php/java/bridge/http/ChunkedOutputStream.java > (eof): New method > > * server/php/java/bridge/JavaBridgeRunner.java > (doPut): do not read/write 0\r\n chunk after an exception (e.g.: > OutOfMemoryError or RequestAbortException) occured > > > I think the new 6.x versions still aren't ready for prime time ... :( > > > > > On 6/11/10, Jost Boekemeier <jos...@go...> wrote: >> Hi Sravan, >> >> thank you very much for this bug report. This is a regression. We have >> added security checks to JavaProxy.php, see NEWS file and >> http://php-java-bridge.cvs.sourceforge.net/viewvc/php-java-bridge/php-java-bridge/server/buildJavaProxy.php?view=markup >> >> Since version 6.x the java/JavaProxy.php cannot read your .php file >> anymore. >> >> Please change the php_include_java option to "Off" >> >> - >> <init-param><param-name>php_include_java</param-name><param-value>On</param-value></init-param> >> + >> <init-param><param-name>php_include_java</param-name><param-value>Off</param-value></init-param> >> >> and include Java.inc in each of your PHP scripts. I will fix this in >> the CVS head and change the install instructions. >> >> Thanks again for reporting this issue. >> >> >> Regards, >> Jost Bökemeier >> > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |
From: <php...@li...> - 2010-06-11 10:27:02
|
The "hanging" is a separate issue. Since version 6 we use chunked connections everywhere. HTTP/1.1 Transfer-Encoding: chunked requires 0\r\n as a shutdown sequence. If PHP crashes early, both, the front-end and the back-end side will wait for each other's 0\r\n to appear. Similar to this bug already fixed in the standalone component. 2010-05-23 <jostb@intern> * server/php/java/bridge/http/ChunkedInputStream.java (read): PR#3005379: Return the buffer contents before reading from the network, in order to avoid deadlock. Thanks to Oliver Billmann. * server/php/java/bridge/http/ChunkedInputStream.java (eof): New method * server/php/java/bridge/http/ChunkedOutputStream.java (eof): New method * server/php/java/bridge/JavaBridgeRunner.java (doPut): do not read/write 0\r\n chunk after an exception (e.g.: OutOfMemoryError or RequestAbortException) occured I think the new 6.x versions still aren't ready for prime time ... :( On 6/11/10, Jost Boekemeier <jos...@go...> wrote: > Hi Sravan, > > thank you very much for this bug report. This is a regression. We have > added security checks to JavaProxy.php, see NEWS file and > http://php-java-bridge.cvs.sourceforge.net/viewvc/php-java-bridge/php-java-bridge/server/buildJavaProxy.php?view=markup > > Since version 6.x the java/JavaProxy.php cannot read your .php file > anymore. > > Please change the php_include_java option to "Off" > > - > <init-param><param-name>php_include_java</param-name><param-value>On</param-value></init-param> > + > <init-param><param-name>php_include_java</param-name><param-value>Off</param-value></init-param> > > and include Java.inc in each of your PHP scripts. I will fix this in > the CVS head and change the install instructions. > > Thanks again for reporting this issue. > > > Regards, > Jost Bökemeier > |
From: <php...@li...> - 2010-06-11 10:11:09
|
Hi Sravan, thank you very much for this bug report. This is a regression. We have added security checks to JavaProxy.php, see NEWS file and http://php-java-bridge.cvs.sourceforge.net/viewvc/php-java-bridge/php-java-bridge/server/buildJavaProxy.php?view=markup Since version 6.x the java/JavaProxy.php cannot read your .php file anymore. Please change the php_include_java option to "Off" - <init-param><param-name>php_include_java</param-name><param-value>On</param-value></init-param> + <init-param><param-name>php_include_java</param-name><param-value>Off</param-value></init-param> and include Java.inc in each of your PHP scripts. I will fix this in the CVS head and change the install instructions. Thanks again for reporting this issue. Regards, Jost Bökemeier |
From: <php...@li...> - 2010-06-11 08:53:51
|
Hi, please the joomla maintainer for help. Joomla uses __autoload, so you cannot use it with any other library. There isn't anything we can do. Running joomla in apache doesn't help. Regards, Jost Bökemeier Am 10.06.2010 17:34 schrieb <php...@li...>: Hi Jost, Thank for your attention and new sorry for my bad english. I see web.xml in app jes (derived from JavaBridgeTemplate) and javaBridge and remove php_include_java option for include java only in specific php. But the problems no is it. how you say the problem is in Joomla, I modify joola JLoader class in both locations and work OK. I am new in Php, for this reason not know much about scritp and classloader php vehaviors but I study this bug for inform to joomla team. My idea is use Joomla App in normal way, instaling it in Apache DocumentRoot (p.e. C:/xampp/htdocs/myappjoomla) and include require_once("http://127.0.0.1:8080/JavaBridge/java/Java.inc"); only in php file who access java class And only instaling in jee server (backend server p.e. geronimo) javaBridge and others java components. In others words use backend server for execute java parts and execute statics contents and Php pure script in Apache. In this test work Ok. But I intrested for yours coments about. Regards --- El jue 10-jun-10, php...@li... < php...@li...> escribió: De: php...@li... < php...@li...> Asunto: Re: [Php-java-bridge-users] Running Joomla App on Geronimo Server using PhpJavaBridge Para: php...@li... Fecha: jueves, 10 de junio de 2010, 5:37 FYI: I have removed the php_include_java option from the JavaBridgeTemplate.war file and added it ... |
From: <php...@li...> - 2010-06-10 15:03:13
|
Hey guys, I'm very new to Tomcat and PHP development, however, I'm currently working on a Java Web App. It however requires a Contact/Feedback Form, and so I'm looking into using PHP to provide the backend work for the form. Anyways, I followed all the steps. (the only thing that I questioned was putting the + sign or not..but Im pretty sure you aren't supposed to). So I added the lines to web.xml and moved the three jar files JavaBridge, php-servlet and php-script over to "tomcat/lib" Then I created a new script called test.php and put it in "tomcat/webapps/ROOT/" however, everytime I call the script through my HTML Form via 'action="test.php"' the browser waits forever to load it and nothing happens. As well, if I try going directly "http://localhost:8100/test.php" I get a Http 404 Not found. All in all it seems as though my php form isn't being properly recognized. Any solutions? Sincerely, Sravan Suryadevara University of Illinois | Urbana-Champaign B.S Computer Science | Class of 2013 E-mail | sur...@il... Phone | (908) 432-5330 |
From: <php...@li...> - 2010-06-10 08:37:34
|
FYI: I have removed the php_include_java option from the JavaBridgeTemplate.war file and added it to the JavaBridge.war instead. I think this will avoid these support requests in the future. <!-- the following line conveniently adds require_once("java/Java.inc") to each PHP script. Remove the line, if you don't need this feature. --> <init-param><param-name>php_include_java</param-name><param-value>On</param-value></init-param> --> On 6/10/10, Jost Boekemeier <jos...@go...> wrote: > Hi, > > if you are refering to the joomla bug described in > > http://bugs.php.net/bug.php?id=49618 > > Yoomla uses _autoload. Please contact the yoomla maintainer to fix this > bug. > > > It may also be possible to patch Java.inc to not use spl_autoload or to > patch php to not destroy _autoload if spl_autoload is present. But we won't > do this. > > Regards, > Jost Bökemeier > > Am 10.06.2010 03:03 schrieb <php...@li...>: > > Hi, > > I try run Joomla 1.5.17 project on > Php 5.3.1 > Apache 2.2.14 > Geronimo Server 2.1.4 > using Php-JavaBridge 6.1.2.1 > > I deploy javaBrigge.war in Geronimo Server. All test Ok. > > I create jes.war using javaBridgeTemplate6121.war and deploy it in > Geronimo > Server, > > I execute simple test Ok, when call jes app the firs page ok, bat no work > other pages, not found css, js, images and other statics files. > > I connect Apache with Gerónimo vía modjk and I configure Apache > for manage all static files and remit to geronimo only jes/*.php work Ok. > All files are in Geronimo websapp/jes. > I execute my simple test > > > require_once("java/Java.inc"); > echo 'milisec: '.java("java.lang.System")->currentTimeMillis().'<br/>'; > Work Ok > all joomla component in de same file work Ok. > > I try to ejecute same app in Apache DocumentRoot C:/xampp/htdocs/jes, > original location. > And insert simple test > .. > require_once("http://127.0.0.1:8080/JavaBridge/java/Java.inc"); > echo 'milisec: '.java("java.lang.System")->currentTimeMillis().'<br/>'; > .. > Work but after, all Joomla compomente in the same php file, who is > intantiane with "new" operator (not found class). > > Any idea? > > Thank and soory for my bad english. > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |
From: <php...@li...> - 2010-06-10 08:28:36
|
FYI: > Cannot access /java within the current web directory. I have changed the error message to: if (url == null) throw new IllegalStateException("Cannot access "+pathInfo+" within the current web application. Please explode it: Unzip the application .war file into a directory and deploy the directory instead."); > ScriptEngine e = ( new ScriptEngineManager() ).getEngineByName( "php-invocable" ); > e.eval( EngineFactory.createPhpScriptReader( "hello.php" ) ); We can't do anything to avoid this confusion here. You probably wanted to use a java.io.FileReader() instead. |
From: <php...@li...> - 2010-06-10 05:11:14
|
Hi, if you are refering to the joomla bug described in http://bugs.php.net/bug.php?id=49618 Yoomla uses _autoload. Please contact the yoomla maintainer to fix this bug. It may also be possible to patch Java.inc to not use spl_autoload or to patch php to not destroy _autoload if spl_autoload is present. But we won't do this. Regards, Jost Bökemeier Am 10.06.2010 03:03 schrieb <php...@li...>: Hi, I try run Joomla 1.5.17 project on Php 5.3.1 Apache 2.2.14 Geronimo Server 2.1.4 using Php-JavaBridge 6.1.2.1 I deploy javaBrigge.war in Geronimo Server. All test Ok. I create jes.war using javaBridgeTemplate6121.war and deploy it in Geronimo Server, I execute simple test Ok, when call jes app the firs page ok, bat no work other pages, not found css, js, images and other statics files. I connect Apache with Gerónimo vía modjk and I configure Apache for manage all static files and remit to geronimo only jes/*.php work Ok. All files are in Geronimo websapp/jes. I execute my simple test require_once("java/Java.inc"); echo 'milisec: '.java("java.lang.System")->currentTimeMillis().'<br/>'; Work Ok all joomla component in de same file work Ok. I try to ejecute same app in Apache DocumentRoot C:/xampp/htdocs/jes, original location. And insert simple test .. require_once("http://127.0.0.1:8080/JavaBridge/java/Java.inc"); echo 'milisec: '.java("java.lang.System")->currentTimeMillis().'<br/>'; .. Work but after, all Joomla compomente in the same php file, who is intantiane with "new" operator (not found class). Any idea? Thank and soory for my bad english. ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
From: <php...@li...> - 2010-06-03 10:11:06
|
Hello! you can open JavaBridgeTemplate.war with winzip and add the contents of the phpMyAdmin zip file to it. Add the directories cgi\x86-windows\conf.d cgi\x86-windows\ext and add a file cgi\x86-windows\conf.d\mysql.ini with the content: # mysql.ini extension = php_mysql.dll extension = php_mysqli.dll Download: http://windows.php.net/downloads/releases/php-5.3.2-nts-Win32-VC9-x86.zip and copy its php-cgi.exe as php-cgi-x86-windows.exe and php5.dll to the zip file cgi\ directory. Rename JavaBridgeTemplate.war to MysqlAdmin.war and deploy it. Visit http://yourHost.com:8080/MysqlAdmin > Will these instructions: http://wiki.phpmyadmin.net/pma/Quick_Install work? I am sure. |
From: <php...@li...> - 2010-06-02 18:09:02
|
Hi! Does anyone know how I can install phpMyAdmin under Tomcat? Will these instructions: http://wiki.phpmyadmin.net/pma/Quick_Install work? Thanks in advance. Sincerely, Marta Fernandes _________________________________________________________________ Hotmail: Trusted email with powerful SPAM protection. https://signup.live.com/signup.aspx?id=60969 |
From: <php...@li...> - 2010-06-02 14:59:12
|
Hi Jordan, > I'm not sure I understand how things > work because on the 32-bit system I turn off tomcat and php is still able to > instatiate java objects if you installed the PHP Apache- or command line SAPI, you can call a (remote-) server simply by fetching Java.inc. Whether or not PHP is 64 or 32 bit, or the Java VM is 64 or 32 bit doesn't matter. The XML protocol will take care of the details. Please download JavaBridge.jar and start it: java -jar JavaBridge.jar SERVLET:8087 4 "" In your PHP scripts add: require_once("http://yourServerRunningJavaBridgejar.com:8087/JavaBridge/java/Java.inc"); to the beginning of your script. That's all. Regards, Jost Bökemeier On 6/2/10, php...@li... <php...@li...> wrote: > I have a similar problem with 64bit system. Can someone please volunteer to > help with the installation. I can setup a server with credentials. I'd be > happy to pay for your time. > > Server is 64bit ubuntu 9.04 > > If you are trying to run java code from php and not vice versa ( run php on > tomcat) you don't need tomcat do you? I'm not sure I understand how things > work because on the 32-bit system I turn off tomcat and php is still able to > instatiate java objects. > > Thanks, > Jordan > > On Wed, Jun 2, 2010 at 12:04 AM, < > php...@li...> wrote: > >> Hi Bernhard, >> >> >> when we say tomcat, we mean tomcat from http://tomcat.apache.org >> >> If you want to use some other software, please contact its vendor for >> support. >> >> >> > Caused by: java.security.AccessControlException: access denied >> (java.io.FilePermission /tmp/tomcat6-temp read) >> >> Sounds as if you have installed some software which cannot read its >> own temp directory. >> >> >> Please download and install tomcat from http://tomcat.apache.org. >> >> >> Regards, >> Jost Bökemeier >> >> >> ------------------------------------------------------------------------------ >> >> _______________________________________________ >> php-java-bridge-users mailing list >> php...@li... >> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users >> > ------------------------------------------------------------------------------ > > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |
From: <php...@li...> - 2010-06-02 12:42:15
|
I have a similar problem with 64bit system. Can someone please volunteer to help with the installation. I can setup a server with credentials. I'd be happy to pay for your time. Server is 64bit ubuntu 9.04 If you are trying to run java code from php and not vice versa ( run php on tomcat) you don't need tomcat do you? I'm not sure I understand how things work because on the 32-bit system I turn off tomcat and php is still able to instatiate java objects. Thanks, Jordan On Wed, Jun 2, 2010 at 12:04 AM, < php...@li...> wrote: > Hi Bernhard, > > > when we say tomcat, we mean tomcat from http://tomcat.apache.org > > If you want to use some other software, please contact its vendor for > support. > > > > Caused by: java.security.AccessControlException: access denied > (java.io.FilePermission /tmp/tomcat6-temp read) > > Sounds as if you have installed some software which cannot read its > own temp directory. > > > Please download and install tomcat from http://tomcat.apache.org. > > > Regards, > Jost Bökemeier > > > ------------------------------------------------------------------------------ > > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |
From: <php...@li...> - 2010-06-02 07:04:44
|
Hi Bernhard, when we say tomcat, we mean tomcat from http://tomcat.apache.org If you want to use some other software, please contact its vendor for support. > Caused by: java.security.AccessControlException: access denied (java.io.FilePermission /tmp/tomcat6-temp read) Sounds as if you have installed some software which cannot read its own temp directory. Please download and install tomcat from http://tomcat.apache.org. Regards, Jost Bökemeier |