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
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
|
|
|
|
1
|
2
|
3
|
4
(1) |
5
(2) |
6
(2) |
7
(2) |
8
(4) |
9
|
10
|
11
(2) |
12
(1) |
13
(1) |
14
(4) |
15
(1) |
16
|
17
|
18
|
19
|
20
|
21
(2) |
22
(1) |
23
(2) |
24
|
25
(1) |
26
(3) |
27
|
28
(1) |
29
(5) |
30
(2) |
31
(1) |
From: <php...@li...> - 2010-07-31 11:08:48
|
Hi Jason, > I updated the birtEngine.jar [...], updated the orginal index.php [...] In this same directory I > added all the example php files and birt report designs that are used with > them. I also added a folder named birtreportlib, that shows how to use birt > libraries with the Bridge. okay > Next I updated the unsupported/eclispe.birt.lib folder to have the most > recent birt 2.6 libraries > I also updated the unsupported/platform directory to contain the latest > plugins and configuration directories. okay > I assume the birtEngine.jar will wind up in the /WEB-INF/lib directory with > the libs from the unsupported/eclipse.birt.lib libs? Yes -- I also thought about moving your org/eclipse/birt/php/birtengine/BirtEngine.java to the src ("server") directory, to make it easier to build a customized birtEngine.jar. In this case the birtEngine.jar can be removed, the BirtEngine.java should contain a copyright notice (license is MIT?) and we need to add an ant task to build birtEngine.jar. Regards, Jost Bökemeier |
From: <php...@li...> - 2010-07-30 21:04:47
|
The download is avialble here: http://www.birt-exchange.org/org/devshare/deploying-birt-reports/743-calling-birt-from-php/ ________________________________________ From: php...@li... [php...@li...] Sent: Friday, July 30, 2010 2:59 PM To: php...@li... Subject: Re: [Php-java-bridge-users] BIRT Report Designer Jost, I downloaded the latest JavaBridge.war file and updated and tested it. I should have this up on our site shortly. I also checked out the project from sourceforge and made the updates, but before I check them in I wanted to verify I have the right locations. I updated the birtEngine.jar and placed it in examples/php+jsp directory. The jar contains the source as well. I updated the orginal index.php to add a link to another php page that has a bunch of examples using the Bridge with BIRT. In this same directory I added all the example php files and birt report designs that are used with them. I also added a folder named birtreportlib, that shows how to use birt libraries with the Bridge. Next I updated the unsupported/eclispe.birt.lib folder to have the most recent birt 2.6 libraries I also updated the unsupported/platform directory to contain the latest plugins and configuration directories. I assume the birtEngine.jar will wind up in the /WEB-INF/lib directory with the libs from the unsupported/eclipse.birt.lib libs? Thanks for your help Jason ________________________________________ From: php...@li... [php...@li...] Sent: Thursday, July 29, 2010 12:30 PM To: php...@li... Subject: Re: [Php-java-bridge-users] BIRT Report Designer Hi Jason, you have full admin access now. CVS root is: export CVS_RSH=ssh :ext:YOU...@ph...:/cvsroot/php-java-bridge or :ssh:YOU...@ph...:/cvsroot/php-java-bridge (tortoise CVS) Regards, Jost Bökemeier ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
From: <php...@li...> - 2010-07-30 18:59:24
|
Jost, I downloaded the latest JavaBridge.war file and updated and tested it. I should have this up on our site shortly. I also checked out the project from sourceforge and made the updates, but before I check them in I wanted to verify I have the right locations. I updated the birtEngine.jar and placed it in examples/php+jsp directory. The jar contains the source as well. I updated the orginal index.php to add a link to another php page that has a bunch of examples using the Bridge with BIRT. In this same directory I added all the example php files and birt report designs that are used with them. I also added a folder named birtreportlib, that shows how to use birt libraries with the Bridge. Next I updated the unsupported/eclispe.birt.lib folder to have the most recent birt 2.6 libraries I also updated the unsupported/platform directory to contain the latest plugins and configuration directories. I assume the birtEngine.jar will wind up in the /WEB-INF/lib directory with the libs from the unsupported/eclipse.birt.lib libs? Thanks for your help Jason ________________________________________ From: php...@li... [php...@li...] Sent: Thursday, July 29, 2010 12:30 PM To: php...@li... Subject: Re: [Php-java-bridge-users] BIRT Report Designer Hi Jason, you have full admin access now. CVS root is: export CVS_RSH=ssh :ext:YOU...@ph...:/cvsroot/php-java-bridge or :ssh:YOU...@ph...:/cvsroot/php-java-bridge (tortoise CVS) Regards, Jost Bökemeier ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
From: <php...@li...> - 2010-07-29 16:30:12
|
Hi Jason, you have full admin access now. CVS root is: export CVS_RSH=ssh :ext:YOU...@ph...:/cvsroot/php-java-bridge or :ssh:YOU...@ph...:/cvsroot/php-java-bridge (tortoise CVS) Regards, Jost Bökemeier |
From: <php...@li...> - 2010-07-29 16:27:14
|
Use $ex->getCause(); to retrieve your exception. Regards, Jost Bökemeier |
From: <php...@li...> - 2010-07-29 14:02:28
|
Hello all, I have a java class that extends exception and it is being thrown. I can't seem to be able to catch it in PHP. If I catch JavaException my variables (errNum & errMsg) cannot be found. My class is as follows: public class ErrorDetail extends Exception { public int errNum; public String errMsg; // constructors: public ErrorDetail() { errNum = 0; errMsg = ""; } public ErrorDetail( int num, String msg ) { errNum = num; errMsg = msg; } /* method of the ErrorDetail class that returns true if an error has not occurred: */ public boolean checkError() { return ( errNum == 0 ); } } Any assistance would be greatly appreciated. Many thanks, Rob |
From: <php...@li...> - 2010-07-29 13:36:22
|
Jost, Sure I can do it. Do I have CVS access? Jason ________________________________________ From: php...@li... [php...@li...] Sent: Thursday, July 29, 2010 9:09 AM To: php...@li... Subject: Re: [Php-java-bridge-users] BIRT Report Designer Hi Jason, > We need to update the project with the new engine. agreed. Can you do this? Regards, Jost Bökemeier ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
From: <php...@li...> - 2010-07-29 13:09:29
|
Hi Jason, > We need to update the project with the new engine. agreed. Can you do this? Regards, Jost Bökemeier |
From: <php...@li...> - 2010-07-28 13:11:39
|
Hi, the PHP/Java Bridge ships with BIRT 2.5, I think. Regards, Jost Bökemeier |
From: <php...@li...> - 2010-07-26 15:48:32
|
Take a look at the comments on this Dev Share item that explain how to update the engine. http://www.birt-exchange.org/org/devshare/deploying-birt-reports/743-calling-birt-from-php/ We need to update the project with the new engine. Jason ________________________________________ From: php...@li... [php...@li...] Sent: Monday, July 26, 2010 10:32 AM To: php...@li... Subject: [Php-java-bridge-users] BIRT Report Designer Hai all, I've downloaded BIRT Report Designer version 2.6.0 for Windows. I've installed TomCat (on LINUX server) and I've placed the latest PHP Java Bridges files. The reports, I created with this BIRT Report Designer are not supported by the PHP Java Bridge. The example report of PHP Java Bridge works fine! But editing the report with BIRT Report Designer, I get the message that the original report was created by an earlier version. The reports, created with the designer are (I think) too new for the PHP Java Bridge. I get this error: [[o:Exception]:"java.lang.Exception: Invoke failed: [[o:ReportEngine]]->openReportDesign((o:String)[o:String]). Cause: org.eclipse.birt.report.engine.api.EngineException: The design file file:/home/mana/public_html/test2.rptdesign has error and can not be run. VM: 1.6.0_21@http://java.sun.com/" at: #-12 org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.openReportDes ign(ReportEngineHelper.java:248) #-11 org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.openReportDes ign(ReportEngineHelper.java:191) #-10 org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.openReportDes ign(ReportEngineHelper.java:125) #-9 org.eclipse.birt.report.engine.api.impl.ReportEngine.openReportDesign(Re portEngine.java:239) #-8 sun.reflect.GeneratedMethodAccessor43.invoke(Unknown Source) #-7 sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) #-6 java.lang.reflect.Method.invoke(Unknown Source) #-5 php.java.bridge.JavaBridge.Invoke(JavaBridge.java:1049) #-4 php.java.bridge.Request.handleRequest(Request.java:415) #-3 php.java.bridge.Request.handleRequests(Request.java:491) #-2 php.java.bridge.http.ContextRunner.run(ContextRunner.java:145) #-1 php.java.bridge.ThreadPool$Delegate.run(ThreadPool.java:60) #0 /usr/local/tomcat/webapps/JavaBridge/java/Java.inc(136): java_ThrowExceptionProxyFactory->getProxy(6, '@V', 'T', true) #1 /usr/local/tomcat/webapps/JavaBridge/java/Java.inc(219): java_Arg->getResult(true) #2 /usr/local/tomcat/webapps/JavaBridge/java/Java.inc(221): java_Client->getWrappedResult(true) #3 /usr/local/tomcat/webapps/JavaBridge/java/Java.inc(337): java_Client->getResult() #4 /usr/local/tomcat/webapps/JavaBridge/java/Java.inc(1063): java_Client->invokeMethod(4, 'openReportDesig...', Array) #5 /usr/local/tomcat/webapps/JavaBridge/java/Java.inc(1108): java_JavaProxy->__call('openReportDesig...', Array) #6 /usr/local/tomcat/webapps/JavaBridge/java/Java.inc(1199): java_AbstractJava->__call('openReportDesig...', Array) #7 [internal function]: Java->__call('openReportDesig...', Array) #8 /home/mana/public_html/test.php(74): java_InternalJava->openReportDesign('/home/mana/publ...') #9 {main}]<br /> <b>Fatal error</b>: Call to a member function toByteArray() on a non-object in <b>/home/mana/public_html/test.php</b> on line <b>87</b><br /> ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://ad.doubleclick.net/clk;226879339;13503038;l? http://clk.atdmt.com/CRS/go/247765532/direct/01/ _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
From: <php...@li...> - 2010-07-26 15:13:09
|
Hai all, I've downloaded BIRT Report Designer version 2.6.0 for Windows. I've installed TomCat (on LINUX server) and I've placed the latest PHP Java Bridges files. The reports, I created with this BIRT Report Designer are not supported by the PHP Java Bridge. The example report of PHP Java Bridge works fine! But editing the report with BIRT Report Designer, I get the message that the original report was created by an earlier version. The reports, created with the designer are (I think) too new for the PHP Java Bridge. I get this error: [[o:Exception]:"java.lang.Exception: Invoke failed: [[o:ReportEngine]]->openReportDesign((o:String)[o:String]). Cause: org.eclipse.birt.report.engine.api.EngineException: The design file file:/home/mana/public_html/test2.rptdesign has error and can not be run. VM: 1.6.0_21@http://java.sun.com/" at: #-12 org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.openReportDes ign(ReportEngineHelper.java:248) #-11 org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.openReportDes ign(ReportEngineHelper.java:191) #-10 org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.openReportDes ign(ReportEngineHelper.java:125) #-9 org.eclipse.birt.report.engine.api.impl.ReportEngine.openReportDesign(Re portEngine.java:239) #-8 sun.reflect.GeneratedMethodAccessor43.invoke(Unknown Source) #-7 sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) #-6 java.lang.reflect.Method.invoke(Unknown Source) #-5 php.java.bridge.JavaBridge.Invoke(JavaBridge.java:1049) #-4 php.java.bridge.Request.handleRequest(Request.java:415) #-3 php.java.bridge.Request.handleRequests(Request.java:491) #-2 php.java.bridge.http.ContextRunner.run(ContextRunner.java:145) #-1 php.java.bridge.ThreadPool$Delegate.run(ThreadPool.java:60) #0 /usr/local/tomcat/webapps/JavaBridge/java/Java.inc(136): java_ThrowExceptionProxyFactory->getProxy(6, '@V', 'T', true) #1 /usr/local/tomcat/webapps/JavaBridge/java/Java.inc(219): java_Arg->getResult(true) #2 /usr/local/tomcat/webapps/JavaBridge/java/Java.inc(221): java_Client->getWrappedResult(true) #3 /usr/local/tomcat/webapps/JavaBridge/java/Java.inc(337): java_Client->getResult() #4 /usr/local/tomcat/webapps/JavaBridge/java/Java.inc(1063): java_Client->invokeMethod(4, 'openReportDesig...', Array) #5 /usr/local/tomcat/webapps/JavaBridge/java/Java.inc(1108): java_JavaProxy->__call('openReportDesig...', Array) #6 /usr/local/tomcat/webapps/JavaBridge/java/Java.inc(1199): java_AbstractJava->__call('openReportDesig...', Array) #7 [internal function]: Java->__call('openReportDesig...', Array) #8 /home/mana/public_html/test.php(74): java_InternalJava->openReportDesign('/home/mana/publ...') #9 {main}]<br /> <b>Fatal error</b>: Call to a member function toByteArray() on a non-object in <b>/home/mana/public_html/test.php</b> on line <b>87</b><br /> |
From: <php...@li...> - 2010-07-26 09:39:39
|
echo java_inspect(java_context()); Please see our FAQ entry "Why does java_context()->getHttpServletRequest()->getSession() return null?" for details. At: http://php-java-bridge.sourceforge.net/pjb/FAQ.html |
From: <php...@li...> - 2010-07-25 02:45:15
|
Hi, I need to access an HTTPServletRequest object from a PHP script. Basicaly I need to retrieve the session information stored in that object. Can this be done? And if so, how can I do it? Thanks in advance. Marta Fernandes _________________________________________________________________ Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. https://signup.live.com/signup.aspx?id=60969 |
From: <php...@li...> - 2010-07-23 09:33:16
|
> However, that's just a convention. You may use any bindings to PHP I meant: You may pass any bindings to PHP using the JSR 223 API. On 7/23/10, Jost Boekemeier <jos...@go...> wrote: >> What I mean by "script level arguments" (the term is probably incorrect) >> are >> those arguments that you pass in as parameters to the script being run. >> Sort >> of like the main()'s argc/argv arguments. > > argv is passed by jrunscript on ENGINE_SCOPE: > > jrunscript -classpath JavaBridge.jar -l php test.php > > You can access it using > > <?php // test.php > echo java_context()->get("argv"); > ?> > > However, that's just a convention. You may use any bindings to PHP > using the JSR223 API. > > Regards, > Jost Boekemeier > |
From: <php...@li...> - 2010-07-23 09:32:18
|
> What I mean by "script level arguments" (the term is probably incorrect) are > those arguments that you pass in as parameters to the script being run. Sort > of like the main()'s argc/argv arguments. argv is passed by jrunscript on ENGINE_SCOPE: jrunscript -classpath JavaBridge.jar -l php test.php You can access it using <?php // test.php echo java_context()->get("argv"); ?> However, that's just a convention. You may use any bindings to PHP using the JSR223 API. Regards, Jost Boekemeier |
From: <php...@li...> - 2010-07-22 01:48:42
|
Hi Jost, Thanks for the quick reply. Also--if for some reason this creates a new thread... I'm REALLY sorry. I don't have a tendency to interact with a lot of SourceForge projects lately and I couldn't exactly figure out the proper way to reply to you response. I figured that if the mailman system were smart it'd pick up on the fact that I added the same subject, but prefix "Re:" to it and thread it in properly. Once again, sorry if I created a new thread on this by accident. =/ > why don't you simply use an Ant exec task. The build.xml shipped with > the JavaBridge source code uses this, too. There was some reason I wasn't doing this. But honestly--I can't remember now. Maybe it was just because I was being stubborn. Who knows. Obviously you point out a very simple and obvious solution for my woes. One which I should not ignore. Of course, now that I'm knee deep in the code I want to play. So at least I have a fall back solution. Thank you for pointing it out! >> So my questions are these: >> 1. Does the PHP Java Bridge support some means of identifying the location >> that it should search for an PHP executable... [/snip] > > You can use -Dphp.java.bridge.php_exec=/path/to/php-cgi.exe if php-cgi > is not in the PATH. Please see php.java.bridge.global.properties file > and our FAQ entry "How can I configure the bridge?" > >> 2. Does the PHP Java Bridge support setting command line arguments on the >> PHP executable (e.g. "-d foo=bar")? [/snip] > > Yes, please see PHP_EXEC_ARGS from the > php.java.bridge.global.properties file and our FAQ entry "How can I > configure the bridge?" I must have some how missed the FAQ entry on configuring the bridge. I'll double check that out. Thank you so much for pointing it out to me! >> 3. Does the PHP Java Bridge support setting script level arguments? Again, >> if it does not, is there any way to extend existing classes to add this >> functionality and if so what classes should I look at? > > What are script-level arguments? Do you mean JSR 223 bindings? Please > see the JSR 223 specification for details. What I mean by "script level arguments" (the term is probably incorrect) are those arguments that you pass in as parameters to the script being run. Sort of like the main()'s argc/argv arguments. For instance, the phing.php script takes a couple of arguments to determine what it should run (like Ant): -buildfile build.xml task. These are what I'm referring to as "script level" arguments. > (new ScriptEngineManager()).getEngineByName("php").eval("<?php exit(1+2);"); > > is just a glorified version of System.exec(...), as long as you don't > decorate the standard ScriptContext. So it isn't very useful for your > task. Thats very good to know. Thank you Jost for your prompt and very helpful reply! Off to go play in the code pit! Regards, Sean W. Quinn |
From: <php...@li...> - 2010-07-21 14:48:58
|
Hi, why don't you simply use an Ant exec task. The build.xml shipped with the JavaBridge source code uses this, too. > So my questions are these: > 1. Does the PHP Java Bridge support some means of identifying the location > that it should search for an PHP executable in, either by adding it to the > common paths in Util.Process or by just searching on the path given? Even if > this functionality isn't provided "out-of-the-box" so to speak, is there an > class that is easily extensible that I could leverage to make it work in > this manner (maybe a new ScriptEngine, Factory, Context?) You can use -Dphp.java.bridge.php_exec=/path/to/php-cgi.exe if php-cgi is not in the PATH. Please see php.java.bridge.global.properties file and our FAQ entry "How can I configure the bridge?" > 2. Does the PHP Java Bridge support setting command line arguments on the > PHP executable (e.g. "-d foo=bar")? If it does not, is there any way to > extend existing classes to add this functionality and if so what classes > should I look at? Yes, please see PHP_EXEC_ARGS from the php.java.bridge.global.properties file and our FAQ entry "How can I configure the bridge?" > 3. Does the PHP Java Bridge support setting script level arguments? Again, > if it does not, is there any way to extend existing classes to add this > functionality and if so what classes should I look at? What are script-level arguments? Do you mean JSR 223 bindings? Please see the JSR 223 specification for details. > I was going a bit cross-eyed tracking the code where it gets executed and by > whom. (new ScriptEngineManager()).getEngineByName("php").eval("<?php exit(1+2);"); is just a glorified version of System.exec(...), as long as you don't decorate the standard ScriptContext. So it isn't very useful for your task. > Also, as an aside, I stumbled upon the LauncherWindows classes... and I'm > not really sure what it is that they do. I mean, I can tell they are four > parts of a binary file definition, but what binary? I'm curious. It is the launcher.exe, encoded in 4 64k chunks (due to constraints of the JVM). Please see target name="LauncherWindows" in http://php-java-bridge.cvs.sourceforge.net/viewvc/php-java-bridge/php-java-bridge/build.xml?view=markup > (Note: I originally sent this before subscribing to the list and it got > stuck in a "requires moderator approval" queue, so I resent it. That's a "honeypot" to make spammers happy. Regards, Jost Boekemeier |
From: <php...@li...> - 2010-07-21 14:13:37
|
Hi, First off, if similar questions have been asked and answers provided previously on the mailing list I apologize for asking them again. I could not fine definite answers to some of these questions when thumbing through either examples, the source, or the mailing list archives. I'm building a tool, albeit somewhat as a science project and a convenience tool that integrates launching PHP processes from Ant. I actually am using it to launch Phing processes through Ant in Eclipse for my PHP development. I know that no matter what I do, performance will not be nearly as good as going straight to the PHP exe, but I'm still interested in pursuing this approach. Prior to looking at the PHP Java Bridge I have code that will launch PHP processes using Java's Runtime as an Ant task, however I was looking to see if: A) the PHP Java Bridge could be used so that I could clean up some of my code and re-use elements that have been developed to suit similar needs thus building on what is already out there. and B) to determine if the PHP Java Bridge (should it work, or at the very least its approach) is more efficient than what I was previously doing. I've run into a few snags though, so far as I can tell the PHP Java Bridge requires that the PHP executable be somewhere on the path as it is known by the OS through its environment variable(s) or on a path that the PJB has hard coded to look for it on (e.g. /usr/bin/php, or C:/Program Files/PHP). In addition I've found very little literature in the source code, examples, or on the mailing list that detail how a PHP process might be started with commandline arguments, and script arguments passed in. I have, however, been successful at launching a rather rudimentary example that effectively is "php-cgi.exe foo.php". So my questions are these: 1. Does the PHP Java Bridge support some means of identifying the location that it should search for an PHP executable in, either by adding it to the common paths in Util.Process or by just searching on the path given? Even if this functionality isn't provided "out-of-the-box" so to speak, is there an class that is easily extensible that I could leverage to make it work in this manner (maybe a new ScriptEngine, Factory, Context?) 2. Does the PHP Java Bridge support setting command line arguments on the PHP executable (e.g. "-d foo=bar")? If it does not, is there any way to extend existing classes to add this functionality and if so what classes should I look at? 3. Does the PHP Java Bridge support setting script level arguments? Again, if it does not, is there any way to extend existing classes to add this functionality and if so what classes should I look at? I was going a bit cross-eyed tracking the code where it gets executed and by whom. I didn't see any place where to set the path or arguments explicitly and I suspect I might want to tool around in the Context files, but have yet to get that far. Any help that someone would give would be really appreciated. Also, as an aside, I stumbled upon the LauncherWindows classes... and I'm not really sure what it is that they do. I mean, I can tell they are four parts of a binary file definition, but what binary? I'm curious. Thank you! (Note: I originally sent this before subscribing to the list and it got stuck in a "requires moderator approval" queue, so I resent it. Hopefully only one of the messages gets posted to the mailing list, if both do... I'm sorry!) Regards, Sean W. Quinn Email: sw...@gm... | Mobile: 978.413.9396 |
From: <php...@li...> - 2010-07-12 07:20:59
|
Hi Marc, I think you've lost it. I admit that the java class loading mechanism is hard to understand. But this definitely sounds like a class path problem. > I should think the Common class loader would be able to find > the class file for php.java.servlet.fastcgi.FastCGIServlet If the common class loader loads any classes referring to the servlet API, I'd expect such errors, yes. Please see our FAQ entry "Why do I get a NoClassDefFoundError?" at http://php-java-bridge.sourceforge.net/pjb/FAQ.html > /usr/share/tomcat6/lib Remove it. The entire tomcat installation. And remove all "Java" files from your system. Download the original tomcat from tomcat.apache.org (any version). Download Java from Oracle. Install them. Then please follow the installation instructions from http://php-java-bridge.sourceforge.net/pjb/tomcat6.php. Remember to *move* the libraries over to the tomcat lib dir. A *copy* operation from one class path to the other will cause the problems you've described. Please see our FAQ "Why do I get a NoClassDefFoundError?" at http://php-java-bridge.sourceforge.net/pjb/FAQ.html Regards, Jost Bökemeier |
From: <php...@li...> - 2010-07-11 23:10:05
|
On 7/8/2010 1:18 AM, php...@li... wrote: >> Jost - Thanks for your reply, but sorry to report that it resulted in >> exactly the same symptoms. So no joy! > If both tomcat intances show the same problem, the cause is external, > for example a classpath problem. A "NoClassDefFoundError" for example > caused b a library loaded from an external loader (e.g. the bootstrap > loader). > > Please check the cause why your tomcat isn't able to instanciate a > standard Java servlet. > > > Regards, > Jost Bökemeier Jost - I fear I am quite baffled by this problem, and don't fully understand your reply... My Tomcat6 server is having no problems running other servlets, and it is only this php-java-bridge servlet that I am having troubles with... I have tried a couple different things to see if I could get anywhere and so far no joy... I installed the 3 jar files - JavaBridge.jar, php-script.jar, php-servlet.jar in the Tomcat6 lib directory - /usr/share/tomcat6/lib on my server. I should think the Common class loader would be able to find the class file for php.java.servlet.fastcgi.FastCGIServlet in the php-servlet.jar file without any problems. I also tried to install these 3 jar files in my local webapp directory where I placed my test.php file - ROOT/WEB-INF/lib without success either. So one of the class loaders should have been able to find the php-servlet.jar file and loaded the FastCGIServlet class ok.. I applied the fixes suggested by Sravan and here is what my test.php file now looks like - <?php require_once("java/Java.inc"); echo java("java.lang.System")->getProperties(); ?> and I included this lines in the web.xml file in the conf directory - <listener> <listener-class>php.java.servlet.ContextLoaderListener</listener-class> </listener> <servlet> <servlet-name>PhpJavaServlet</servlet-name> <servlet-class>php.java.servlet.PhpJavaServlet</servlet-class> </servlet> <servlet> <servlet-name>PhpCGIServlet</servlet-name> <servlet-class>php.java.servlet.fastcgi.FastCGIServlet</servlet-class> <init-param> <param-name>prefer_system_php_exec</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> </servlet> <servlet-mapping> <servlet-name>PhpJavaServlet</servlet-name> <url-pattern>*.phpjavabridge</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>PhpCGIServlet</servlet-name> <url-pattern>*.php</url-pattern> </servlet-mapping> At this point I decided to try a different tactic and removed the aforementioned jar files and deployed just the JavaBridge.war file instead. That resulted in the following errors - INFO: Deploying web application archive JavaBridge.war Jul 11, 2010 4:03:29 PM org.apache.catalina.startup.ContextConfig init SEVERE: Exception fixing docBase: {0} java.io.FileNotFoundException: /usr/share/tomcat6/webapps/JavaBridge/META-INF/MANIFEST.MF (No such file or directory) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:179) at java.io.FileOutputStream.<init>(FileOutputStream.java:131) at org.apache.catalina.startup.ExpandWar.expand(ExpandWar.java:457) at org.apache.catalina.startup.ExpandWar.expand(ExpandWar.java:173) at org.apache.catalina.startup.ContextConfig.fixDocBase(ContextConfig.java:882) at org.apache.catalina.startup.ContextConfig.init(ContextConfig.java:1017) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:279) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.StandardContext.init(StandardContext.java:5398) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4177) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:902) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:740) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:500) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1258) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:722) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:583) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Jul 11 16:03:30 VMBridge ERROR: An exception occured: java.lang.IllegalArgumentException: Cannot access /WEB-INF/cgi within the current web directory. Explode your application .war file and try again. java.lang.IllegalArgumentException: Cannot access /WEB-INF/cgi within the current web directory. Explode your application .war file and try again. at php.java.servlet.CGIServlet.getRealPath(CGIServlet.java:998) at php.java.servlet.fastcgi.FastCGIServlet.checkCgiBinary(FastCGIServlet.java:179) at php.java.servlet.fastcgi.FastCGIServlet.init(FastCGIServlet.java:278) at php.java.servlet.PhpCGIServlet.init(PhpCGIServlet.java:82) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4149) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4458) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:902) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:740) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:500) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1258) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:722) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:583) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) So another dead end! Ideas? Marc |
From: <php...@li...> - 2010-07-11 12:06:12
|
> A PhpServletDecorator should provide concrete implementations of > getHttpServletRequest(), ..., to provide the values from the > closed-over environment. There's a ready-made decorator in PHP/Java Bridge 6.2.1-test1: http://php-java-bridge.cvs.sourceforge.net/viewvc/php-java-bridge/php-java-bridge/server/php/java/script/servlet/PhpCompiledHttpScriptContext.java?revision=1.1&view=markup It can be used as follows: private static final CompiledScript script = ((Compilable)(new ScriptEngineManager().getEngineByName("php-invocable"))).compile("<?php echo java_context()->get('hello'); function f($p){return (string)$p+1;};?>"); ScriptContext ctx = new php.java.script.servlet.PhpCompiledHttpScriptContext(script.getEngine().getContext(),this,application,request,response); script.eval(ctx); out.println(String.valueOf(((Invocable)script.getEngine()).invokeFunction("f", new Object[]{1}))+"<br>"); ((Closeable)script.getEngine()).close(); Please see examples http://php-java-bridge.cvs.sourceforge.net/viewvc/php-java-bridge/php-java-bridge/examples/php%2Bjsp/jsr223.jsp?view=markup&sortby=date and http://php-java-bridge.cvs.sourceforge.net/viewvc/php-java-bridge/php-java-bridge/examples/php%2Bjsp/jsp%2Bphp.jsp?view=markup&sortby=date Regards, Jost Bökemeier |
From: <php...@li...> - 2010-07-08 08:18:22
|
> Jost - Thanks for your reply, but sorry to report that it resulted in > exactly the same symptoms. So no joy! If both tomcat intances show the same problem, the cause is external, for example a classpath problem. A "NoClassDefFoundError" for example caused b a library loaded from an external loader (e.g. the bootstrap loader). Please check the cause why your tomcat isn't able to instanciate a standard Java servlet. Regards, Jost Bökemeier |
From: <php...@li...> - 2010-07-08 04:28:41
|
Sorry I did mean web.xml. There's one thing in particular that I had to fix. In the web.xml file, the website tells you to type in this line <init-param><param-name>php_include_java</param-name><param-value>On</param-value></init-param> The line should in fact be: <init-param><param-name>php_include_java</param-name><param-value>Off</param-value></init-param> As well at the head of each PHP file you must include require_once("java/Java.inc"); The java folder is in each webapp in Tomcat. If that doesn't help post your php code. I'm using Tomcat 6 and the only problem I encountered were fixed by the above changes. Sincerely, Sravan Suryadevara University of Illinois | Urbana-Champaign B.S Computer Science | Class of 2013 E-mail | sur...@il... Phone | (908) 432-5330 On Thu, Jul 8, 2010 at 7:50 AM, <php...@li... > wrote: > On 7/6/2010 8:48 PM, php...@li... wrote: > > Can u post ur code? You've also made the appropriate changes to > > conf/server.xml I assume? > > > > --Sravan > > > > > Sravan - Thanks for your reply, I am not sure what code it is that you > would like me to post? Could you be more explicit? > > I have not modified the server.xml file in any way, nor does the website > instructions tell me to do anything to it. The only file I have modified is > conf/web.xml and I included the listener, servlet, and servlet-mappings > configurations as described. Would you like me to post it? > > Marc... > > > > > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |
From: <php...@li...> - 2010-07-08 02:21:03
|
On 7/6/2010 8:48 PM, php...@li... wrote: > Can u post ur code? You've also made the appropriate changes to > conf/server.xml I assume? > > --Sravan > > Sravan - Thanks for your reply, I am not sure what code it is that you would like me to post? Could you be more explicit? I have not modified the server.xml file in any way, nor does the website instructions tell me to do anything to it. The only file I have modified is conf/web.xml and I included the listener, servlet, and servlet-mappings configurations as described. Would you like me to post it? Marc... |
From: <php...@li...> - 2010-07-08 02:01:26
|
On 7/6/2010 1:00 PM, php...@li... wrote: > Hi, > > >> Tomcat6 ver 6.0.20-24.6.2 noarch >> > Please download and install the original tomcat from apache.org. > Please see http://php-java-bridge.sourceforge.net/doc/installation.php > for details. > > > Regards, > Jost Bökemeier > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > Jost - Thanks for your reply, but sorry to report that it resulted in exactly the same symptoms. So no joy! I did a fresh download of Tomcat 6 and placed it in a separate directory, stopped my original version, started the new version, followed the instructions as previously described and got exactly the same servlet exception error... Marc... |