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
(1) |
2
(2) |
3
(1) |
4
(1) |
5
|
6
(2) |
7
(3) |
8
(2) |
9
|
10
|
11
|
12
|
13
|
14
(1) |
15
|
16
|
17
|
18
(2) |
19
(2) |
20
|
21
|
22
(1) |
23
|
24
(3) |
25
(3) |
26
(4) |
27
(1) |
28
|
29
(6) |
30
|
31
|
|
|
|
From: <php...@li...> - 2010-03-29 20:51:41
|
Hi, > <?php > > try { > $prepago = new java("prepago"); > } catch (JavaException $e) { > echo $e; > } > ?> which error message do you see when you run the above code? Does your class have a public constructor? If you want to access procedures of constants from your class, use the java function. If you want to access class features, use the constructor. Regards, Jost Bökemeier |
From: <php...@li...> - 2010-03-29 18:18:05
|
I saw the video and reconfigured my tomcat. But the problem continue. I put the jar file in the WEB-INF/lib folder inside the war file. This is the code that Im using: <?php // Elimina los mensajes de error / Warning ini_set('display_errors', 1); require_once("java/Java.inc"); define ("JAVA_DEBUG", true); try { //java_require("INPREPAGO_CLIENT.jar"); java_autoload("INPREPAGO_CLIENT.jar"); } catch (JavaException $e) { java_autoload("INPREPAGO_CLIENT.jar"); } $prepago = new java("prepago"); echo '<h1>HOLA</h1><br>'; ?> Its is published in : http://186.4.24.228:8080/JavaBridge/ is the last one PREPAGO > I copied the jar file in javabridge WEB-INF/lib folder. you need to copy it to your web application WEB-INF/lib directory (your JavaBridge.war zip file). If you copy it into some file-system directory, tomcat doesn't know that your web application has been updated. > The information that I received from the jar creator is that the > "prepago" is a class, but I don't know how I can use it. classes should go to the web application WEB-INF/classes directory. Please see this video for details: http://php-java-bridge.sourceforge.net/pjb/user-contributed/JavaEchoServer.g if Regards, Jost Bökemeier De: Berlington Barnett [mailto:bba...@gm...] Enviado el: lunes, 29 de marzo de 2010 9:56 Para: 'php...@li...' Asunto: RE: USING JAR Hi Jost. First, thank you for your answer. Let me tell you, that Im a PHP programmer, and then I dont understand very much the java concepts. Let me give you more information about my problem: · I copied the jar file in javabridge WEB-INF/lib folder. · I have another jar that I can use in the examples: exceltest.jar · The information that I received from the jar creator is that the prepago is a class, but I dont know how I can use it. If you need more information or the jar file, please tell me. Thank you again. J PD: Im not receiving the post answer in my email. Is it normal? De: Berlington Barnett [mailto:bba...@gm...] Enviado el: domingo, 28 de marzo de 2010 19:06 Para: 'php...@li...' Asunto: RE: USING JAR Hello. Recently I installed JAVABRIDGE without many problem. In this moment is 100% functionally. I receive a jar file but I cant read it, and its very important that I can access it. If you want that I send you the jar file, please write me and Ill send it you. This is a sample to use it? prepago.Inquire_Provider_Balance(); My PHP code is: <?php require_once("Java.inc"); define ("JAVA_DEBUG", true); java_autoload("INPREPAGO_CLIENT.jar"); $prepago = new java("prepago"); ?> The result is: Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: CreateInstance failed: new prepago. Thank you for any help that you can give me. J |
From: <php...@li...> - 2010-03-29 16:06:38
|
Hi, > I copied the jar file in javabridge WEB-INF/lib folder. you need to copy it to your web application WEB-INF/lib directory (your JavaBridge.war zip file). If you copy it into some file-system directory, tomcat doesn't know that your web application has been updated. > The information that I received from the jar creator is that the > "prepago" is a class, but I don't know how I can use it. classes should go to the web application WEB-INF/classes directory. Please see this video for details: http://php-java-bridge.sourceforge.net/pjb/user-contributed/JavaEchoServer.gif Regards, Jost Bökemeier On 3/29/10, php...@li... <php...@li...> wrote: > Hi Jost. > > > > First, thank you for your answer. > > > > Let me tell you, that I'm a PHP programmer, and then I don't understand > very much the java concepts. > > > > Let me give you more information about my problem: > > . I copied the jar file in javabridge WEB-INF/lib folder. > > . I have another jar that I can use in the examples: exceltest.jar > > . The information that I received from the jar creator is that the > "prepago" is a class, but I don't know how I can use it. > > > > If you need more information or the jar file, please tell me. > > > > Thank you again. J > > > > PD: I'm not receiving the post answer in my email. Is it normal? > > > > > > De: Berlington Barnett [mailto:bba...@gm...] > Enviado el: domingo, 28 de marzo de 2010 19:06 > Para: 'php...@li...' > Asunto: RE: USING JAR > > > > Hello. > > > > Recently I installed JAVABRIDGE without many problem. In this moment is 100% > functionally. > > > > I receive a jar file but I can't read it, and it's very important that I > can access it. > > > > If you want that I send you the jar file, please write me and I'll send it > you. > > > > This is a sample to use it? > > prepago.Inquire_Provider_Balance(); > > > > My PHP code is: > > <?php > > require_once("Java.inc"); > > define ("JAVA_DEBUG", true); > > java_autoload("INPREPAGO_CLIENT.jar"); > > $prepago = new java("prepago"); > > ?> > > > > The result is: > > Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: CreateInstance > failed: new prepago. > > > > Thank you for any help that you can give me. > > > > J > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > > |
From: <php...@li...> - 2010-03-29 15:56:27
|
Hi Jost. First, thank you for your answer. Let me tell you, that I'm a PHP programmer, and then I don't understand very much the java concepts. Let me give you more information about my problem: . I copied the jar file in javabridge WEB-INF/lib folder. . I have another jar that I can use in the examples: exceltest.jar . The information that I received from the jar creator is that the "prepago" is a class, but I don't know how I can use it. If you need more information or the jar file, please tell me. Thank you again. J PD: I'm not receiving the post answer in my email. Is it normal? De: Berlington Barnett [mailto:bba...@gm...] Enviado el: domingo, 28 de marzo de 2010 19:06 Para: 'php...@li...' Asunto: RE: USING JAR Hello. Recently I installed JAVABRIDGE without many problem. In this moment is 100% functionally. I receive a jar file but I can't read it, and it's very important that I can access it. If you want that I send you the jar file, please write me and I'll send it you. This is a sample to use it? prepago.Inquire_Provider_Balance(); My PHP code is: <?php require_once("Java.inc"); define ("JAVA_DEBUG", true); java_autoload("INPREPAGO_CLIENT.jar"); $prepago = new java("prepago"); ?> The result is: Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: CreateInstance failed: new prepago. Thank you for any help that you can give me. J |
From: <php...@li...> - 2010-03-29 15:29:27
|
Hi, not sure what you're asking for. > I receive a jar file but I can't read it, and it's very important that I > can access it. jar files are standard zip files. I don't know if it is possible to repair a broken zip file. > <?php > > require_once("Java.inc"); [...] > $prepago = new java("prepago"); > > ?> The example might work, provided that the jar file is in the WEB-INF/lib folder or in java.ext.dirs. Please see our install instructions at http://php-java-bridge.sourceforge.net/pjb/webapp.php and our FAQ http://php-java-bridge.sourceforge.net/pjb/FAQ.html section "Class loading questions". Regards, Jost Bökemeier |
From: <php...@li...> - 2010-03-29 01:06:32
|
Hello. Recently I installed JAVABRIDGE without many problem. In this moment is 100% functionally. I receive a jar file but I can't read it, and it's very important that I can access it. If you want that I send you the jar file, please write me and I'll send it you. This is a sample to use it? prepago.Inquire_Provider_Balance(); My PHP code is: <?php require_once("Java.inc"); define ("JAVA_DEBUG", true); java_autoload("INPREPAGO_CLIENT.jar"); $prepago = new java("prepago"); ?> The result is: Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: CreateInstance failed: new prepago. Thank you for any help that you can give me. J |
From: <php...@li...> - 2010-03-27 09:48:54
|
Hi Fabio, > We are trying to access a Java class (standalone app) inside a PHP page. > We followed the instructions on > http://php-java-bridge.sourceforge.net/pjb/standalone.php If you run PHP from a web server please read http://php-java-bridge.sourceforge.net/pjb/webapp.php instead. I will rename the "standalone" guide to "java-desktop-apps". The simple back end container built into the standalone JavaBridge.jar does work for web apps, but it isn't very efficient. > require_once("http://localhost:8085/JavaBridge/java/Java.inc"); If you have followed the guide, this should be port 8087. > But nothing worked. I am sorry, but I cannot reproduce this problem. Can you access the Java.inc URL from your web browser or "wget"? Can you please log into the host running the HTTP server and type: wget http://localhost:8085/JavaBridge/java/Java.inc This command should fetch the Java.inc file. If that worked, your HTTP server should be able to access the back end, unless it is running in its own "sandbox". > Is there any more configuration needed? Maybe some related to SSL on > PHP... Not directly, no. But it may be that your system administrator has locked the HTTP server, so that it cannot access resources on this computer. > We would like also to avoid the use of URL on the requice_once call. You can copy Java.inc to some directory and adjust the JAVA_HOSTS definition. For example require("http://host.com:8888/JavaBridge/java/Java.inc); is equivalent to define ("JAVA_HOSTS", "host.com:8888"); require("path/to/my/Java.inc"); Regards, Jost Bökemeier |
From: <php...@li...> - 2010-03-26 20:40:08
|
Hi everybody. We are trying to access a Java class (standalone app) inside a PHP page. This PHP page runs under a HTTPS secure section. We followed the instructions on http://php-java-bridge.sourceforge.net/pjb/standalone.php Also we set the properties allow_url_fopen and allow_url_include to "On" We tried: require_once("http://localhost:8085/JavaBridge/java/Java.inc"); require_once("https://localhost:8085/JavaBridge/java/Java.inc"); define("JAVA_HOSTS", "127.0.0.1:8085"); But nothing worked. Is there any more configuration needed? Maybe some related to SSL on PHP... Please some help on that. We would like also to avoid the use of URL on the requice_once call. Is that possible to refer the Java.inc inside the Jar file? Or there is another way? Thank you. ----- Fabio Batista Gomes IT Specialist - CMMS Tabware Team IBM Global Business Services CTI IBM - Hortolandia/SP - Brazil T/N 733-7374 Ext. Phone 55-19-2119-7374 |
From: <php...@li...> - 2010-03-26 18:20:27
|
Hello! "If it's simply deploying the application twice" Look here: http://php-java-bridge.sourceforge.net/pjb/user-contributed/JavaEchoServer.gif Peter |
From: <php...@li...> - 2010-03-26 17:04:17
|
Hi, > In my case we have many php applications on one server using different > versions of Jasper Reports Libraries. The example JavaBridge.war from the php-java-bridge_documentation.zip download contains the OSGI framework. It uses separate classloaders, similar to our deprecated java_require() feature, to allow loading different library versions at a time. But since it has the same issues, I cannot recomment it either. For example we ran into several class-loading issues while preparing the BIRT report example. > loading correct libraries. In this case can I have two JavaBridge > applications running in my Tomcat server so that the libraries are not > messed up? Yes. Tomcat separates all web applications using different class loaders. You may run into PermGenSpace OutOfMemoryErrors and some libraries should not be loaded this way; see http://tomcat.apache.org/tomcat-5.5-doc/RELEASE-NOTES.txt section "Web application reloading and static fields in shared libraries". But if you don't load too many libraries and if the library authors have payed attention [1], this will work. Regards, Jost Bökemeier [1] log4j contained such a bug: http://marc.info/?l=log4j-user&m=109578379927175&w=2 |
From: <php...@li...> - 2010-03-26 05:04:51
|
Hi Jost, Thanks a lot for your info on my question. I understand about the lack of module system in java. In my case we have many php applications on one server using different versions of Jasper Reports Libraries. So if I put all the versions of libraries in one WEB-INF/lib/ folder then I believe it would cause issues on loading correct libraries. In this case can I have two JavaBridge applications running in my Tomcat server so that the libraries are not messed up? If that is fine then could you please tell me how I can make two instance of the same application? If it's simply deploying the application twice then that's easy but if I need to change any settings to make it work I am not sure how can I do that. Please help. Thanks a lot. Best regards, Hameed On Thu, Mar 25, 2010 at 1:05 AM, < php...@li...> wrote: > Hi Hameed, > > > > I wanted to organize all my libraries properly instead of mixing in just > one > > folder. > > Java 7 may contain a module system. Until then please put all Java > libraries into *one* directory. > > Please see our FAQ entries "Why has java_require() been deprecated?" > and "Why do I get a NoClassDefFoundError?" for details. > > There were several Java module system (better: "package system") > proposals. The one I liked best was the system implemented by > rice.edu. An introduction is here: > http://www.cs.rice.edu/~javaplt/papers/sac2007.pdf > > BTW: Kent Dybvik has shown that it is possible to implement a module > system using pure syntax. Since PHP doesn't have a REPL (its top-level > environments cannot be changed by user-interaction), it makes sense to > implement such a system in place of the current PHP "namespaces" > implementation, especially since PHP namespaces doesn't allow a > re-export of (aliased) bindings: it isn't possible to build a > "compound-namespace" (see "published interfaces" vs. "public > interfaces"). > > > Regards, > Jost Bökemeier > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > -- Hameed Development Manager Pilot Simple Software Hong Kong ha...@pi... |
From: <php...@li...> - 2010-03-25 17:43:45
|
Very helpful. This looks like a cool project. Interesting that I also seem to think the best/esiest way to integrate Java with PHP is via a Java servlet accepting network requests from a PHP client.PJB has other options, but seems to favor this one. The XSLT example was useful, although I don't think I will use the standard Java API for that since it does not cater to XSLT2 according to http://www.saxonica.com/documentation/using-xsl/embedding.html Thanks for the assistance. On 26 March 2010 02:23, <php...@li...> wrote: > Hi, > > XML processing examples can be found in the examples folder of the > documentation download. > > > http://php-java-bridge.cvs.sourceforge.net/viewvc/*checkout*/php-java-bridge/php-java-bridge/examples/XML/html_to_text.php?revision=1.7 > > > http://php-java-bridge.cvs.sourceforge.net/viewvc/*checkout*/php-java-bridge/php-java-bridge/examples/XML/ellipse.php?revision=1.4 > > > > Should I be checking out PJB instead of the servlet/REST option? > > Please see http://php-java-bridge.sourceforge.net/pjb/how_it_works.php > and http://php-java-bridge.sourceforge.net/pjb/FAQ.html#performance > > > Regards, > Jost Bökemeier > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > -- http://TerenceKearns.com | ABN 58705023254 | ph 0412 235 575 |
From: <php...@li...> - 2010-03-25 16:23:13
|
Hi, XML processing examples can be found in the examples folder of the documentation download. http://php-java-bridge.cvs.sourceforge.net/viewvc/*checkout*/php-java-bridge/php-java-bridge/examples/XML/html_to_text.php?revision=1.7 http://php-java-bridge.cvs.sourceforge.net/viewvc/*checkout*/php-java-bridge/php-java-bridge/examples/XML/ellipse.php?revision=1.4 > Should I be checking out PJB instead of the servlet/REST option? Please see http://php-java-bridge.sourceforge.net/pjb/how_it_works.php and http://php-java-bridge.sourceforge.net/pjb/FAQ.html#performance Regards, Jost Bökemeier |
From: <php...@li...> - 2010-03-25 12:32:32
|
hi all, I am new to the list. Before getting too much into pjb, I want to find out whether I am barking up the right tree. I have developed an XML/XSLT framework for php at http://xao-php.sf.netwhich I use for all my apps. I don't really promote the project, but I share the code all the same. I would, however, like to use the best XSLT processor (Saxon) from within my PHP/XML apps. Saxon is either Java or .NET. I'm not gonna use .NET. The documentation over at php.net about Java integration is somewhat depressing. Anyway, I was thinking of just creating a simple servlet to expose Saxon via a REST API. This is hardly an "integration", but it would get the job done in a way which could be relatively reliable. Since XAO is designed to run on miscellaneous hosted PHP5 environments, it would be nice if I could have a more portable solution. Should I be checking out PJB instead of the servlet/REST option? or am I on the right track. Opinions would be appreciated. ps. The idea is for users of XAO to be able to do something like $obj = new XAO_AppDoc("MyRootElName"); /* begin boring stuff */ $obj->SetXsltProcessor("Saxon"); $obj->objTransformer->SetServletUrl("http://localhost:8080/Saxon"); $obj->ndBuildXslPi("MyXslt2Template.xsl"); /* end boring stuff */ $obj->BuildSomeXmlContent(); $obj->Transform(); // with XSLT processor and stylesheet $obj->Send(); // transformed output to the requesting user-agent. of course, this is not how you would code it in real-life. Normally you would extend AppDoc and do all the boring setup stuff in the new sub-class's constructor. |
From: <php...@li...> - 2010-03-24 18:01:11
|
> On 19/03/2010 11:03, php...@li... wrote: >>> ... contains sensitive info >> >> Okay. I will add a new JAVA_HOST syntax for PHP/Java Bridge version 6.1.1: Version 6.1.1 is now available: http://downloads.sourceforge.net/project/php-java-bridge/Binary%20package/php-java-bridge_6.1.1/exploded/Java.inc >From the NEWS file: Version 6.1.1 * The bridge now supports all available PHP stream transports. Example: <?php require_once("https://secure-host.com:8443/JavaBridge/java/Java.inc"); echo java_context()->getHttpServletRequest()->getScheme(); echo ", "; echo java_server_name(); ?> The above is equivalent to: <?php define("JAVA_HOSTS", "ssl://secure-host.com:8443"); define("JAVA_SERVLET", "/JavaBridge/servlet.phpjavabridge"); require_once("java/Java.inc"); echo java_context()->getHttpServletRequest()->getScheme(); echo ", "; echo java_server_name(); ?> => https, ssl://my-secure-host.com:8443 Please see the PHP documentation stream_get_transports() for details. |
From: <php...@li...> - 2010-03-24 17:05:50
|
Hi Hameed, > I wanted to organize all my libraries properly instead of mixing in just one > folder. Java 7 may contain a module system. Until then please put all Java libraries into *one* directory. Please see our FAQ entries "Why has java_require() been deprecated?" and "Why do I get a NoClassDefFoundError?" for details. There were several Java module system (better: "package system") proposals. The one I liked best was the system implemented by rice.edu. An introduction is here: http://www.cs.rice.edu/~javaplt/papers/sac2007.pdf BTW: Kent Dybvik has shown that it is possible to implement a module system using pure syntax. Since PHP doesn't have a REPL (its top-level environments cannot be changed by user-interaction), it makes sense to implement such a system in place of the current PHP "namespaces" implementation, especially since PHP namespaces doesn't allow a re-export of (aliased) bindings: it isn't possible to build a "compound-namespace" (see "published interfaces" vs. "public interfaces"). Regards, Jost Bökemeier |
From: <php...@li...> - 2010-03-24 07:02:39
|
Hi there, I am quite new to Java and Tomcat webserver. I am using Tomcat 6.x. I use Jasper reports with PHP. After I have deployed the JavaBridge (6.x) I wanted to load all my jasper and scriptlet libraries to a subfolder in WEB-INF/lib folder for ex: WEB-INF/lib/jasper3.0.0/ But the libraries were never loaded by the application and I have got many class not found errors. Once I have moved all the classes to WEB-INF/lib/ folder the errors are gone. I wanted to organize all my libraries properly instead of mixing in just one folder. In earlier versions I can use java_require but it seems not possible now with the version 6.x & > Please help me know how to achieve this. Thanks, Hameed Development Manager Pilot Simple Software Hong Kong ha...@pi... |
From: <php...@li...> - 2010-03-22 10:00:02
|
On 19/03/2010 11:03, php...@li... wrote: >> ... contains sensitive info > > Okay. I will add a new JAVA_HOST syntax for PHP/Java Bridge version 6.1.1: > > scheme://host:port > > Example which connects to the back end > https://timon:8443/JavaBridge/servlet.phpjavabridge: > > <?php > define ("JAVA_HOSTS", "ssl://timon:8443"); > define ("JAVA_SERVLET", "/JavaBridge/servlet.phpjavabridge"); > require_once("java/Java.inc"); > > ... > ?> > > > As a workaround please edit Java.inc, search for fsockopen and change > the fsockopen call to: > > fsockopen("ssl://..."); > > > Regards, > Jost Bökemeier Hi, Excellent, worked like a charm. Thanks for your help. Regards Ian -- |
From: <php...@li...> - 2010-03-19 11:04:06
|
> ... contains sensitive info Okay. I will add a new JAVA_HOST syntax for PHP/Java Bridge version 6.1.1: scheme://host:port Example which connects to the back end https://timon:8443/JavaBridge/servlet.phpjavabridge: <?php define ("JAVA_HOSTS", "ssl://timon:8443"); define ("JAVA_SERVLET", "/JavaBridge/servlet.phpjavabridge"); require_once("java/Java.inc"); ... ?> As a workaround please edit Java.inc, search for fsockopen and change the fsockopen call to: fsockopen("ssl://..."); Regards, Jost Bökemeier On 3/19/10, php...@li... <php...@li...> wrote: > On 18/03/2010 16:54, php...@li... wrote: >> Hi Ian, >> >> if I understand you correctly, you want to tunnel the PHP/Java Bridge >> protocol through a secure channel: >> >> inet client <--HTTP--> apache/php <--PJB over SSL--> tomcat/java >> >> This feature can be implemented, of course. But I don't understand why >> this could be useful. Isn't it possible to use two physical network >> interfaces? One for the HTTP communication and another one for the >> PJB communication? >> >> >> Regards, >> Jost Bökemeier > > Hi, > > The tomcat server will used to access a Java SDK which implements a > particular authorisation scheme for a bank (I can't go into too much > detail). > > This set of functions will be accessed by multiple PHP servers all > running customer facing websites. The PJB <--> Tomcat communication > will contains sensitive info (cc numbers etc.) and will actually run > over a separative back end network. But even so I would like it > encrypted just in case. It will also keep the PCI auditors happy. > > Regards > > Ian > -- > > > > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |
From: <php...@li...> - 2010-03-19 09:26:30
|
On 18/03/2010 16:54, php...@li... wrote: > Hi Ian, > > if I understand you correctly, you want to tunnel the PHP/Java Bridge > protocol through a secure channel: > > inet client <--HTTP--> apache/php <--PJB over SSL--> tomcat/java > > This feature can be implemented, of course. But I don't understand why > this could be useful. Isn't it possible to use two physical network > interfaces? One for the HTTP communication and another one for the > PJB communication? > > > Regards, > Jost Bökemeier Hi, The tomcat server will used to access a Java SDK which implements a particular authorisation scheme for a bank (I can't go into too much detail). This set of functions will be accessed by multiple PHP servers all running customer facing websites. The PJB <--> Tomcat communication will contains sensitive info (cc numbers etc.) and will actually run over a separative back end network. But even so I would like it encrypted just in case. It will also keep the PCI auditors happy. Regards Ian -- |
From: <php...@li...> - 2010-03-18 16:54:19
|
Hi Ian, if I understand you correctly, you want to tunnel the PHP/Java Bridge protocol through a secure channel: inet client <--HTTP--> apache/php <--PJB over SSL--> tomcat/java This feature can be implemented, of course. But I don't understand why this could be useful. Isn't it possible to use two physical network interfaces? One for the HTTP communication and another one for the PJB communication? Regards, Jost Bökemeier |
From: <php...@li...> - 2010-03-18 15:28:25
|
Hi, Appologies if this has already been covered but my searches have been fruitless. I wish to use Java from within PHP. I have a Centos 5.4 server (lets call it tomcat_host) set up with tomcat5 (http:8080, https:8443), PHP Java Bridge 6.1 and php 5.3.2 all working great (this is a OpenVZ container running on a x64_64 node). I have another server (php_host) with which I wish to access tomcat_host. (This is Centos 4.5, php 5.2.12 running on VMserver) I have a php page on php_host which works great: <?php require_once("http://tomcat_host:8080/JavaBridge/java/Java.inc"); $props = java("java.lang.System")->getProperties(); $array = java_values($props); foreach($array as $k=>$v) { echo "$k=>$v"; echo "<br>\n"; } ?> When I change the require line to: require_once("https://tomcat_host:8443/JavaBridge/java/Java.inc"); (IE https to port 8443) It fails with: Warning: fsockopen() [function.fsockopen]: unable to connect to 127.0.0.1:8080 (Connection refused) in https://tomcat_host:8443/JavaBridge/java/Java.inc on line 990 Fatal error: Uncaught Could not connect to the JEE server 127.0.0.1:8080. Please start it. Error message: Connection refused (111) thrown in https://tomcat_host:8443/JavaBridge/java/Java.inc on line 985 Is there anything I can do to get this working over SSL on the php_host server? I have tried setting define ("JAVA_HOSTS", "tomcat_host:8443"); but got a different set of errors: Notice: Undefined offset: 1 in https://tomcat_host:8443/JavaBridge/java/Java.inc on line 1056 Notice: Undefined index: content_length in https://tomcat_host:8443/JavaBridge/java/Java.inc on line 1024 Warning: fread() [function.fread]: Length parameter must be greater than 0 in https://tomcat_host:8443/JavaBridge/java/Java.inc on line 1025 Fatal error: in https://tomcat_host:8443/JavaBridge/java/Java.inc on line 866 (Which seems to imply its not speaking SSL) I know I could install stunnel to encrypt the communication but would rather not unless I really have to. Installing tomcat on the php_host is not an option as when this is all working it will be deployed across dozens of similiar servers, all very slimmed down and potentially running as OpenVZ containers as well. Thanks for any assistance. Regards Ian -- |
From: <php...@li...> - 2010-03-14 06:35:57
|
Hi again, the PHP windows installer has several issues. Please do not use it. 1. It incorrectly sets a PHPRC environment variable which points to an non-existing directory on a non-english windows version 2. It is not possible to install a fastcgi SAPI and a Apache/IIS SAPI at the same time. The installer tries to remove one or the other. 3. Installing everything installs garbage extensions which crash PHP. 4. The PHP binaries compiled with VC9 have several run-time issues. On Sat, 2010-03-06 at 16:32 +0100, php...@li... wrote: > The tomcat was already running before I installed PHP using the > installer package for windows... I have tested the PHP 5.3.2 installer on a Windows XP system. I have selected "other cgi", selected the install directory c:\Programme\PHP and rebooted the computer. You're right, the PHP installer sets a PHPRC environment variable. But on my Windows XP copy it points to an empty directory c:\Program Files \PHP. The install dir is c:\Programme\PHP. Since PHPRC points to an empty directory, PHP ignores it and uses the defaults. To work around this issue I have added a blacklist to the PHP/Java Bridge version 6.1.0. From the NEWS file: Version 6.1.0 * Some Windows PHP install procedures destroy a local PHP executable by setting a "PHPRC" environment variable. This environment variable may have been useful in the past, but it disturbs modern PHP executables. Environment entries passed to PHP are now filtered through a blacklist, see PHP_ENV_BLACKLIST in global.properties in JavaBridge.jar. The list can be changed as usual. Example global.properties file: PHP_ENV_BLACKLIST = KEY1 KEY2 KEYN Example command line: java -Dphp.java.bridge.php_env_blacklist="key1 key2 keyN" -jar JavaBridge.jar ... Regards, Jost Bökemeier |
From: <php...@li...> - 2010-03-08 17:02:27
|
The problem is that jetty doesn't flush the response buffer. In pseudo code: protected void doPut (HttpServletRequest req, HttpServletResponse res) { res.getOutputStream().write(1); res.setContentLength(1); try {res.flushBuffer(); } catch (Exception t) {t.printStackTrace(); } try {resOut.close(); } catch (Exception t) {t.printStackTrace(t);} // response must be flushed right here, not at the end of the service() routine Thread.wait(15000); } > Connection:keep-alive It's a HTTP/1.0 request. If jetty sets keep-alive for a HTTP/1.0 request, we've found another bug, I think. BTW: Jetty contains another serious bug: requestDispatcher.include(req, res); If req is an instance of HttpServletRequestWrapper, jetty tries to find the original request in the thread context. This fails if the current thread is not a servlet thread. You can verify this bug by clicking on the jsr223.jsp example of the JavaBridge.war; jetty crashes with a NullPointerException. Regards, Jost Bökemeier On 3/8/10, php...@li... <php...@li...> wrote: > I filled a bug with Eclipse and I was asked: > > "Greg Wilkins 2010-03-05 02:27:12 EST > Can you give a bit more information about the request that is not being > flushed. > > Does the response have Connection:keep-alive set and a Content-Length?" > > Do you know the answer? I'll update the bug report. > > Thanks, > > McKinley > > On Fri, Feb 19, 2010 at 5:52 AM, > <php...@li...> wrote: >> This is indeed a Jetty 7 bug. Jetty doesn't flush the output buffer >> "res.flushBuffer()" for HTTP/1.0 connections, so the code runs into a >> wait timeout. I won't change the bridge code to work around this bug. >> But Jetty 7.0 supports HTTP/1.1 chunked connections: >> >> Please add >> >> <context-param> >> <param-name>promiscuous</param-name> >> <param-value>true</param-value> >> </context-param> >> >> after the </listener> declration of your WEB-INF/web.xml to work around >> this Jetty 7 bug. >> >> >> Regards, >> Jost Bökemeier >> > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |
From: <php...@li...> - 2010-03-08 16:15:39
|
I filled a bug with Eclipse and I was asked: "Greg Wilkins 2010-03-05 02:27:12 EST Can you give a bit more information about the request that is not being flushed. Does the response have Connection:keep-alive set and a Content-Length?" Do you know the answer? I'll update the bug report. Thanks, McKinley On Fri, Feb 19, 2010 at 5:52 AM, <php...@li...> wrote: > This is indeed a Jetty 7 bug. Jetty doesn't flush the output buffer > "res.flushBuffer()" for HTTP/1.0 connections, so the code runs into a > wait timeout. I won't change the bridge code to work around this bug. > But Jetty 7.0 supports HTTP/1.1 chunked connections: > > Please add > > <context-param> > <param-name>promiscuous</param-name> > <param-value>true</param-value> > </context-param> > > after the </listener> declration of your WEB-INF/web.xml to work around > this Jetty 7 bug. > > > Regards, > Jost Bökemeier > |