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-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... |
From: <php...@li...> - 2010-07-07 16:44:18
|
Hi, this has been fixed in version 6.2.1. The EngineFactory is gone. You can now run a standard script engine in a servlet environment by decorating the ScriptContext. Please see http://php-java-bridge.sourceforge.net/pjb/server/documentation/API/php/java/script/PhpSecureScriptContext.html for an example. A PhpServletDecorator should provide concrete implementations of getHttpServletRequest(), ..., to provide the values from the closed-over environment. Regards, Jost Bökemeier |
From: <php...@li...> - 2010-07-07 03:48:12
|
Can u post ur code? You've also made the appropriate changes to conf/server.xml I assume? --Sravan On 7/7/10, php...@li... <php...@li...> wrote: > Hi - > (Sorry if this gets posted multiple times, but I have had a horrid time > trying to subscribe/post to this mail list and apparently cannot contact > the list administrator either, (no replies to my attempts to do so) so I > have tried to unsubscribe, resubscribe and repost...) > > I am following the instructions found at - > > http://php-java-bridge.sourceforge.net/doc/tomcat6.php > > to integrate PHP with my Tomcat6 server and have ran into a snag which I > don't quite understand. I got through the first two parts ok - > > Download and install Java, Tomcat and PHP > Install a PHP web application into Tomcat > > and ran the test examples fine. But when I tried to follow the > instructions for the third section to make PHP available to all web apps - > > PHP support for all existing Tomcat web applications > > and tried to execute the small test example I am getting the following > stack walkback error reported via an HTTP Status 500 web page - > > type Exception report > message > description The server encountered an internal error () that prevented > it from fulfilling this request. > exception > > javax.servlet.ServletException: Error instantiating servlet class > php.java.servlet.fastcgi.FastCGIServlet > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) > > > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) > > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849) > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) > > > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454) > java.lang.Thread.run(Thread.java:619) > > root cause > > java.lang.InstantiationException > > sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(InstantiationExceptionConstructorAccessorImpl.java:30) > > java.lang.reflect.Constructor.newInstance(Constructor.java:513) > java.lang.Class.newInstance0(Class.java:355) > java.lang.Class.newInstance(Class.java:308) > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) > > > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) > > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849) > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) > > > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454) > java.lang.Thread.run(Thread.java:619) > > > I have placed the jar files in the Tomcat lib directory and they appear > to be fine with same ownership and permissions as the rest of the jar > files. Some additional info - > > Running under SuSE 11.2 x86_64 > Tomcat6 ver 6.0.20-24.6.2 noarch > Java-1_6_0-sun x86_64 > PHP5 ver 5.3.2-1.1.1 x86_84 > > Appreciate any offers of help and thanks in advance.. 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 > -- Sent from my mobile device 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-07-06 20:01:06
|
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 |
From: <php...@li...> - 2010-07-06 19:39:25
|
Hi - (Sorry if this gets posted multiple times, but I have had a horrid time trying to subscribe/post to this mail list and apparently cannot contact the list administrator either, (no replies to my attempts to do so) so I have tried to unsubscribe, resubscribe and repost...) I am following the instructions found at - http://php-java-bridge.sourceforge.net/doc/tomcat6.php to integrate PHP with my Tomcat6 server and have ran into a snag which I don't quite understand. I got through the first two parts ok - Download and install Java, Tomcat and PHP Install a PHP web application into Tomcat and ran the test examples fine. But when I tried to follow the instructions for the third section to make PHP available to all web apps - PHP support for all existing Tomcat web applications and tried to execute the small test example I am getting the following stack walkback error reported via an HTTP Status 500 web page - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Error instantiating servlet class php.java.servlet.fastcgi.FastCGIServlet org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454) java.lang.Thread.run(Thread.java:619) root cause java.lang.InstantiationException sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(InstantiationExceptionConstructorAccessorImpl.java:30) java.lang.reflect.Constructor.newInstance(Constructor.java:513) java.lang.Class.newInstance0(Class.java:355) java.lang.Class.newInstance(Class.java:308) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454) java.lang.Thread.run(Thread.java:619) I have placed the jar files in the Tomcat lib directory and they appear to be fine with same ownership and permissions as the rest of the jar files. Some additional info - Running under SuSE 11.2 x86_64 Tomcat6 ver 6.0.20-24.6.2 noarch Java-1_6_0-sun x86_64 PHP5 ver 5.3.2-1.1.1 x86_84 Appreciate any offers of help and thanks in advance.. Marc.. - |
From: <php...@li...> - 2010-07-05 07:41:08
|
Hi, please see http://php-java-bridge.sourceforge.net/pjb/desktop-apps.php Regards, Jost Bökemeier |
From: <php...@li...> - 2010-07-05 00:43:08
|
I'm trying to use the bridge to in order to use htmlunit from php code. I want to use it as standalone not as a webapp. I have the JavaBridge.jar file in a directory and I have all of the htmlunit jars and support jars in the same directory. I can run the server using: java -Djava.awt.headless="true" -verbose -jar JavaBridge.jar SERVLET_LOCAL:8080 and can then access it via localhost:8080 from Firefox. So it seems to be working. However when I try to run my test program: ------------------------- <?php require_once("http://localhost:8080/JavaBridge/java/Java.inc"); $javaSystem = Java("java.lang.System"); $i1 = new Java("java.math.BigInteger", "1"); $i2 = new Java("java.math.BigInteger", "2"); $i3 = $i1->add($i2); echo $i3->toString() . "\n"; $wc = new Java('com.gargoylesoftware.htmlunit.WebClient'); ?> -------------------------- The java system instance is created OK and the math works and writes "3" out - but the new of 'com.gargoylesoftware.htmlunit.WebClient' throws a class not found exception. So I think maybe the server isn't seeing the htmlunit-2.7.jar file. I have added the code to the above program that shows the classpath property and it shows only "JavaBridge.jar" - and I can't figure out how to set it correctly and what to set it to. I've spent many hours trying to figure this out and really appreciate any help you can give. Rick |
From: <php...@li...> - 2010-07-04 11:28:29
|
> The next version, PHP/Java Bridge 6.2.1, will contain the following > changes: > > * Revert changes to PhpJavaServlet and Java.inc. Done. > * JSR 223 script engine improvements: FastCGI instead of CGI and > getInvocablePhpScriptEngine() w/o the URI parameter for local script > invocation and implementation of the Compilable interface. Done. The EngineFactory and the http script engines are gone. The only remaining script engines are the PhpScriptEngine, InvocablePhpScriptEngine and InteractivePhpScriptEngine. There were two examples using the http script engines. The jsr223.jsp has been replaced by a simple jsp:forward, the other example has been removed. Use the InvocablePhpScriptEngine and register it with the servlet shutdown hook if you need this functionality in a servlet. I have added JUnit test cases for the PhpScriptEngine. Before we make any release we should convert the old Makefile scripts from tests.php5 and tests.jsr223 to JUnit test cases. Known bugs so far: 1. The PHP FastCGI implementation doesn't pass the exit() status, see http://svn.php.net/viewvc/php/php-src/trunk/sapi/cgi/fastcgi.c?revision=296679&view=markup&sortby=date lines 1083-1087. 2. JSR223 compile() has no way to specify the compilation output file or directory.(!) The test cases use ((java.io.FileFilter)scriptEngine).accept(File); to pass it to the ScriptEngine. Regards, Jost Bökemeier |
From: <php...@li...> - 2010-06-30 11:45:43
|
Hi Ely, > would like to know if integration with Java (to use java libraries and > packages) is possible at this scenario yes, of course. Please see http://php-java-bridge.sourceforge.net/pjb/installation.php Regards, Jost Bökemeier |
From: <php...@li...> - 2010-06-29 12:58:48
|
Please see our FAQ entry "Do I need a Java Application Server or Servlet Engine?" at http://php-java-bridge.sourceforge.net/pjb/FAQ.html |