You can subscribe to this list here.
2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(6) |
Oct
(6) |
Nov
(8) |
Dec
(2) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
(19) |
Feb
(15) |
Mar
(10) |
Apr
(8) |
May
(7) |
Jun
(9) |
Jul
(13) |
Aug
(31) |
Sep
(111) |
Oct
(52) |
Nov
(72) |
Dec
(42) |
2006 |
Jan
(21) |
Feb
(32) |
Mar
(33) |
Apr
(24) |
May
(15) |
Jun
(40) |
Jul
(32) |
Aug
(19) |
Sep
(38) |
Oct
(37) |
Nov
(63) |
Dec
(37) |
2007 |
Jan
(18) |
Feb
(39) |
Mar
(69) |
Apr
(49) |
May
(71) |
Jun
(59) |
Jul
(71) |
Aug
(85) |
Sep
(46) |
Oct
(14) |
Nov
(25) |
Dec
(56) |
2008 |
Jan
(24) |
Feb
(77) |
Mar
(104) |
Apr
(44) |
May
(41) |
Jun
(11) |
Jul
(31) |
Aug
(59) |
Sep
(44) |
Oct
(86) |
Nov
(66) |
Dec
(93) |
2009 |
Jan
(88) |
Feb
(41) |
Mar
(49) |
Apr
(135) |
May
(22) |
Jun
(31) |
Jul
(60) |
Aug
(71) |
Sep
(76) |
Oct
(18) |
Nov
(52) |
Dec
(20) |
2010 |
Jan
(8) |
Feb
(50) |
Mar
(35) |
Apr
(48) |
May
(46) |
Jun
(84) |
Jul
(38) |
Aug
(61) |
Sep
(51) |
Oct
(31) |
Nov
(17) |
Dec
(18) |
2011 |
Jan
(51) |
Feb
(14) |
Mar
(17) |
Apr
(23) |
May
(15) |
Jun
(11) |
Jul
(5) |
Aug
(5) |
Sep
(15) |
Oct
(8) |
Nov
(5) |
Dec
(25) |
2012 |
Jan
(2) |
Feb
(4) |
Mar
(6) |
Apr
(9) |
May
(27) |
Jun
(32) |
Jul
(36) |
Aug
(10) |
Sep
(16) |
Oct
(3) |
Nov
(13) |
Dec
(7) |
2013 |
Jan
(1) |
Feb
(4) |
Mar
|
Apr
(1) |
May
|
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(4) |
Oct
(2) |
Nov
(1) |
Dec
|
2014 |
Jan
|
Feb
|
Mar
(2) |
Apr
(1) |
May
(2) |
Jun
(9) |
Jul
(5) |
Aug
(2) |
Sep
(4) |
Oct
|
Nov
|
Dec
|
2015 |
Jan
(3) |
Feb
(2) |
Mar
(4) |
Apr
(3) |
May
(1) |
Jun
(2) |
Jul
|
Aug
(2) |
Sep
(5) |
Oct
(1) |
Nov
|
Dec
|
2016 |
Jan
|
Feb
(5) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(5) |
Sep
(3) |
Oct
|
Nov
|
Dec
|
2017 |
Jan
(6) |
Feb
|
Mar
|
Apr
(10) |
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(1) |
Dec
|
2018 |
Jan
(2) |
Feb
(5) |
Mar
|
Apr
|
May
(1) |
Jun
(3) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2020 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
2021 |
Jan
(5) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2023 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <php...@li...> - 2007-02-10 13:36:54
|
Hi, those who want to use taglibs from PHP might find the following link useful: http://www.alexander-merz.com/27.html The author uses the abandoned PHP4 tomcat binding, but the examples should work with the PHP/Java Bridge, too. Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2007-02-10 12:43:43
|
> This leads me to believe that apache doesn't have > rights to access certain > paths on my box. It runs in a sand box (uid/gid: apache/apache). Furthermore, if you use RedHat Linux (or any compatible Linux version, Fedora, Centos, ...), the Security Enhanced Linux rules shipped with the JavaBridge RPM deny all socket, file, ... access except files tagged with tmp_t. Regards, Jost Boekemeier ___________________________________________________________ Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de |
From: <php...@li...> - 2007-02-10 12:31:59
|
Hi, please see the section "AS/Servlet with PHP CGI" from the README: "... With the command:" cd $HOME export X_JAVABRIDGE_OVERRIDE_HOSTS="/" export PHP_FCGI_CHILDREN="20" export PHP_FCGI_MAX_REQUESTS="5000" /usr/bin/php-cgi -b 127.0.0.1:9667 Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2007-02-10 12:28:16
|
> any chance to see (in near future) php/java bridge > compatible with php > 5.2 ? What makes you think that the PHP/Java Bridge doesn't work with PHP 5.2 or 6.0? The current implementation will work with all future versions of PHP. ___________________________________________________________ Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de |
From: <php...@li...> - 2007-02-10 12:25:33
|
> how can i change the default ports 9267 and 9268 for > the PHP-Java-Bridge? You can start the back end from a service script, for example with the command: javaw -jar JavaBridge.jar INET_LOCAL:9467 3 bridge.log and set java.socketname = 9467 Another possibility is to use a cmd /c wrapper, see the FAQ section "I want to start the back end automatically as a sub-component of my HTTP Server. How do I pass my own java options and how do I change the security context and the UID of the Java process? " Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2007-02-10 12:20:08
|
Please try version 4.0.1 + the php4 java.so from the legacy download. If this doesn't work, please open a problem report, please use http://sourceforge.net/tracker/?func=add&group_id=117793&atid=679233 Regards, Jost Boekemeier ___________________________________________________________ Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de |
From: <php...@li...> - 2007-02-10 12:16:12
|
Hi, when your application server or servlet engine returns null for cfg.getRealPath(""), you cannot run PHP within your app server or servlet engine. This is either a bug in the bea application server or this server simply doesn't allow file access resources from the web context. Can you please open a ticket (please use http://sourceforge.net/tracker/?func=add&group_id=117793&atid=679233). Until then please use Apache or IIS as a front end or use another application server. For example Macromedia JRun, IBM WebSphere, Apache Geronimo, Sun Java AS ("Glassfish"), Tomcat, Caucho Resin. Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2007-02-10 12:01:17
|
> Is it possible to mix jsp and php on the same page? No. Why do you need it? Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2007-02-09 17:13:45
|
Anybody? -----Original Message----- Sent: Thursday, February 08, 2007 8:45 AM To: php...@li... Subject: [Php-java-bridge-users] Mixing jsp and php in the same file? Is it possible to mix jsp and php on the same page? <snip...> |
From: <php...@li...> - 2007-02-08 17:11:15
|
Is it possible to mix jsp and php on the same page? I've tried a jsp file named testphp.jsp with: <?php Phpinfo(); ?> But the php directive never seems to be recognized, and if I reverse the example running jsp tags in php files then the jsp outputs as text We have jsp taglibs (and other legacy things) that we'd like to keep in place while running a mix of php and jsp in the same file Any suggestions/examples appreciated Mike |
From: <php...@li...> - 2007-02-08 09:32:13
|
Hello List! I am using java-php bridge to run some old php-scripts in my tomcat and it is working fine --- so thanks for all working on this project. I have also got an fast-cgi server that I would not like to run in my apache. As the php-bridge uses fast-cgi to communicate with php the question is : is it possible to use my (or say any) fastcgi-server with the bridge ? A hint for the configuration of the web.xml would be enough or otherwise an url to some documentation. Thanks, Torsten. |
From: <php...@li...> - 2007-02-08 05:53:33
|
Hi, how can i change the default ports 9267 and 9268 for the PHP-Java-Bridge? I am running the bridge using an Apache only install (no Tomcat) on Windows XP. When i set "java.socketname" or "java.hosts" then the bridge is not running anymore... Thanks for any advise. -- Best regards, Jochen Peters |
From: <php...@li...> - 2007-02-06 09:32:05
|
Hello, any chance to see (in near future) php/java bridge compatible with php 5.2 ? There are couple of important bug fixes in php 5.2 and I would like to update my applications to new release. Regards, ML |
From: <php...@li...> - 2007-02-05 18:57:21
|
Hi I have been trying to get php-java-bridge working. I am using ubuntu/php4 so had to go back to javabridge version 3.0.8. Anyway the front end is working fine. Now I am trying to get the j2ee component working, and I have simply dropped the war file into the tomcat5/webapps dir. At the moment I seem to be having problems with the .php files e.g sessionSharing.jsp works but sessionSharing.php doesn't, instead I get the error message Servlet PhpCGIServlet is not available. Is this an error specific to sessionSharing.php? Or indicative that something else is a problem? Other php scripts such as test.php produce the same error. Searched for PhpCGIServlet.java on my computer but couldn't find it. Regards, Mike PS thanks for developing php/javabridge |
From: <php...@li...> - 2007-02-02 13:46:24
|
Figured something out today. Seems my app will run in a console (via #!/bin/env php) with no hiccups. Now if i take the exact same php code and try run it through apache, then i get the problem mentioned (check first post to this thread). This leads me to believe that apache doesn't have rights to access certain paths on my box. Could someone point me in the right direction, i think i have to setup apache differently to access my java installed certs and other security files... |
From: <php...@li...> - 2007-02-02 06:00:10
|
I'm trying to get 9.2 weblogic to work with the latest PHP Java Bridge on windows. I found the instructions for CGI on http://forums.bea.com/bea/thread.jspa?threadID=3D300000120&messageID=3D40= 000 3285, but I need this for a production system and I want to set it up without CGI. =20 Of course it would help if I were a weblogic expert (which I am not). I deployed it and set it up to the best of my ability and this is what I get as the response: java.lang.NullPointerException at java.net.URLEncoder.encode(Ljava.lang.String;Ljava.lang.String;)Ljava.la ng.String;(Unknown Source) at php.java.bridge.http.ContextFactory.addNext(ContextFactory.java:118) at php.java.bridge.http.ContextFactory.(ContextFactory.java:135) at php.java.bridge.http.SimpleContextFactory.(SimpleContextFactory.java:51) at php.java.servlet.ServletContextFactory.(ServletContextFactory.java:47) at php.java.servlet.ServletContextFactory.addNew(ServletContextFactory.java :76) at php.java.servlet.PhpCGIServlet$CGIEnvironment.setCGIEnvironment(PhpCGISe rvlet.java:289) at php.java.servlet.CGIServlet$CGIEnvironment.init(CGIServlet.java:559) at php.java.servlet.PhpCGIServlet.createCGIEnvironment(PhpCGIServlet.java:4 34) at php.java.servlet.CGIServlet.doGet(CGIServlet.java:448) at php.java.servlet.PhpCGIServlet.doGet(PhpCGIServlet.java:539) at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(St ubSecurityHelper.java:225) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityH elper.java:127) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:2 83) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:1 75) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.r un(WebAppServletContext.java:3214) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSu bject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121 ) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServ letContext.java:1983) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletCont ext.java:1890) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java :1344) at weblogic.work.ServerWorkManagerImpl$WorkAdapterImpl.run(ServerWorkManage rImpl.java:518) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209) at weblogic.work.ExecuteThread.run(ExecuteThread.java:181) Hopefully, someone can help me out. I'll keep at it until I get it, and suggestions are appreciated. =20 Thanks, Curtis Fisher Analyst/Software Developer, Application Solutions=20 Meridian IQ |
From: <php...@li...> - 2007-02-01 09:23:08
|
Quick litte rundown of my configuration (/etc/php.d/java.ini): java.java_home = /opt/jdk1.5.0_11/ java.java = /opt/jdk1.5.0_11/bin/java java.lib.path = /opt/jdk1.5.0_11/jre/lib/* *I use a java app provided by iveri.co.za which installs a cert here -> /opt/jdk1.5.0_11/jre/lib/security/cacerts and the app here -> /opt/jdk1.5.0_11/jre/lib/iveri/ my <?php //code $enterprise = new Java('com.iveri.enterprise.Enterprise'); $enterprise->setCertificateID("{blah}"); $enterprise->setGateway("blah"); $enterprise->prepare("Transaction", "Debit", "blah", "Test"); $enterprise->setAttribute("MerchantReference", 1); $enterprise->setTag("Amount", "123"); // R1.23 $enterprise->setTag("CCNumber","4242424242424242"); $enterprise->setTag("ExpiryDate", "122009"); $resultStatus = $enterprise->execute(); ?> * *if i run the code in java it works perfectly, ie my execute method will run without a hiccup, but if i run the execute method in php-java-bridge then i get the following error* *: *Fatal error*: Uncaught [o(Exception):"java.lang.Exception : Invoke failed: [o(Enterprise)]->execute. Cause: com.iveri.enterprise.ResultException: [255] CertificateID '{blah}' not configured. Cannot recover key Responsible VM: 1.5.0_11@http://java.sun.com/" at: #-14 com.iveri.enterprise.c.a(Unknown Source) #-13 com.iveri.enterprise.c.c(Unknown Source) #-12 com.iveri.enterprise.c.b(Unknown Source) #0 /var/www/html/debit.php(27): Java->__call('execute', Array) #1 /var/www/html/debit.php(27): Java->execute() #2 {main}] thrown in */var/www/html/debit.php* on line *27** * I suspect the stand alone VM cant find the correct paths to grab cert data... Any pointers or help, much appreciated. Regards, Hess Gee |
From: <php...@li...> - 2007-02-01 08:51:54
|
Quick litte rundown of my configuration (/etc/php.d/java.ini): java.java_home = /opt/jdk1.5.0_11/ java.java = /opt/jdk1.5.0_11/bin/java java.lib.path = /opt/jdk1.5.0_11/jre/lib/* *I use a java app provided by iveri.co.za which installs a cert here -> /opt/jdk1.5.0_11/jre/lib/security/cacerts and the app here -> /opt/jdk1.5.0_11/jre/lib/iveri/ my <?php //code $enterprise = new Java('com.iveri.enterprise.Enterprise'); $enterprise->setCertificateID("{blah}"); $enterprise->setGateway("blah"); $enterprise->prepare("Transaction", "Debit", "blah", "Test"); $enterprise->setAttribute("MerchantReference", 1); $enterprise->setTag("Amount", "123"); // R1.23 $enterprise->setTag("CCNumber","4242424242424242"); $enterprise->setTag("ExpiryDate", "122009"); $resultStatus = $enterprise->execute(); ?> * *if i run the code in java it works perfectly, ie my execute method will run without a hiccup, but if i run the execute method in php-java-bridge then i get the following error**: *Fatal error*: Uncaught [o(Exception):"java.lang.Exception: Invoke failed: [o(Enterprise)]->execute. Cause: com.iveri.enterprise.ResultException: [255] CertificateID '{blah}' not configured. Cannot recover key Responsible VM: 1.5.0_11@http://java.sun.com/" at: #-14 com.iveri.enterprise.c.a(Unknown Source) #-13 com.iveri.enterprise.c.c(Unknown Source) #-12 com.iveri.enterprise.c.b(Unknown Source) #0 /var/www/html/debit.php(27): Java->__call('execute', Array) #1 /var/www/html/debit.php(27): Java->execute() #2 {main}] thrown in */var/www/html/debit.php* on line *27** * I suspect the stand alone VM cant find the correct paths to grab cert data... Any pointers or help, much appreciated. Regards, Hess Gee |
From: <php...@li...> - 2007-01-30 19:57:23
|
Andre, I just downloaded the source as well and was able to expand the .gz but failed upon expanding the .tar. I am getting: "Error 2 - No such file or directory." Looks like the source files may be corrupted. Jon Koerber php/Java bridge Site and project admin jon...@so... On Jan 30, 2007, at 9:08 AM, php-java-bridge- us...@li... wrote: > Hello, > I tried 3 different mirrors (Texas, UK and Brasil) and the source > tar.gz issued an error when I tried to expand it. > Did anyone successfully expand it? > Regards. > Andre Felipe Machado > > > > ---------------------------------------------------------------------- > --- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to > share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php? > page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
From: <php...@li...> - 2007-01-15 18:22:49
|
Thanks a lot for the answer - now, I am able to seamlessly use the php = application inside my tomcat (jboss actually) app. I will post this solution to sitemesh user foruns - there is a discussion = there about using sitemesh to decorate php applications within the tomcat = container. Thanks again, Tedi -----Mensagem original----- De: php-java-bridge-users-bounces=40lists.sourceforge.net =5Bmailto:php-java-bridge-users-bounces=40lists.sourceforge.net=5DEm nome de php-java-bridge-users=40lists.sourceforge.net Enviada em: quinta-feira, 11 de janeiro de 2007 08:58 Para: php-java-bridge-users=40lists.sourceforge.net Assunto: Re: =5BPhp-java-bridge-users=5D Call to undefined functionmysql_pconnect() > After setting up the bridge, I got the 'Call to > undefined function mysql_pconnect()', which I guess > is due to this sql function not being complied to > the default bridge installation (fedora 5). Old versions (<=3D 3.2.2) of the bridge contain a compiled PHP binary in the JavaBridge.war file. In version 4.x, which uses the same code base as 3.x we've removed these obsolete components. Just remove the WEB-INF/cgi/php-cgi-i386-linux executable or simply upgrade to 4.0.1, which uses the system PHP binary by default. > Is there anyway I could make the modules available > to my previous php instalation available to > php-bridge? You could compile a mysql.so and copy it to the WEB-INF/cgi directory. Or simply use the PHP binary from fedora 5. =20 =09 =09=09 ___________________________________________________________=20 Der fr=C3=BChe Vogel f=C3=A4ngt den Wurm. Hier gelangen Sie zum neuen = Yahoo=21 Mail: http://mail.yahoo.de ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3DDE= VDEV _______________________________________________ php-java-bridge-users mailing list php-java-bridge-users=40lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users - - - - - Politica de Privacidade: Esta mensagem pode conter informacao confidencial = e/ou privilegiada. Se voce nao for o destinatario ou a pessoa autorizada a = receber esta mensagem, nao pode usar, copiar ou divulgar as informacoes = nela contidas ou tomar qualquer acao baseada nessas informacoes. Se voce = recebeu esta mensagem por engano, por favor avise imediatamente o = remetente, respondendo o e-mail e em seguida apague-o. Agradecemos sua = cooperacao. Privacy Policy: This message may contain confidential and/or privileged = information. If you are not the addressee or authorized to receive this = for the addressee, you must not use, copy, disclose or take any action = based on this message or any information herein. If you have received this = message in error, please advise the sender immediately by reply e-mail and = delete this message. Thank you for your cooperation.= |
From: <php...@li...> - 2007-01-11 11:58:10
|
> After setting up the bridge, I got the 'Call to > undefined function mysql_pconnect()', which I guess > is due to this sql function not being complied to > the default bridge installation (fedora 5). Old versions (<= 3.2.2) of the bridge contain a compiled PHP binary in the JavaBridge.war file. In version 4.x, which uses the same code base as 3.x we've removed these obsolete components. Just remove the WEB-INF/cgi/php-cgi-i386-linux executable or simply upgrade to 4.0.1, which uses the system PHP binary by default. > Is there anyway I could make the modules available > to my previous php instalation available to > php-bridge? You could compile a mysql.so and copy it to the WEB-INF/cgi directory. Or simply use the PHP binary from fedora 5. ___________________________________________________________ Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de |
From: <php...@li...> - 2007-01-10 20:36:35
|
Hi, I am trying to use php-java-bridge to allow my users to access a php = application we have setup in our server through another application = developed in Java deployed on Jboss. The java application would behave = like a proxy to this php application.=20 After setting up the bridge, I got the 'Call to undefined function = mysql_pconnect()', which I guess is due to this sql function not being = complied to the default bridge installation (fedora 5). Is there anyway I could make the modules available to my previous php = instalation available to php-bridge? Thanks, =20 Tedi - - - - - Politica de Privacidade: Esta mensagem pode conter informacao confidencial = e/ou privilegiada. Se voce nao for o destinatario ou a pessoa autorizada a = receber esta mensagem, nao pode usar, copiar ou divulgar as informacoes = nela contidas ou tomar qualquer acao baseada nessas informacoes. Se voce = recebeu esta mensagem por engano, por favor avise imediatamente o = remetente, respondendo o e-mail e em seguida apague-o. Agradecemos sua = cooperacao. Privacy Policy: This message may contain confidential and/or privileged = information. If you are not the addressee or authorized to receive this = for the addressee, you must not use, copy, disclose or take any action = based on this message or any information herein. If you have received this = message in error, please advise the sender immediately by reply e-mail and = delete this message. Thank you for your cooperation.= |
From: <php...@li...> - 2007-01-05 16:46:59
|
Hi James, > What if I call > http://localhost/testJava.php > > and testJava.php file includes the (pure Java) > PHP/Java bridge and makes a > call on a new Java object. the bridge uses a named-pipe connection to call the JVM. The bridge calls the J2EE/Servlet back end only if a persistent connection doesn't exist or when the script contains java_session() call and the PHP instance doesn't have a session object. > course.) If the JavaBridge > servlet is not running then the Java call(s) will > fail. Well, yes. The pure PHP implementation currently doesn't use persistent connections. But that's an implementation detail. > So in this instance, Tomcat *does* see the request Yes, you're right. But the request/response objects created for the initial PUT request will vanish when the request is done. Furthermore they don't contain any usable values for you. If you really want to use PHP within Apache, you must fake a request/response pair, for example by using a Request/ResponseWrapper (see the J2EE servlet documentation). > The issue though, is some of the Java classes I'm > using want to write out > (D)HTML using objects that exist in the Servlet > context - obviously that > won't work if being called from Apache -> PHP -> > Tomcat Java/Bridge. It shouldn't be too difficult to write a ServletContextWrapper either. > I suppose my other option would be to run the PHP > file from Tomcat instead > of Apache... that may not be so bad, but it feels > like then I'm just a step > away from using pure Servlets + JSP and I could drop > PHP entirely. :) I don't think so. PHP, as an interpreted language, has many advantages over JSP. PHP doesn't need a development tool (a compiler) installed at run-time, it emmits clear error messages instead of obscure messages from the compiler ("compilation error in file bst_foo$__jsp.java ..."). Regards, Jost Boekemeier __________________________________________________ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com |
From: <php...@li...> - 2007-01-04 22:59:21
|
A couple more questions, then... On 1/4/07, php...@li... < php...@li...> wrote: > > Hi James, > > > I had thought since the JavaBridge *was* running > > under Tomcat that I had > > access to everything a Servlet would as well. > > Only if you access it through the servlet. Just direct > your browser to port 8080 or set up mod_jk to forward > everything to Tomcat. Okay, that makes sense: pages called directly from my AS will of course be running in a Servlet context. > - but now I'm less certain I understand the exact > > relationship between PHP, > > a Java call, and Tomcat. > > Well it's quite simple. If you call > > http://localhost:8080/JavaBridge/sessionSharing.jsp > > tomcat creates a servlet from the JSP file and i > nvokes it. For PHP requests this is similar: > > http://localhost:8080/JavaBridge/sessionSharing.php > > invokes a servlet which creates the HTML pages and > then delegates to PHP to fill in the content. > > If you call > > http://localhost/sessionSharing.php > > then Apache (or IIS) renders and returns the HTML > page. > Tomcat doesn't even see this request. What if I call http://localhost/testJava.php and testJava.php file includes the (pure Java) PHP/Java bridge and makes a call on a new Java object. This behavior relies on the JavaBridge Servlet running in the AS (in my case: Tomcat). (This is setup in my php.ini, of course.) If the JavaBridge servlet is not running then the Java call(s) will fail. So in this instance, Tomcat *does* see the request, or at least the Java portions of it, but the java_context() isn't established(?). > I'm trying to use a set of Java classes that were > > designed to run as a > > Servlet. (I want to use PHP to write the front-end > > pages and Java to do the > > "heavy lifting" in the back.) > > > > My final call to one of the class methods is > > $exportControl->processHttpdRequest($req, $resp, > > $servlet, null) > > This shouldn't be a problem. Just replace the JSP > logic with PHP and you're done. Which I've done a lot of, and it seems to be working well. The issue though, is some of the Java classes I'm using want to write out (D)HTML using objects that exist in the Servlet context - obviously that won't work if being called from Apache -> PHP -> Tomcat Java/Bridge. I suppose my other option would be to run the PHP file from Tomcat instead of Apache... that may not be so bad, but it feels like then I'm just a step away from using pure Servlets + JSP and I could drop PHP entirely. :) Regards, > Jost Boekemeier > > > <https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users> |
From: <php...@li...> - 2007-01-04 22:17:45
|
Hi, > Please use the compiled java.so for RHEL3 instead. > The > last release was 2.0.8: Version 2.0.8 is quite old. A current php_java.dll or java.so can be found in the php-java-bridge-legacy.zip file: http://sourceforge.net/project/shownotes.php?release_id=475534&group_id=117793 Regards, Jost Boekemeier __________________________________________________ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com |