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...> - 2007-08-15 13:27:43
|
Hello, I'm working on a project that needs pdfbox. I need to call a method which expects a subclass from abstract-class ProtectionPolicy. If i pass this object i get an IllegalArgumentException: Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: Invoke failed: [[o:PDDocument]]->protect((o:ProtectionPolicy)[o:StandardProtectionPolicy]). Cause: java.lang.IllegalArgumentException Documentation: http://www.pdfbox.org/javadoc/org/pdfbox/pdmodel/encryption/StandardProtectionPolicy.html I believe i'm using it the right way. Anyone got an idea what i'm doing wrong? My code: $ap = new Java("org.pdfbox.pdmodel.encryption.AccessPermission"); $ap->setCanModify(false); $oDoc = new Java("org.pdfbox.pdmodel.PDDocument"); $oProtect = new Java("org.pdfbox.pdmodel.encryption.StandardProtectionPolicy ","test","test",$ap); $doc = $oDoc->load( "/home/www/testserver/webapp/upload/test.pdf"); $doc->protect($oProtect); $doc->save("/home/www/testserver/webapp/htdocs/testcases/out/testoutput.pdf"); Thanks in advance, Gilbert |
From: <php...@li...> - 2007-08-15 09:59:43
|
Why don't you create a string array explicitly, for example by using java.reflect.Array? The code would look like this: $array = java("java.reflect.Array")->newInstance(java("java.lang.String"), $count); Please see the documentation for details: http://php-java-bridge.sourceforge.net/pjb/extension_mappings.php __________________________________ Alles was der Gesundheit und Entspannung dient. BE A BETTER MEDIZINMANN! www.yahoo.de/clever |
From: <php...@li...> - 2007-08-14 22:26:03
|
I'm stuck and looking for anybody with ideas. I have a multi-dimensional PHP array that I want to pass into a Java method that expects a HashMap. So far, so good. I found that I could not pass the array in directly, but I could pass the php array into a HashMap constructor and then pass that: // simplified php code to illustrate the problem $phpArray = array( "foo" => "bar", "baz" => array("x", "y", "z") ); $hm = new Java("java.util.HashMap", $phpArray); $myObj->myMethod($hm); So far, so good. The problem is that the Java code expects one of the members of the HashMap to be of type String[]: // simplified java code to illustrate the problem // hash is the passed-in HashMap<String, Object> String[] stringArray; stringArray = (String[])hash.get("baz"); This fails with a ClassCastException because when the HashMap was created, the inner array became a HashMap, not an array, and the HashMap cannot be cast to a String[]. I know if you pass an indexed php array as an argument to a Java method that expects an array, it will be cast appropriately, but in this case, the bridge does not have that information available to it, and apparently defaults to a HashMap for the inner array. Is there any way that I can make this work without digging into the Java source? I've tried multiple methods of "tricking" the bridge into giving me a Java String[], but it always outsmarts me and makes it a php array(). Michael. |
From: <php...@li...> - 2007-08-14 18:04:29
|
Hi, > I have a question, what is ABI-incompatible headers ? basically the ABI and its declared API must match. Example: extern void cdecl GetCursor(); will not work when the ABI expects a different calling convention. The PHP library carries a tag which is checked when a module is loaded to avoid these problems. Regards, Jost Boekemeier __________________________________ Yahoo! Clever: Sie haben Fragen? Yahoo! Nutzer antworten Ihnen. www.yahoo.de/clever |
From: <php...@li...> - 2007-08-14 17:54:35
|
Hi, > is it possible to get the FOP converted into php only code? assuming that the fop library doesn't depend on external libraries and that it can be compiled into native code (using gcc4), yes, this should be possible. -- Even if gcc is not able to compile the jar file into a native fop.so library, it should still be able to interpret the jar file using the byte code interpreter built into libgcj. Which error message do you get? Regards, Jost Boekemeier Jetzt Mails schnell in einem Vorschaufenster überfliegen. Dies und viel mehr bietet das neue Yahoo! Mail - www.yahoo.de/mail |
From: <php...@li...> - 2007-08-14 16:22:12
|
Hi, is it possible to get the FOP converted into php only code? In a german magazine is described with >java -jar JavaBridge.jar --convert /usr/share/php5/pear fop.jar I tried it with 0.93 and 0.20 of fop but nothing worked and i always got an error. I want to use FO for generating PDF-files on a webserver without Java VM. Kind regards Mark Buss |
From: <php...@li...> - 2007-08-14 11:16:44
|
Now , I used C source 3.2.1 can run well with php5.2.3 and Zend = optimize, but C source 4.1.8 cannot. =20 I have a question, what is ABI-incompatible headers ? =20 I=E2=80=99m never heard it. =20 Thanks a lot. =20 =20 Regards, Keins Ruite . aBBISh =20 =20 =20 Hi, =20 > But I let the php-java-bridge add to existing php.ini the=20 > php-java-bridge runs failed, =20 this problem comes up once in a while. And support requests like these = where the reason why we don't recommend to use the C implementation[1]. = -- Compiling C code isn't for everyone; the gcc optimizer may be broken = (gcc 3.3.x), or users may confuse the php.ini used by apache with the = php.ini used by the PHP-cli, other users install ABI-incompatible = headers for a system PHP installation, compile against them and wonder = why the module doesn't load or crash. =20 Isn't it possible to use the pure PHP implementation instead? =20 =20 > it seems cannot load the java.so lib file and start apache httpd=20 > don???t dump any errors =20 Well, AFAIK there is no php 5.2.3 for Suse Linux available. So I guess = you have compiled PHP 5.2.3 yourself. Are you sure that you have = compiled against the 5.2.3 ABI? Or do you have compiled against the ABI = that came with your Suse Linux operating system? =20 Do you load the java.so from the php ini file used by apache? =20 =20 In any case, if you can't or don't know how to compile C code, please = use the pure PHP implementation instead. Or please open a problem = report, please use http://sourceforge.net/tracker/?group_id=3D117793 = <http://sourceforge.net/tracker/?group_id=3D117793&atid=3D679233> = &atid=3D679233. =20 =20 Regards, Jost Boekemeier =20 =20 =20 Jetzt Mails schnell in einem Vorschaufenster ?berfliegen. Dies und = viel mehr bietet das neue Yahoo! Mail - www.yahoo.de/mail =20 =20 |
From: <php...@li...> - 2007-08-14 07:50:16
|
Hi, > the php_java.dll (which I think is what Jost means by the C-based > extension module ... is this correct?) or alternately the "pure PHP The php_java.dll or java.so (Unix) is the Java.inc, compiled to native code, yes. > PHP/Java Bridge classes" which I can't identify in code. It will be created as java/Java.inc, if you run the test.sh or test.bat. > correctly identified the C-based extension? Where do the pure PHP > PHP/Java Bridge classes reside, and are they PHP classes or Java Classes? Usually in the back end (in META-INF of JavaBridge.jar) or in the PHP include path. [http front-end, j2ee back-end] > That an attempt to access a Java session from a PHP script residing > entirely in the Apache home directory (invisible to servlet) works quite > well so long as the critical include directly references the servlet, e.g. > 1. Neither the C nor pure PHP extensions are needed any longer on the > Apache/PHP side? If you want to allocate a session from the J2EE back end, you need to call java_session(). The function is exported from Java.inc. > I'm aware that the Java side is doing PHP work using its internal PHP > interpreter At the moment there is no Java-based PHP interpreter. *IF* we want to make use of just in time compilation of PHP opcode, we *may* implement a translator. But there are no immediate plans to write PHP in pure Java, yet. > 3. I'm missing a basic understanding? Well, the bridge is just an XML-based network protocol, which translates PHP/Java calls into XML and then passes them to the back-end. [running PHP as a FastCGI sub-process of the J2EE server] > script that accesses a Java session, using the URI > JavaBridge/myScript.php is very slow, e.g. 5seconds where JSP is about 1 On modern operating systems this shoudn't be much slower than JSP. However, there are some older OS, which use Nagle's algorithm even for the local interface. This insane setting can't be switched off in PHP, so we can't do anything to speed up round-trips on this OS (BSD). [running PHP within Apache] > second, but that running the same PHP script directly in Apache, even > though it still references a java session (but only for a single call I In both cases it needs a round-trip through the back-end, so I don't know where the delay comes from. > improved efficiency of the PHP/Apache collaboration and threading ... Not really. In most cases J2EE/FastCGI is as fast (or even faster) than Apache/PHP. > does that make sense? Would adding the C or Pure PHP classes affect > these kinds of performance issues? No. -- Well, yes, if you don't have an PHP opcode cache. But this is true for any PHP code. Regards, Jost Boekemeier Jetzt Mails schnell in einem Vorschaufenster überfliegen. Dies und viel mehr bietet das neue Yahoo! Mail - www.yahoo.de/mail |
From: <php...@li...> - 2007-08-13 17:40:49
|
Unfortunately, I have not been able to code up a simple case (that does = not instantiate a class in my several-class library), so the bug report may = not be too useful. I've since re-written some of the code to accommodate a hybrid method of loading config (some from classpath some from local = files), and now it's working again (including the portion that loads from the classpath). All of this suggests that it's just a bug in my code. However, I still added a ticket (#1773240) because the inconsistency = between how the code operates when called from a Java app and when called from = PHP through the bridge suggests that there may still be a bug there. Michael > -----Original Message----- > From: php...@li... [mailto:php- > jav...@li...] On Behalf Of = php-java- > bri...@li... > Sent: Thursday, July 19, 2007 10:56 AM > To: php...@li... > Subject: Re: [Php-java-bridge-users] getResource() not working through > thebridge >=20 > Hi Michael, >=20 >=20 > > $r =3D $class->getResource("my/package/config.properties"); // = works, but > see >=20 > interesting. Is that the correct behaviour of the DynamicClassLoader? >=20 >=20 > Please open a ticket (please use > = http://sourceforge.net/tracker/?func=3Dadd&group_id=3D117793&atid=3D67923= 3). >=20 > Martin or I will check this issue. >=20 >=20 > Regards, > Jost Boekemeier >=20 >=20 >=20 > __________________________________ Wissenswertes f=FCr Bastler = und > Hobby Handwerker. BE A BETTER HEIMWERKER! www.yahoo.de/clever >=20 > = -------------------------------------------------------------------------= > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
From: <php...@li...> - 2007-08-13 17:19:13
|
Hi .. I'm (primarily) a Java J2EE developer, working on a project to integrate JAAS security authentication with PHP authentication using WebSphere. Hope to produce a Drupal module if successful; time will tell. If things go well, one result will be some documentation of the process, necessarily limited by my understanding of the JavaBridge and PHP, both hopefully growing, and possibly a journal article or two. I've posted preliminaries of the first couple of steps as blog entries at http://dorsetwest.com (specifically http://www.dorsetwest.com/node/34). I'd be grateful for any review by more experienced users of the bridge, now and as this moves along so I can catch my errors and misunderstandings. In the comments that follow I'm using the August 7 build of JavaBridge. One understanding I'm trying to check relates to the purpose and use of the php_java.dll (which I think is what Jost means by the C-based extension module ... is this correct?) or alternately the "pure PHP PHP/Java Bridge classes" which I can't identify in code. Have I correctly identified the C-based extension? Where do the pure PHP PHP/Java Bridge classes reside, and are they PHP classes or Java Classes? I find, for example, that on a windows platform with: * No particular Apache extensions other than enabling PHP 5.2 (installed with MySQL and an image package only), * A JavaBridge servlet running on my WAS server, * Apache configured to route Java-bound URL's to the servlet engine by means of the WebSphere plugin, That an attempt to access a Java session from a PHP script residing entirely in the Apache home directory (invisible to servlet) works quite well so long as the critical include directly references the servlet, e.g. if(!extension_loaded('java')) require_once("http://localhost:9080/JavaBridge/java/Java.inc"); Does this mean: 1. Neither the C nor pure PHP extensions are needed any longer on the Apache/PHP side? I did see an "optional" post by Jost on this list, but wasn't sure what the effect of inclusion or non-inclusion at the Apache/PHP level had. I'm aware that the Java side is doing PHP work using its internal PHP interpreter 2. The C or PHP extensions are needed, and are included or referenced by some mechanism I haven't figured out yet, or 3. I'm missing a basic understanding? I do note that interpreting PHP through the bridge, e.g. running a PHP script that accesses a Java session, using the URI JavaBridge/myScript.php is very slow, e.g. 5seconds where JSP is about 1 second, but that running the same PHP script directly in Apache, even though it still references a java session (but only for a single call I think) is very fast, less than a second. I attribute that to the improved efficiency of the PHP/Apache collaboration and threading ... does that make sense? Would adding the C or Pure PHP classes affect these kinds of performance issues? Help is welcome ... I've got a few other questions, but will put them in another post for clarity. |
From: <php...@li...> - 2007-08-13 12:59:45
|
Hi, It seems that the entire OSDN subnet is not reachable for an unknown reason. > Is there some other location or mirror to get it from? It seems to be down > already a while... Well, other open-source distribution channels are likely to have similar problems. I remember that php.net was not reachable for at least three days. Regards, Jost Boekemeier __________________________________ Yahoo! Clever: Sie haben Fragen? Yahoo! Nutzer antworten Ihnen. www.yahoo.de/clever |
From: <php...@li...> - 2007-08-13 12:46:12
|
Is there some other location or mirror to get it from? It seems to be d= own already a while... Michael = From: php...@li... = = To: php...@li... = = Date: 13.08.2007 14:38 = = Subject: Re: [Php-java-bridge-users] Download page link dangling..= . = Hi, > to dangle. I only get unable to connect... the link is okay, but sf.net uses a different Apache pool for the downl= oad area. I guess the pool has some temporary problems. Regards, Jost Boekemeier Wissenswertes f=FCr Bastler und Hobby Handwerker. BE A BETTER HEIMWERKER! www.yahoo.de/clever -----------------------------------------------------------------------= -- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser.= Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users = |
From: <php...@li...> - 2007-08-13 12:38:10
|
Hi, > to dangle. I only get unable to connect... the link is okay, but sf.net uses a different Apache pool for the download area. I guess the pool has some temporary problems. Regards, Jost Boekemeier Wissenswertes für Bastler und Hobby Handwerker. BE A BETTER HEIMWERKER! www.yahoo.de/clever |
From: <php...@li...> - 2007-08-13 12:31:12
|
The temp. download link http://sourceforge.net/project/showfiles.php?group_id=117793 on http://php-java-bridge.sourceforge.net/pjb/download.php seem to dangle. I only get unable to connect... Michael |
From: <php...@li...> - 2007-08-13 12:31:11
|
Hi, > I only use Zend optimize or php-java-birdge in my php server, if I use both at one > time, my web server cannot run succeed what do you mean with "cannot run succeed"? Both, the C implementation and the pure PHP implementation should run well with the zend optimizer. The only thing that the C implementation does is to take the pure PHP implementation and to compile it to byte code. The optimizer shouldn't have a problem with that. Regards, Jost Boekemeier __________________________________ Alles was der Gesundheit und Entspannung dient. BE A BETTER MEDIZINMANN! www.yahoo.de/clever |
From: <php...@li...> - 2007-08-13 12:26:36
|
Hi, > But I let the php-java-bridge add to existing php.ini the php-java-bridge runs failed, this problem comes up once in a while. And support requests like these where the reason why we don't recommend to use the C implementation[1]. -- Compiling C code isn't for everyone; the gcc optimizer may be broken (gcc 3.3.x), or users may confuse the php.ini used by apache with the php.ini used by the PHP-cli, other users install ABI-incompatible headers for a system PHP installation, compile against them and wonder why the module doesn't load or crash. Isn't it possible to use the pure PHP implementation instead? > it seems cannot load the java.so lib file and start apache httpd donât dump any errors Well, AFAIK there is no php 5.2.3 for Suse Linux available. So I guess you have compiled PHP 5.2.3 yourself. Are you sure that you have compiled against the 5.2.3 ABI? Or do you have compiled against the ABI that came with your Suse Linux operating system? Do you load the java.so from the php ini file used by apache? In any case, if you can't or don't know how to compile C code, please use the pure PHP implementation instead. Or please open a problem report, please use http://sourceforge.net/tracker/?group_id=117793&atid=679233. Regards, Jost Boekemeier Jetzt Mails schnell in einem Vorschaufenster überfliegen. Dies und viel mehr bietet das neue Yahoo! Mail - www.yahoo.de/mail |
From: <php...@li...> - 2007-08-13 05:20:57
|
Hello everyone =20 I miss a problem about php-java-bridge and Zend optimize =20 I only use Zend optimize or php-java-birdge in my php server, = if I use both at one time, my web server cannot run succeed =20 What=E2=80=99s problem at here ? =20 Thanks. =20 Regards, Keins Ruite . aBBISh =20 |
From: <php...@li...> - 2007-08-12 10:52:07
|
Hello everone: =20 I have a problem when install php-java-bridge to linux for php = ext with the c source 4.1.8, =20 If I use install.sh created php.ini , the php-java-bridge runs = succeed, =20 But I let the php-java-bridge add to existing php.ini the = php-java-bridge runs failed, it seems cannot load the java.so lib file = and start apache httpd don=E2=80=99t dump any errors =20 If my php.ini only has =E2=80=9Cextension =3D java.so=E2=80=9D = , the php-java-bridge also runs succeed. =20 My system is SuSE linux 10.0 , php =E2=80=98s version is 5.2.3 =20 Is php-java-bridge =E2=80=98s bug ? =20 Please help to fix it, thanks a lot~ =20 Regards, Keins Ruite . aBBISh =20 |
From: <php...@li...> - 2007-08-10 19:50:39
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 php...@li... wrote: > a common approach is to use a ServletContextListener and to store the created context instance > into the ServletContext of the web application. > > This way we can expose PHP script "beans" to frameworks such as JSF or Spring. > The only additional argument that the factory needs is the location (the port number) > of the pool (apache, fcgi, whatever) managing the PHP instances. > This has been an extremely informative e-mail exchange. Thanks a lot Jost! - -- Darian Anthony Patrick, ZCE, GWAS Principal, Application Development Criticode LLC (215) 240-6566 Office (866) 789-2992 Facsimile Web: http://criticode.com Email: da...@cr... JID: da...@ja... -----BEGIN PGP SIGNATURE----- iD8DBQFGvMEsKpzEXPWA4IcRAgFdAJ4snLCJS6IR11YBbk6dzpUCISOuSACcCbK5 CEJYEQQ6BPhdwTm4YG1FHFs= =6mvM -----END PGP SIGNATURE----- |
From: <php...@li...> - 2007-08-09 16:51:03
|
Hi, > Converting HTTP to LOCAL URL did the trick. It runs a lot faster now, from 16 seconds, it's > down to 0-4 seconds. That's good enough considering that ordinary Wiki pages that do not use 4 seconds is still too slow if the cache is enabled and the jars are cached. I'd say that if a script runs for much more than 200ms, then the script contains a bug. > I am just curious... just how much memory does the loader > cache use up? Can I change its value in some config file? Up to 64M (see the -Xmx JVM option). > I was using 3.1.x J2EE(?) for Windows XP because of the good tutorial > site I mentioned in my last email. Why do you need a tutorial to install the bridge? Your PHP code should contain a require_once("java/Java.inc") (or "java/Java.php", if you use version 3.2.1) and your java app must be running. That's all. > version for Debian. Instead there is a 4.x J2EE *.DEB file. I think there's a 3.2.1 version, too. > This should work just as well, shouldn't it? Yes. Java and PHP don't depend on a particular OS kernel. > Aside from the INSTALL.LINUX readme file inside the archive file > for Debian, where else can I find instructions/tutorials on > installing on Debian? Which information are you looking for? Regards, Jost Boekemeier Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s mit dem neuen Yahoo! Mail. www.yahoo.de/mail |
From: <php...@li...> - 2007-08-09 16:50:03
|
Hi, > Is a ScriptEngine of > this type already planned for a future release? a common approach is to use a ServletContextListener and to store the created context instance into the ServletContext of the web application. This way we can expose PHP script "beans" to frameworks such as JSF or Spring. The only additional argument that the factory needs is the location (the port number) of the pool (apache, fcgi, whatever) managing the PHP instances. The two new ScriptEngines themselfs will probably be descendants of the php and php-invocable engine. -- The invocable engine will be tricky, because it needs to suspend execution (via "java_closure()") to allow Java calls into the "bean". But this shouldn't be a problem if allow_url_include is set to On. In the worst case it must use a temporary file. I think I could implement this for the next version, 4.2.3. Regards, Jost Boekemeier Jetzt Mails schnell in einem Vorschaufenster überfliegen. Dies und viel mehr bietet das neue Yahoo! Mail - www.yahoo.de/mail |
From: <php...@li...> - 2007-08-08 23:09:45
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > You say that you use the Script API from within servlets. First of all, the PhpScriptEngine > currently always starts a PHP CGI continuation. If you want to use PHP script instances from > a FastCGI or Apache/IIS pool, you currently need a URLReader. I think it makes sense to add > a ScriptEngine which exposes Apache or FastCGI PHP instances through the JSR223 script API. Interesting. Okay, thanks for your help Jost. Is a ScriptEngine of this type already planned for a future release? - -- Darian Anthony Patrick, ZCE, GWAS Principal, Application Development Criticode LLC (215) 240-6566 Office (866) 789-2992 Facsimile Web: http://criticode.com Email: da...@cr... JID: da...@ja... -----BEGIN PGP SIGNATURE----- iD8DBQFGuk0HKpzEXPWA4IcRAhXqAJ4q9u/kKk8M5mHWyWTQc1QoKvsbCQCbBClz 6OCr4OFFZH5HVTweSxcsb3E= =dMmt -----END PGP SIGNATURE----- |
From: <php...@li...> - 2007-08-08 16:17:13
|
Hi, > > P.S. Additionally, the examples at the bottom of INSTALL.J2SE have the > > line "e.eval((Reader)null);". What is that line used for? it releases the PHP continuation immediately. It is taken from the tests, which check if calling eval with a null works. I will remove that line. However, you're right that the PHP/Java Bridge should release the PHP continuation before the ScriptEngine is finalized. At the moment it keeps the PHP continuation as long as possible. This isn't a problem in practice (when ScriptEngines are pooled). You say that you use the Script API from within servlets. First of all, the PhpScriptEngine currently always starts a PHP CGI continuation. If you want to use PHP script instances from a FastCGI or Apache/IIS pool, you currently need a URLReader. I think it makes sense to add a ScriptEngine which exposes Apache or FastCGI PHP instances through the JSR223 script API. Regards, Jost Boekemeier Wissenswertes für Bastler und Hobby Handwerker. BE A BETTER HEIMWERKER! www.yahoo.de/clever |
From: <php...@li...> - 2007-08-08 04:11:04
|
Thanks Jost! > then it is better to use a local URL. For example: Converting HTTP to LOCAL URL did the trick. It runs a lot faster now, from 16 seconds, it's down to 0-4 seconds. That's good enough considering that ordinary Wiki pages that do not use PHP-Java Bridge sometimes take up to 3 seconds to load. > I assume that is what java_reset() does(?). Yes. It clears the loader cache, which means that the dynamic loader must load the classes again and again. I am just curious... just how much memory does the loader cache use up? Can I change its value in some config file? > java_reset()? Maybe, from an old local copy of some > website? It was documented in java.c, which doesn't exist anymore. But AFAIK the documentation contained a warning that java_reset() should never be used in user scripts. The next thing I'd like to do is migrate code from my test environment (Windows XP) to a production environment (Debian Linux). Before anything else, I'd like to know if this is the still the right place to ask questions on Debian installation or is there a more specialized mailing list for this? I was using 3.1.x J2EE(?) for Windows XP because of the good tutorial site I mentioned in my last email. I noticed there is no equivalent version for Debian. Instead there is a 4.x J2EE *.DEB file. This should work just as well, shouldn't it? Aside from the INSTALL.LINUX readme file inside the archive file for Debian, where else can I find instructions/tutorials on installing on Debian? Regards, Filip php...@li... wrote: Send php-java-bridge-users mailing list submissions to php...@li... To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users or, via email, send a message with subject or body 'help' to php...@li... You can reach the person managing the list at php...@li... When replying, please edit your Subject line so it is more specific than "Re: Contents of php-java-bridge-users digest..." Today's Topics: 1. Re: Speeding up PHP-Java Bridge code (php...@li...) 2. Re: Speeding up PHP-Java Bridge code (php...@li...) 3. Re: How do I configure javaBridge.war to work with tomcat and php isapi? (php...@li...) 4. Re: How do I configure javaBridge.war to work with tomcat and php isapi? (php...@li...) 5. fail to build from CVS (php...@li...) 6. Re: fail to build from CVS (php...@li...) 7. Re: fail to build from CVS (php...@li...) 8. php-cgi processes persist until server restart (php...@li...) ---------------------------------------------------------------------- Message: 1 Date: Fri, 3 Aug 2007 06:55:11 +0100 (BST) From: php...@li... Subject: Re: [Php-java-bridge-users] Speeding up PHP-Java Bridge code To: php...@li... Message-ID: <102...@we...> Content-Type: text/plain; charset=iso-8859-1 Hi Jost! > the code pulls the java libraries from a remote > server... Fetching jar files from a HTTP url is > expensive,especially if you don't allow the bridge > to cache them. Actually, the jar files are not in a remote server. They are in my PC which I am using as both server and client. For some reason, the simple syntax below would not work: java_require("myJarFile1.jar;myJarFile2.jar;..."); That is why I switched to using HTTP urls. Hmmm... could it be (another) Java classpath problem? All the jar files inside java_require() should be in my Java classpath right? >Furthermore you remove all cached libraries at the >end of the script, probably to emulate the dynamic >behaviour which is switched off for remote URL's. I assume that is what java_reset() does(?). I think I did this because sometimes my Wiki runs sluggishly after I visit a page that invokes PHP-Java Bridge. That is true, even if the next pages I view do not use PHP-Java Bridge anymore. Hmmm... okay, I'll try your suggestions and hope that fixes the problem. I wonder where I got java_reset()? Maybe, from an old local copy of some website? Regards, Filip Send instant messages to your online friends http://uk.messenger.yahoo.com ------------------------------ Message: 2 Date: Sat, 4 Aug 2007 18:03:23 +0200 (CEST) From: php...@li... Subject: Re: [Php-java-bridge-users] Speeding up PHP-Java Bridge code To: php...@li... Message-ID: <601...@we...> Content-Type: text/plain; charset=iso-8859-1 Hi Filip, > Actually, the jar files are not in a remote server. then it is better to use a local URL. For example: $here=getcwd(); java_require("$here/jar1.jar;$here/jar2.jar;..."); > could it be (another) Java classpath problem? All the I don't think so. > jar files inside java_require() should be in my Java > classpath right? No. -- Forget about the java classpath, this is an insane concept. Please use the jar repository or java_require() instead. > I assume that is what java_reset() does(?). Yes. It clears the loader cache, which means that the dynamic loader must load the classes again and again. > did this because sometimes my Wiki runs sluggishly > after I visit a page that invokes PHP-Java Bridge. > That is true, even if the next pages I view do not use > PHP-Java Bridge anymore. Interesting. Java runs as a separate process. The only common resource used by both processes is memory. Or this is a placebo effect. > java_reset()? Maybe, from an old local copy of some > website? It was documented in java.c, which doesn't exist anymore. But AFAIK the documentation contained a warning that java_reset() should never be used in user scripts. If you have still performance problems please open a new ticket and add a echo java("java.lang.System")->currentTimeMillis(); to the beginning and the end of the script. Regards, Jost Boekemeier Send instant messages to your online friends http://uk.messenger.yahoo.com |
From: <php...@li...> - 2007-08-07 19:40:46
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 php...@li... wrote: > Good day all, > > I apologize in advance if this question is answered in documentation -- > I'm having trouble find mention of it. > > I'm encountering an issue with a new php-cgi process being created on > each request, and not being terminated until servlet restart when > running PJB as "java -jar JavaBridge.jar SERVLET_LOCAL:8080 3 > JavaBridge.log". > > I feel like this isn't/shouldn't be normal behavior and that I may be > missing a configuration hook or scripting cue that let's PJB know to > shutdown the php-cgi process. I resolved this issue. It turns out that the problem was caused by my use of "php-invocable" engine where I should have been using "php". However, my other questions regarding "(Reader)null" remains. Thanks in advance for any assistance. > > P.S. Additionally, the examples at the bottom of INSTALL.J2SE have the > line "e.eval((Reader)null);". What is that line used for? > - ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users - -- Darian Anthony Patrick, ZCE, GWAS Principal, Application Development Criticode LLC (215) 240-6566 Office (866) 789-2992 Facsimile Web: http://criticode.com Email: da...@cr... JID: da...@ja... -----BEGIN PGP SIGNATURE----- iD8DBQFGuMqOKpzEXPWA4IcRApBFAJ9BltpznEt8iMuFl+fbQMSva0RyDwCfaCFm ItihaH5yrW6dsuW3LWNerxY= =r/vB -----END PGP SIGNATURE----- |