You can subscribe to this list here.
| 2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(6) |
Oct
(6) |
Nov
(8) |
Dec
(2) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2005 |
Jan
(19) |
Feb
(15) |
Mar
(10) |
Apr
(8) |
May
(7) |
Jun
(9) |
Jul
(13) |
Aug
(31) |
Sep
(111) |
Oct
(52) |
Nov
(72) |
Dec
(42) |
| 2006 |
Jan
(21) |
Feb
(32) |
Mar
(33) |
Apr
(24) |
May
(15) |
Jun
(40) |
Jul
(32) |
Aug
(19) |
Sep
(38) |
Oct
(37) |
Nov
(63) |
Dec
(37) |
| 2007 |
Jan
(18) |
Feb
(39) |
Mar
(69) |
Apr
(49) |
May
(71) |
Jun
(59) |
Jul
(71) |
Aug
(85) |
Sep
(46) |
Oct
(14) |
Nov
(25) |
Dec
(56) |
| 2008 |
Jan
(24) |
Feb
(77) |
Mar
(104) |
Apr
(44) |
May
(41) |
Jun
(11) |
Jul
(31) |
Aug
(59) |
Sep
(44) |
Oct
(86) |
Nov
(66) |
Dec
(93) |
| 2009 |
Jan
(88) |
Feb
(41) |
Mar
(49) |
Apr
(135) |
May
(22) |
Jun
(31) |
Jul
(60) |
Aug
(71) |
Sep
(76) |
Oct
(18) |
Nov
(52) |
Dec
(20) |
| 2010 |
Jan
(8) |
Feb
(50) |
Mar
(35) |
Apr
(48) |
May
(46) |
Jun
(84) |
Jul
(38) |
Aug
(61) |
Sep
(51) |
Oct
(31) |
Nov
(17) |
Dec
(18) |
| 2011 |
Jan
(51) |
Feb
(14) |
Mar
(17) |
Apr
(23) |
May
(15) |
Jun
(11) |
Jul
(5) |
Aug
(5) |
Sep
(15) |
Oct
(8) |
Nov
(5) |
Dec
(25) |
| 2012 |
Jan
(2) |
Feb
(4) |
Mar
(6) |
Apr
(9) |
May
(27) |
Jun
(32) |
Jul
(36) |
Aug
(10) |
Sep
(16) |
Oct
(3) |
Nov
(13) |
Dec
(7) |
| 2013 |
Jan
(1) |
Feb
(4) |
Mar
|
Apr
(1) |
May
|
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(4) |
Oct
(2) |
Nov
(1) |
Dec
|
| 2014 |
Jan
|
Feb
|
Mar
(2) |
Apr
(1) |
May
(2) |
Jun
(9) |
Jul
(5) |
Aug
(2) |
Sep
(4) |
Oct
|
Nov
|
Dec
|
| 2015 |
Jan
(3) |
Feb
(2) |
Mar
(4) |
Apr
(3) |
May
(1) |
Jun
(2) |
Jul
|
Aug
(2) |
Sep
(5) |
Oct
(1) |
Nov
|
Dec
|
| 2016 |
Jan
|
Feb
(5) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(5) |
Sep
(3) |
Oct
|
Nov
|
Dec
|
| 2017 |
Jan
(6) |
Feb
|
Mar
|
Apr
(10) |
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(1) |
Dec
|
| 2018 |
Jan
(2) |
Feb
(5) |
Mar
|
Apr
|
May
(1) |
Jun
(3) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2019 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
| 2020 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
| 2021 |
Jan
(5) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2023 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
|
|
|
|
1
|
2
(1) |
3
(3) |
|
4
|
5
|
6
(6) |
7
(6) |
8
|
9
(1) |
10
(3) |
|
11
(1) |
12
(1) |
13
(4) |
14
(4) |
15
|
16
|
17
(8) |
|
18
(1) |
19
(4) |
20
(13) |
21
(6) |
22
(8) |
23
(7) |
24
(3) |
|
25
(6) |
26
(2) |
27
(1) |
28
(4) |
29
(7) |
30
(11) |
|
|
From: <tec...@us...> - 2005-09-17 16:04:57
|
||*()*|| [\..konnichi wa, ogenki desu ka, Jost../] Monday, September 12, 2005, 6:29:49 PM, you wrote: >> 1. BUG. There is no PHP4 version of library in JB> The PHP/Java Bridge does not work on threaded HTTP JB> servers, e.g. IIS, unless ZTS is switched on. JB> ZTS is experimental in all versions below PHP 5 and I JB> know of at least 3 incompatible ABI's since 4.3.2. JB> So the question is: which version of PHP4 on windows JB> should we support? Isn't it possible to compile your JB> own php4 binary as described in the README? 4.4.0 - at least you can always ask new users to get latest version of PHP to avoid bugs introduced earlier. I've tried to compile PHP myself from CVS, but failed. And also I don't use any web-server - I want to try mix of Java and PHP in standalone application. >> 2. About 80% of windows distributive size is >> php5ts.dll >> Is it possible to make alternative -light version? JB> Yes, certainly. But is 3MB really too large these JB> days? Yes, sometimes. It will be nice if this application could detect presence of PHP and link it dynamically regardless of PHP5/PHP4 differences and without additional path setup. >> 3. Patch to make test run even if unzipped not in >> c:/php5 JB> Isn't it possible to adjust the php.ini accordingly? JB> One has to do this during the installation process JB> anyway. But the widgetTest.bat could be changed, of JB> course. I like things like unzip and run. Like any lazy user I hate doing things that could be automated or not intuitively setup by default. Especially test-cases. =) >> 4. JavaBridge.jar doesn't output any messages about >> it was started successfully JB> If you start it at log level 3 or above, as described JB> in the README, it will output to stdout or to a log JB> file. README is very long and contains a lot of information. Read 25k just to find command line options (especially if there are not any) is a waste of time. I thought it should be good for an application to react on help/unknown cmd parameters to be user-friendly. >> complete. Is there any ways to control running >> server? JB> "apachectl start" starts the apache server and the JB> bridge and "apachectl stop" stops both, please see the JB> README for details. Since version 2.0.8 this works on JB> windows, too. JB> However, the recommended way to run the backend is to JB> start it via the php-java-bridge.service script (on JB> Unix) or via tomcat (on windows). The bridge is not running under Tomcat or Apache - it is supposed to be used for standalone application in my case. And yes - it is windows. >> 6. It would be good to have a ToC in readme. JB> Yes. =) >> Q1. Is it possible to extend Java class with PHP? >> I.e. make PHP class, inherited from one of Java? JB> The java_closure() call currently accepts only JB> interfaces, not classes. It would be nice if the Sun's JB> dynamic proxy would accept a class, but it doesn't. If JB> we want this, we must write our own proxy compiler. I don't think it is easy, esp. for me. =) Probably It should be easier to create a proxy Java object, which will call invokable PHP functions where it needed. The problem is that I still unsure if I've got the whole picture of this bridge and how to plug it into Java application correctly. WBR.techtonik -- (B)uilding, (A)ntenna, (S)pan and (E)arth * terminal velocity - 54m/s, 305m * |
|
From: Michael E. <els...@gm...> - 2005-09-17 15:56:04
|
I'm an idiot :) Indeed, I simply forgot that I had PHP5 active on my Windows
testing machine.
Thanks, Jost! - Sorry I bothered you.
Tank
> -----Original Message-----
> From: Jost Boekemeier [mailto:jos...@ya...]
> Sent: Saturday, September 17, 2005 5:14 PM
> To: Michael Elsdoerfer; php...@li...
> Subject: Ant: [Php-java-bridge-users] Catch exceptions in PHP4
>
> Hi,
>
> > Fatal error: Uncaught
> > [o(Exception):"java.lang.Exception:
>
> In PHP4 the exception would be a warning which could
> be suppressed with @
>
> Example:
>
> $null = @new java("java.lang.String", null);
> $ex = java_last_exception_get();
> echo "val: $null, ex: $ex\n";
>
> The above code would display "val: , Object" in PHP4.
>
>
> > So, is there anyway to handle those cases gracefully
> > (except for upgrading
> > to PHP 5)?
>
> The above exception message ("Uncaught...") makes me
> believe that you already use PHP5 or above.
>
>
> Regards,
> Jost Boekemeier
>
>
>
>
>
> ___________________________________________________________
> Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier
> anmelden: http://mail.yahoo.de
|
|
From: Jost B. <jos...@ya...> - 2005-09-17 15:34:21
|
Hi Peter, [please excuse the delay] > Still I think I haven't noticed this before: > -----------snipp---------------- > configure: WARNING: YOUR GCC INSTALLATION IS BROKEN. > It tries to link > with the same library for -m32 and -m64 builds. Well, your GCC installation uses two different static libraries for m32/64 but only one dynamic library. Depending on the processor architecture this may or may not be a problem. I have changed the message in 2.0.8RC5. > know if it would work with gcc-4.0. gcc4 should be able to compile the source. (other distributions such as RedHat use gcc4 for a long time now, so I don't think that this is an issue). Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
|
From: Jost B. <jos...@ya...> - 2005-09-17 15:24:42
|
Hi William, [please excuse the delay] to the best of my knowledge this problem should be fixed in version 2.0.8RC5. Please see the updated INSTALL document for details. Furthermore it should be possible to use the binary RPM: * Extract the "java.so" and "JavaBridge.jar" from the binary RPM with the command: rpm2cpio php-java-bridge*.rpm | cpio -iduv * Install PHP 4.3.2 or above and copy the "java.so" and "JavaBridge.jar" into its extension folder. * run the test.php with: php test.php Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
|
From: Jost B. <jos...@ya...> - 2005-09-17 15:14:36
|
Hi,
> Fatal error: Uncaught
> [o(Exception):"java.lang.Exception:
In PHP4 the exception would be a warning which could
be suppressed with @
Example:
$null = @new java("java.lang.String", null);
$ex = java_last_exception_get();
echo "val: $null, ex: $ex\n";
The above code would display "val: , Object" in PHP4.
> So, is there anyway to handle those cases gracefully
> (except for upgrading
> to PHP 5)?
The above exception message ("Uncaught...") makes me
believe that you already use PHP5 or above.
Regards,
Jost Boekemeier
___________________________________________________________
Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de
|
|
From: Michael E. <els...@gm...> - 2005-09-17 11:50:15
|
First of all, thanks for his cool extension. I got it running within 5
minutes, and it works like a charm.
Except for one issue: I'm using it to run Lucene with PHP 4. Now, in certain
cases Lucene throws an exception, for example when the query parser can't
handle an invalid query. Then I get a message like
Fatal error: Uncaught [o(Exception):"java.lang.Exception: Invoke failed:
[o(QueryParser):"org.apache.lucene.queryParser.QueryParser@1f8c6df"]->parse(
(java.lang.String)o(String):"AND "). Cause:
org.apache.lucene.queryParser.ParseException: Encountered "AND" at line 1,
column 0. Was expecting one of: ... "+" ... "-" ... "(" ... ... ... ...
... "[" ... "{" ... ... "] thrown in {/path/name} on line 37
I know there is java_last_exception_get(), but the fatal error occurs on
line 37, which is exactly where I call the (java) query parser, and then
script execution is terminated.
So, is there anyway to handle those cases gracefully (except for upgrading
to PHP 5)?
Thank you,
Michael
|
|
From: Jost B. <jos...@ya...> - 2005-09-14 17:57:34
|
Hi Bharath, you're right. The CGIServlet cannot handle post requests. The code is there, but it seems that nobody has tested this until now. Please excuse the inconvenience, I'll fix this asap. (The CGIServlet was copied from tomcat, which was probably a mistake...) Please see PR#1291191 (https://sourceforge.net/tracker/index.php?func=detail&aid=1291191&group_id=117793&atid=679233) Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
|
From: Jost B. <jos...@ya...> - 2005-09-14 17:48:36
|
Hi Bharath, first of all thank you very much for this bug report. Assuming that phpinfo shows that X_JAVABRIDGE_OVERRIDE_HOSTS 127.0.0.1:9980 X_JAVABRIDGE_CONTEXT 1 the null pointer means that the php_java.dll was not able to send back the X_JAVABRIDGE_CONTEXT and that the servlet has received the invalid context 0. I could not reproduce this problem, but I have created a ticket (#1291175) for this NP exception. Please see https://sourceforge.net/tracker/index.php?func=detail&aid=1291175&group_id=117793&atid=679233 Please attach the values for X_JAVABRIDGE_OVERRIDE_HOSTS and X_JAVABRIDGE_CONTEXT there and the method (POST or GET) there. If possible please also attach the php_java.dll and the php-cgi.exe you use. Please also check why the bridge uses port# 9568 and not 9567. Is it possible that you use an old version of the php_java.dll with a recent version of the JavaBridge.war backend? It might be that your php_java.dll still sends a 32 bit value for the context# and the backend always reads the 2 high bytes, which are 0. Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
|
From: Bharath T. <bh...@mv...> - 2005-09-14 05:29:42
|
Forgot to attach the file. Sorry Regards Bharath -----Original Message----- From: Bharath Thirunavukkarasu=20 Sent: Wednesday, September 14, 2005 1:21 AM To: 'php...@li...'; 'Jost Boekemeier' Subject: problem with Post I have the java bridge setup as a webapp on tomcat. When I post a request to a php bridge in the webapp, for some reason the post variables seem to be lost. Get variables are reaching correctly. To reproduce the problem drop the attached php file to the JavaBridge web app on tomcat. A session value is hard coded into the script. A GET value is also hardcoded. Enter text into the text box to simulate POST vars. The ideal output should be similiar to the one below:=20 POST Vars=20 Array ( [username] =3D> whateveryoutypedin )=20 GET Vars=20 Array ( [temp] =3D> 1 )=20 Session Vars=20 Array ( [tempvar] =3D> temp value ) I have also added phpinfo() to see what we get. Don't see a _POST var Any idea? Regards Bharath |
|
From: Bharath T. <bh...@mv...> - 2005-09-14 05:21:08
|
I have the java bridge setup as a webapp on tomcat. When I post a request to a php bridge in the webapp, for some reason the post variables seem to be lost. Get variables are reaching correctly. To reproduce the problem drop the attached php file to the JavaBridge web app on tomcat. A session value is hard coded into the script. A GET value is also hardcoded. Enter text into the text box to simulate POST vars. The ideal output should be similiar to the one below:=20 POST Vars=20 Array ( [username] =3D> whateveryoutypedin )=20 GET Vars=20 Array ( [temp] =3D> 1 )=20 Session Vars=20 Array ( [tempvar] =3D> temp value ) I have also added phpinfo() to see what we get. Don't see a _POST var Any idea? Regards Bharath |
|
From: Bharath T. <bh...@mv...> - 2005-09-13 20:15:23
|
More info JavaBridge DEBUG: @584294 first request (session is new). JavaBridge DEBUG: @584294 Client changed its request log level to: 4 JavaBridge DEBUG: @584294 --> <C v=3D"java.lang.System" p=3D"I" i=3D"10203232" > JavaBridge DEBUG: @584294 --> </C> JavaBridge DEBUG: @584294 <-- <O v=3D"1" i=3D"10203232"/> JavaBridge DEBUG: @7b3b24 first request (session is new). JavaBridge DEBUG: @7b3b24 Client changed its request log level to: 4 JavaBridge DEBUG: @7b3b24 --> <I v=3D"1" m=3D"getProperties" p=3D"I" i=3D"10238128" > java.lang.NullPointerException at php.java.bridge.GlobalRef.get(GlobalRef.java:32) at php.java.bridge.Request.begin(Request.java:104) at php.java.bridge.Parser.CALL_BEGIN(Parser.java:98) at php.java.bridge.Parser.parse(Parser.java:159) at php.java.bridge.Request.handleRequests(Request.java:197) at php.java.servlet.PhpJavaServlet.handleHttpConnection(PhpJavaServlet.java :284) at php.java.servlet.PhpJavaServlet.doPut(PhpJavaServlet.java:356) at javax.servlet.http.HttpServlet.service(HttpServlet.java:712) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo ntext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5 20) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardCon textValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo ntext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5 20) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :137) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo ntext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :118) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo ntext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5 20) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo ntext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5 20) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:79 9) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC onnection(Http11Protocol.java:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:57 7) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool .java:683) at java.lang.Thread.run(Unknown Source) -----Original Message----- From: Bharath Thirunavukkarasu=20 Sent: Tuesday, September 13, 2005 4:13 PM To: 'php...@li...' Subject: RE: php-java-bridge-users digest, Vol 1 #90 - 1 msg When I try to browse to the test.php in the bridge deployed on tomcat I get the following error on and off on windows JavaBridge DEBUG: @f6e9d first request (session is new). JavaBridge DEBUG: @f6e9d Client changed its request log level to: 4 JavaBridge DEBUG: @f6e9d --> <C v=3D"java.lang.System" p=3D"I" = i=3D"10203232" > JavaBridge DEBUG: @f6e9d --> </C> JavaBridge DEBUG: @f6e9d <-- <O v=3D"1" i=3D"10203232"/> JavaBridge DEBUG: @f6e9d re-directing to port# 9568 JavaBridge DEBUG: @f6e9d waiting for context: 1 JavaBridge DEBUG: @f6e9d context finished: 1 java.lang.NullPointerException at php.java.servlet.ContextRunner.init(ContextRunner.java:48) at php.java.servlet.SocketRunner.accept(SocketRunner.java:73) at php.java.servlet.SocketRunner.run(SocketRunner.java:95) at java.lang.Thread.run(Unknown Source) JavaBridge INFO : Socket runner stopped, the local channel is not available anymore. Any idea? Regards Bharath |
|
From: Bharath T. <bh...@mv...> - 2005-09-13 20:13:40
|
When I try to browse to the test.php in the bridge deployed on tomcat I get the following error on and off on windows JavaBridge DEBUG: @f6e9d first request (session is new). JavaBridge DEBUG: @f6e9d Client changed its request log level to: 4 JavaBridge DEBUG: @f6e9d --> <C v=3D"java.lang.System" p=3D"I" = i=3D"10203232" > JavaBridge DEBUG: @f6e9d --> </C> JavaBridge DEBUG: @f6e9d <-- <O v=3D"1" i=3D"10203232"/> JavaBridge DEBUG: @f6e9d re-directing to port# 9568 JavaBridge DEBUG: @f6e9d waiting for context: 1 JavaBridge DEBUG: @f6e9d context finished: 1 java.lang.NullPointerException at php.java.servlet.ContextRunner.init(ContextRunner.java:48) at php.java.servlet.SocketRunner.accept(SocketRunner.java:73) at php.java.servlet.SocketRunner.run(SocketRunner.java:95) at java.lang.Thread.run(Unknown Source) JavaBridge INFO : Socket runner stopped, the local channel is not available anymore. Any idea? Regards Bharath |
|
From: Jost B. <jos...@ya...> - 2005-09-13 15:45:31
|
Hi Shoan, Are you sure that JavaBridge.war is installed and the JavaBridge context is running? If the context is not running, the client receives a HTML error message which is similar to the bridge' XML protocol, it crashes or hangs after that. (It is difficult to catch this problem without validating the response.) What happens if you visit http://localhost:8080/JavaBridge and then click on test.php? Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
|
From: Shoan M. <lis...@sh...> - 2005-09-13 11:09:14
|
Hi, I installed the latest php-java bridge 2.0.8RC2 on windows XP. PHP 5.0.3.3 CGI/Fast CGI. I have set the required system variables viz. JAVA_HOME, CATALINA_HOME, PATH, SystemDir, SystemRoot. On executing test.bat after starting tomcat, I get an error window "CGI / FastCGI has encountered a problem and needs to close. We are sorry for the inconvenience." The result.html seems to be abruptly terminated and there are no java variables in it. Although, there is a new section for java as shown below: java support Enabled java bridge 2.0.8RC2 java.log_level 4 java.hosts 127.0.0.1:8080 java.servlet On java status running java server 127.0.0.1:8080 Please let me know if you need more information to troubleshoot the problem. Peace, Shoan. |
|
From: Jost B. <jos...@ya...> - 2005-09-12 16:29:58
|
Hi, > 1. BUG. There is no PHP4 version of library in The PHP/Java Bridge does not work on threaded HTTP servers, e.g. IIS, unless ZTS is switched on. ZTS is experimental in all versions below PHP 5 and I know of at least 3 incompatible ABI's since 4.3.2. So the question is: which version of PHP4 on windows should we support? Isn't it possible to compile your own php4 binary as described in the README? > 2. About 80% of windows distributive size is > php5ts.dll > Is it possible to make alternative -light version? Yes, certainly. But is 3MB really too large these days? > 3. Patch to make test run even if unzipped not in > c:/php5 Isn't it possible to adjust the php.ini accordingly? One has to do this during the installation process anyway. But the widgetTest.bat could be changed, of course. > 4. JavaBridge.jar doesn't output any messages about > it was started successfully If you start it at log level 3 or above, as described in the README, it will output to stdout or to a log file. > complete. Is there any ways to control running > server? "apachectl start" starts the apache server and the bridge and "apachectl stop" stops both, please see the README for details. Since version 2.0.8 this works on windows, too. However, the recommended way to run the backend is to start it via the php-java-bridge.service script (on Unix) or via tomcat (on windows). > 6. It would be good to have a ToC in readme. Yes. > Q1. Is it possible to extend Java class with PHP? > I.e. make PHP class, inherited from one of Java? The java_closure() call currently accepts only interfaces, not classes. It would be nice if the Sun's dynamic proxy would accept a class, but it doesn't. If we want this, we must write our own proxy compiler. Please see http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/java/lang/reflect/Proxy.java?rev=1.13.2.6&content-type=text/vnd.viewcvs-markup Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
|
From: Jost B. <jos...@ya...> - 2005-09-11 21:22:41
|
Hi Raphael, all pages are generated through tomcat, only the content within the page is generated by php. Since you use the default value for java.servlet which is: java.servlet="/JavaBridge/PhpJavaServlet" tomcat has set the path value to the app directory, which is "/JavaBridge". The reason why the bridge component truncated the /JavaBridge to / was to disallow session sharing for PHP pages which are outside of the app directory. The current test is wrong, of course: /JavaBridge != JavaBridge, so the bridge has incorrectly changed the path. > not relevant. Unfortunately I can not do it by > myself because I don't > know if it is handled by the JavaBridge or in > Tomcat. You can remove the strncmp from line#198 in http://cvs.sourceforge.net/viewcvs.py/php-java-bridge/php-java-bridge/protocol.c?annotate=1.29 I have created a bug report for this, please see PR1288025 (http://sourceforge.net/tracker/index.php?func=detail&aid=1288025&group_id=117793&atid=679233). I will prepare a 2.0.8RC3 tomorrow evening. Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
|
From: <tec...@us...> - 2005-09-10 13:58:22
|
||*()*|| Greetings, php-java-bridge-users.. Here is the list of proposals/enchantments I've come up with to increase overall first look expression from this bundle. 1. BUG. There is no PHP4 version of library in php-java-bridge_2.0.8RC2 windows distributuive. 2. About 80% of windows distributive size is php5ts.dll Is it possible to make alternative -light version? 3. Patch to make test run even if unzipped not in c:/php5 --- java.ini_old.windows Wed Sep 7 20:54:34 2005 +++ java.ini.windows Sat Sep 10 13:46:30 2005 @@ -7,7 +7,7 @@ ;; double-click on JavaBridge.jar or deploy JavaBridge.war into your ;; servlet engine/application server and re-start it. -extension_dir = "c:\php5" +extension_dir = "." extension = php_java.dll [java] 4. JavaBridge.jar doesn't output any messages about it was started successfully, doesn't respond to command-line parameters and works like invisible service (which is good to see optional) 5. Test could try to execute JavaBridge.jar and shut it down after complete. Is there any ways to control running server? 6. It would be good to have a ToC in readme. Questions about bridge (I'm total noob in Java programming): Q1. Is it possible to extend Java class with PHP? I.e. make PHP class, inherited from one of Java? .techtonik -- |
|
From: Raphael V. <rv_...@os...> - 2005-09-10 12:24:01
|
Hi, Jost, thanks for for answer. > Hi Raphael, > > >>http://localhost:8080/JavaBridge/sessionSharing.jsp >>http://localhost/JavaBridge/sessionSharing.php > > > interesting. I didn't think about this scenario. I > assume you use IIS, which cannot JkMount the tomcat > folder, and manually redirect all .jsp requests to a > different server. I use Apache 2.0.53. Perhaps it is not clear: Both server use different folders. The logical path is the same to avoid problems with the path value in the cookie. > >>Is this a bug in JavaBridge > > > If we want session sharing between different servers, > we must strip off the server part from PHP_SELF, > please see protocol.c, setResultWith_context() I wonder why it work in one direction but not the other way round. The only difference is the path value. A workaround could be to set the path always to / so the cookie is valid for the whole server. The port is imo not relevant. Unfortunately I can not do it by myself because I don't know if it is handled by the JavaBridge or in Tomcat. > This raises some security concerns, though. > > So before I change the code to strip away the server > part, I would like to see a use case. Can you please > explain why do need this? We have a pretty complex application written in PHP which we need to integrate into a Java Portal. The Portal runs in a OC4J and the PHP application on an seperate Apache Instance on the same machine. Both application have a own user management. If a user log in (the portal) and then goes to the PHP application it need to know which user is it. I thought the easiest way is to read the Java session and then map the user data to the user of the PHP Application. regards, Raphael |
|
From: Jost B. <jos...@ya...> - 2005-09-10 10:00:18
|
Hi Raphael, > http://localhost:8080/JavaBridge/sessionSharing.jsp > http://localhost/JavaBridge/sessionSharing.php interesting. I didn't think about this scenario. I assume you use IIS, which cannot JkMount the tomcat folder, and manually redirect all .jsp requests to a different server. > Is this a bug in JavaBridge If we want session sharing between different servers, we must strip off the server part from PHP_SELF, please see protocol.c, setResultWith_context() This raises some security concerns, though. So before I change the code to strip away the server part, I would like to see a use case. Can you please explain why do need this? Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
|
From: Raphael V. <rv_...@os...> - 2005-09-09 09:18:17
|
Hi, I installed php-java-bridge_2.0.8RC2 on Apache Tomcat/5.5.9 on Windows and use it from PHP 5.0.4 on the same machine. While testing the examples I noticed some strange behavior. Scenario: JSP Url: http://localhost:8080/JavaBridge/sessionSharing.jsp PHP Url: http://localhost/JavaBridge/sessionSharing.php If the first hit goes to the PHP-Page it creates a cookie with the following information: name: JSESSIONID value: 84C9FD1F9C6AF4D81AAC24F6395DE10F host: localhost path: / If the next hit goes to the JSP it recognizes the cookie and use the same session as expected. If the first hit goes to the JSP it creates a cookie with a different path: name: JSESSIONID value: B9B7C792CB0242E808789B4DD7CD7A3A host: localhost path: /JavaBridge Now the PHP-Page don't use this cookie and create an new one with path = / and the session will not be shared. Is this a bug in JavaBridge or it is standard behavior of Tomcat? Is there any way to change it? regards, Raphael |
|
From: Ben G. <be...@ja...> - 2005-09-07 19:03:56
|
Jost Boekemeier wrote: > Hi Ben, > > >>I'd be happy to contribute to a documentation wiki. >>I even have some >>server space to set one up, if need be. > > > that would be great. I'd prefer to keep that separate, > probably outside of sf.net. > Cool. I'll get MediaWiki set up - cycles are a bit short right now, but I should have something next week. Any suggestions on a domain name? Is there anything in particular folks would like to see besides the documentation? I think it'd be nice to have a FAQ and a How-To section with some nice sample code (adding Lucene searches to PHP apps is especially cool). Cheers, -- Ben |
|
From: Bharath T. <bh...@mv...> - 2005-09-07 17:34:04
|
Yes, I think this would help.=20 Thanks Bharath -----Original Message----- From: Jost Boekemeier [mailto:jos...@ya...]=20 Sent: Wednesday, September 07, 2005 1:18 PM To: Bharath Thirunavukkarasu; php...@li... Subject: Ant: RE: RE: [Php-java-bridge-users] Re:trouble getting php java bridge to run under tomcat Hi, > If it is hardcoded then we should remove that and > doc it saying that on > windows the user should set the SystemRoot var Yes, I think that's the easiest solution. I will add a setting to the web.xml and document that this setting is used when java cannot read the SystemRoot environment variable or when the SystemRoot environment variable is not set.=20 That way users can change it the way they want. I will also add a System.properties option, syntax:=20 java -DWindows.SystemDir=3D... which overrides everything else, including the setting from the web.xml. That way your setup program (if you provide one) can start tomcat with the correct SystemDir setting and then write out the correct web.xml for the user. Regards, Jost Boekemeier =09 =09 ___________________________________________________________=20 Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
|
From: Bharath T. <bh...@mv...> - 2005-09-07 17:32:21
|
Thanks Jost
Here is my configuration
Windows XP professional SP2
JDK - 1.4.2_05
I will use the work around for the time being
Regards
Bharath
-----Original Message-----
From: Jost Boekemeier [mailto:jos...@ya...]=20
Sent: Wednesday, September 07, 2005 1:10 PM
To: Bharath Thirunavukkarasu;
php...@li...
Subject: Ant: RE: RE: [Php-java-bridge-users] Re:trouble getting php
java bridge to run under tomcat
Hi Bharath,
which JDK and Windows OS version do you use? I do not
understand why some versions of windows require the
SystemDir environment variable. There's no reliable
way to read or set environment variables from java.=20
I have just tested on several systems, including XP
home and win98, none of these need SystemDir. The
only system that I know of is XP, but this problem
goes away when I install network programs. =20
Maybe it is necessary to set a registry entry which
points to the correct SystemDir. I will check this.
> Variable was pointing to C:/Windows (the correct
> path) but in the later
> case
> It was pointing to C:/Winnt (a non existent folder
> on the machine).=20
In JDK1.4 it is hard-coded. The code which does this
(in CGIServlet) looks like this:
try {
var=3DSystem.getenv("SystemDir");
} catch (Throwable t){}
if(var=3D=3Dnull) var=3D"c:/winnt";
The problem is that Sun has introduced getenv() in JDK
1.2, then deprecated it in 1.4 and then un-deprecated
it in 1.5 and now recommends this to pass the
environment to the sub-process.
In other words there is no reliable way to ask for the
value of SystemDir in java.
I think it is possible to read the registry from
jdk1.4. But this will not work either if the registry
key (which one?) is missing.
I have re-opened the ticked.
As a workaround please use Apache/Php/PhpJavaBridge
and Tomcat/mod_jk connector. This is described in the
INSTALL instructions and in the README. This is also
much faster than calling CGI programs or native code
from java.
Regards,
Jost Boekemeier
=09
=09
=09
___________________________________________________________=20
Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier
anmelden: http://mail.yahoo.de
|
|
From: Jost B. <jos...@ya...> - 2005-09-07 17:17:57
|
Hi, > If it is hardcoded then we should remove that and > doc it saying that on > windows the user should set the SystemRoot var Yes, I think that's the easiest solution. I will add a setting to the web.xml and document that this setting is used when java cannot read the SystemRoot environment variable or when the SystemRoot environment variable is not set. That way users can change it the way they want. I will also add a System.properties option, syntax: java -DWindows.SystemDir=... which overrides everything else, including the setting from the web.xml. That way your setup program (if you provide one) can start tomcat with the correct SystemDir setting and then write out the correct web.xml for the user. Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
|
From: Jost B. <jos...@ya...> - 2005-09-07 17:09:43
|
Hi Bharath,
which JDK and Windows OS version do you use? I do not
understand why some versions of windows require the
SystemDir environment variable. There's no reliable
way to read or set environment variables from java.
I have just tested on several systems, including XP
home and win98, none of these need SystemDir. The
only system that I know of is XP, but this problem
goes away when I install network programs.
Maybe it is necessary to set a registry entry which
points to the correct SystemDir. I will check this.
> Variable was pointing to C:/Windows (the correct
> path) but in the later
> case
> It was pointing to C:/Winnt (a non existent folder
> on the machine).
In JDK1.4 it is hard-coded. The code which does this
(in CGIServlet) looks like this:
try {
var=System.getenv("SystemDir");
} catch (Throwable t){}
if(var==null) var="c:/winnt";
The problem is that Sun has introduced getenv() in JDK
1.2, then deprecated it in 1.4 and then un-deprecated
it in 1.5 and now recommends this to pass the
environment to the sub-process.
In other words there is no reliable way to ask for the
value of SystemDir in java.
I think it is possible to read the registry from
jdk1.4. But this will not work either if the registry
key (which one?) is missing.
I have re-opened the ticked.
As a workaround please use Apache/Php/PhpJavaBridge
and Tomcat/mod_jk connector. This is described in the
INSTALL instructions and in the README. This is also
much faster than calling CGI programs or native code
from java.
Regards,
Jost Boekemeier
___________________________________________________________
Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de
|