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
(1) |
|
4
|
5
(3) |
6
(6) |
7
(6) |
8
(10) |
9
(6) |
10
|
|
11
(5) |
12
(5) |
13
(1) |
14
|
15
(2) |
16
(2) |
17
(4) |
|
18
(3) |
19
(3) |
20
(7) |
21
(5) |
22
(7) |
23
(1) |
24
(4) |
|
25
|
26
(3) |
27
(2) |
28
(1) |
29
|
30
|
31
|
|
From: <php...@li...> - 2009-01-07 14:19:48
|
Hi, whether or not you intent to use JSP, you'll need tomcat anyway; although you can start a Java daemon from PHP (see http://php-java-bridge.sourceforge.net/pjb/examples/source.php?source=startJava.php), tomcat is much easier to set up and to handle than some Java daemon started from PHP. Regards, Jost Bökemeier |
|
From: <php...@li...> - 2009-01-07 13:22:10
|
Hi there, I am configuring a Linux server that will be eventually used as a web server. I am new to Java so some things are not clear to me, so please excuse any incorrect statements that I make. The idea is to connect to our IDMS database via JDBC Type 4 drivers from within a Java environment (which is installed on the Linux server), and then collect the data using Java and/or PHP through the PHP-Java Bridge, and then display the data over the web using PHP. I have Apache 2 configured, PHP as an Apache module and also as FastCGI, Apache mod_fastcgi, Tomcat server and the Apache mod_jk connectors. We want Apache 2 to handle all web requests and so we are using the mod_jk connectors to do this. i.e. if we want to view a JSP page online we can access it through www.mydomain.com/test.jsp instead of www.mydomain.com:8080/test.jsp. Considering our desired setup, how should I use the PHP-Java Bridge? Should I use it as an Apache PHP module, or just deploy it to the J2EE Tomcat server? The reason that I installed Tomcat is because I assumed it will create the JDBC connection with our IDMS database and allow PHP and Java to work together. However, I think that this may be incorrect and that all I need is Apache, PHP as an Apache module, the Java environment (SDK 6) to create the JDBC connection, and the PHP-Java Bridge as a PHP module. If we are not serving JSP pages then I can't see any need for Tomcat? Can you confirm that what I suspect is somewhat correct? Please advise as I'm quite confused which method to use. Any help will be much appreciated. Kind regards Jonathan This message has been scanned for viruses by MailControl - www.mailcontrol.com |
|
From: <php...@li...> - 2009-01-06 15:56:52
|
Hi,
cvs -d :ext:you...@ph...:/cvsroot/php-java-bridge co php-java-bridge
anonymous CVS will also work.
However, you don't need CVS access, as the sources are contained in the documentation folder of the binary download (in src.zip).
Regards,
Jost Boekemeier
|
|
From: <php...@li...> - 2009-01-06 15:53:52
|
Hi,
> - How to reliably run the JavaBridge.jar in production?
Just deploy JavaBridge.war into your favorite J2EE server or servlet engine. Please see our FAQ and the INSTALL.J2EE document for details.
Regards,
Jost Boekemeier
|
|
From: <php...@li...> - 2009-01-06 15:51:14
|
Hi John, > java.lang.RuntimeException: Could not run PHP ([php-cgi, what about adding a OSX php-cgi binary to the JavaBridge.war file? AFAIK OSX doesn't ship with a php-cgi binary. Furthermore all current PHP binaries aren't exactly stable (see this regression for example: http://bugs.php.net/bug.php?id=46723&edit=1), anyway. So it might be a good idea to ship a stable PHP binary along with the PHP/Java Bridge. The Solaris/Linux/... PHP binaries conntained in JavaBridge.war which have been compiled with: cd php-5.1.4; ./configure --disable-all --enable-fastcgi && make && strip sapi/cgi/php-cgi Could you provide such a php-cgi binary for OSX? Regards, Jost Boekemeier |
|
From: <php...@li...> - 2009-01-06 15:40:57
|
Hi, I've done my first (succesful) steps with the bridge. Questions: - How to reliably run the JavaBridge.jar in production? Everything works fine, when I just enter java -Djava.ext.dirs="/usr/share/java/" -jar JavaBridge.jar SERVLET_LOCAL:8080 Now I only need to require java.inc in PHP and can work. But I would like to have this run as a daemon, which restarts automatically on failure or system restart. And no. I'd rather not install Tomcat. I have no idea, what this Tomcat is and does and don't like to spend resources on yet another java monster. Please excuse my ignorace of the Java world. :-) Best regards, -- Thomas Koch, http://www.koch.ro YMC AG, http://www.ymc.ch |
|
From: <php...@li...> - 2009-01-06 10:53:25
|
Hi, I'm just starting to dive into the php-java-bridge and wondered, where I could find the source code repository of the project. It's not necessary right now, but I like to observe the trunk of projects I use. Best regards, -- Thomas Koch, Software Developer http://www.koch.ro |
|
From: <php...@li...> - 2009-01-06 07:08:05
|
Hi all,
Well i'm having a silly problem getting the latest release (5.4.2) to
extract so that I can test compatibility with our Web application. I
am currently running version 3.2.1 in production (has been running
for over a year beautifully).
As I am a complete noob when it comes to Java, this is likely a very
simple problem I hope. I am running Mac OS X 10.4.11.
I copied the downloaded folder to my Mac Web directory at /Library/
WebServer/Documents/php-java-bridge_5-1/
Here is my terminal output for three different attempts:
1) Using the installation instructions verbatim:
iMac:/Library/WebServer/Documents/php-java-bridge_5-1 jkoerber$ java -
classpath JavaBridge.war TestInstallation
java.io.FileNotFoundException: /Library/WebServer/Documents/php-java-
bridge_5-1/JavaBridge.war:/System/Library/Frameworks/JavaVM.framework/
Versions/1.5.0/Classes/.compatibility/ext/JavaBridge.jar (Permission
denied)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
at TestInstallation.extractFile(TestInstallation.java:351)
at TestInstallation.start(TestInstallation.java:283)
at TestInstallation.main(TestInstallation.java:251)
iMac:/Library/WebServer/Documents/php-java-bridge_5-1 jkoerber$
2) Specifying a path for "-classpath"
iMac:/Library/WebServer/Documents/php-java-bridge_5-1 jkoerber$ java -
classpath /Library/WebServer/Documents/php-java-bridge_5-1/
JavaBridge.war TestInstallation
java.io.FileNotFoundException: /Library/WebServer/Documents/php-java-
bridge_5-1/JavaBridge.war:/System/Library/Frameworks/JavaVM.framework/
Versions/1.5.0/Classes/.compatibility/ext/JavaBridge.jar (Permission
denied)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
at TestInstallation.extractFile(TestInstallation.java:351)
at TestInstallation.start(TestInstallation.java:283)
at TestInstallation.main(TestInstallation.java:251)
iMac:/Library/WebServer/Documents/php-java-bridge_5-1 jkoerber$
3) Running as superuser (since I noticed the permission denied message)
iMac:/Library/WebServer/Documents/php-java-bridge_5-1 jkoerber$ su root
Password:
iMac:/Library/WebServer/Documents/php-java-bridge_5-1 root# java -
classpath /Library/WebServer/Documents/php-java-bridge_5-1/
JavaBridge.war TestInstallation
Starting a simple servlet engine: [/System/Library/Frameworks/
JavaVM.framework/Versions/1.5.0/Home/bin/java, -jar, /Library/
WebServer/Documents/php-java-bridge_5-1/JavaBridge.war:/System/
Library/Frameworks/JavaVM.framework/Versions/1.5.0/
Classes/.compatibility/ext/JavaBridge.jar, SERVLET_LOCAL:8080]
Exception in thread "main" java.lang.NoClassDefFoundError: php/java/
bridge/Standalone
Invoking php: [php-cgi, -n, -d, allow_url_include=On, /Library/
WebServer/Documents/php-java-bridge_5-1/JavaBridge.war:/System/
Library/Frameworks/JavaVM.framework/Versions/1.5.0/
Classes/.compatibility/test.php]
java.lang.RuntimeException: Could not run PHP ([php-cgi, -n, -d,
allow_url_include=On, /Library/WebServer/Documents/php-java-
bridge_5-1/JavaBridge.war:/System/Library/Frameworks/JavaVM.framework/
Versions/1.5.0/Classes/.compatibility/test.php]), please check if php-
cgi is in the path.
at TestInstallation.start(TestInstallation.java:327)
at TestInstallation.main(TestInstallation.java:251)
Caused by: java.io.IOException: php-cgi: not found
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:52)
at java.lang.ProcessImpl.start(ProcessImpl.java:91)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:451)
at java.lang.Runtime.exec(Runtime.java:591)
at java.lang.Runtime.exec(Runtime.java:507)
at TestInstallation.start(TestInstallation.java:325)
... 1 more
iMac:/Library/WebServer/Documents/php-java-bridge_5-1 root#
I appreciate any tips on why I am unable to get the .war file to
unzip on my Mac.
Thanks
-- Jon
|
|
From: <php...@li...> - 2009-01-05 16:44:52
|
Hi,
> I want to wrap two PHP objects as closures, pass them to Java, and in
> Java call a method on the first closure with the second closure as
> parameter [argument]
In pseudo code (please see the JSR 223 API for details):
String pA = "class A{function testA($b){echo $b->testB();}}\n"
String pB = "class B{function testB(){echo 'hello world';}}\n"
String test = "<?php "+pA+Pb+" $thiz=java_context()->getAttribute("thiz"); $thiz->call(java_closure(new A()), java_closure(new B()); ?>
public void doWork (){
scriptEngine = new ScriptEngineManager().getEngineByName("php-invocable");
scriptEngine.put("thiz", this);
scriptEngine.eval(test);
((Closeable)scriptEngine).close();
}
static interface IA { public void testA(IB cc1); }
static interface IB { public void testB(); }
public void call(Object $ccA, Object $ccB) {
IA ccA = scriptEngine.getInterface($ccA, IA);
IB ccB = scriptEngine.getInterface($ccB, IB);
ccA.testA(ccB);
}
> The problem is that on the php side I get a new object of
> type PhpProcedure instead of the closure/proxy I created before.
Yes, the type is determined lazily. Why is that a problem?
> Therefore within the method I always get the wrong
> parameter passed in.
I think this is a misunderstanding. If you don't specify the type, either via getInterface() (see above) or by calling java_closure() with three arguments, the generated procedure is generic, i.e. you cannot call the procedure "testA" on it.
Regards,
Jost Boekemeier
|
|
From: <php...@li...> - 2009-01-05 13:42:56
|
I think found what was causing my confusion. On the SQL Server the field
that I thought was a double is actually defined as a Money type. If I
understand it correctly, the Money type is a long integer that has to be
scaled based on the definition.
Thanks for your reply. I suspected that PHP only really used strings, but
wasn't sure. Also, I had forgotten about the java_values command. I have
used it before, but it has been some time.
Thanks Jost.
Charles Shaffer
Senior Analyst
NTN-Bower Corporation
php...@li...
01/03/2009 11:00 AM
Please respond to php-java-bridge-users
To: php...@li...
cc:
Subject: Re: [Php-java-bridge-users] Type Casting
Hi,
can you please give an example which demonstrates the problem?
> Should PHP handle everyting as a string and type casting be
> done in Java?
That's the only type that PHP supports, anyway. :)
> For example I have a Sql query being called from Java. PHP
> passes a
> string and an int to the Java routine and the Java routine
> runs the SQL query and returns a double.
The bridge will return a proxy for the result, which can be evaluated as
usual:
either
echo (int)(string)$sqlResult;
or
echo java_values($sqlResult);
Note that the first line above might be wrong on 32 bit machines, where
PHP int values have a limited range. Use (double)(string)$sqlResult
instead.
Regards,
Jost Boekemeier
------------------------------------------------------------------------------
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|
|
From: <php...@li...> - 2009-01-05 09:05:49
|
Hi all, I want to wrap two PHP objects as closures, pass them to Java, and in Java call a method on the first closure with the second closure as parameter. I believe that there's no simple java_closure()-call to do this at once. Therefore I wrote a Java-class that takes over the two closures and tries to do what I desribed above. See attachment for my PHP and Java code look. The problem is that on the php side I get a new object of type PhpProcedure instead of the closure/proxy I created before. Therefore within the method I always get the wrong parameter passed in. If I omit the line where I replace Proxy by underlying PhpProcedure in my java code, I get an (dollar)Proxy0-object instead of the PhpProcedure - which is still wrong. What I probably would need to get is the PhpProcedureProxy, but I've got no glue how to get a handle on that on the java side. I'm quite new to PHP-Java-Bridge, so I don't know whether this is a missing feature or I'm missing some basic understanding. Regards Juergen |
|
From: <php...@li...> - 2009-01-03 17:00:05
|
Hi,
can you please give an example which demonstrates the problem?
> Should PHP handle everyting as a string and type casting be
> done in Java?
That's the only type that PHP supports, anyway. :)
> For example I have a Sql query being called from Java. PHP
> passes a
> string and an int to the Java routine and the Java routine
> runs the SQL query and returns a double.
The bridge will return a proxy for the result, which can be evaluated as usual:
either
echo (int)(string)$sqlResult;
or
echo java_values($sqlResult);
Note that the first line above might be wrong on 32 bit machines, where PHP int values have a limited range. Use (double)(string)$sqlResult instead.
Regards,
Jost Boekemeier
|
|
From: <php...@li...> - 2009-01-02 20:39:55
|
This is not a Bridge problem, more of a question. I am using the Java Bridge to access database servers from PHP. Type casting is driving me nuts. Does anyone have a preferred method of handling this? Should PHP handle everyting as a string and type casting be done in Java? I find the types are "difficult" when trying to pass objects. Should everything be handled as primitives? For example I have a Sql query being called from Java. PHP passes a string and an int to the Java routine and the Java routine runs the SQL query and returns a double. I have tried several different approaches and so far it isn't happy. Any suggestions? Charles Shaffer Senior Analyst NTN-Bower Corporation |