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
(4) |
3
(1) |
4
|
|
5
|
6
|
7
(9) |
8
(26) |
9
|
10
|
11
(3) |
|
12
|
13
|
14
(3) |
15
|
16
(1) |
17
(6) |
18
(2) |
|
19
(2) |
20
(8) |
21
(11) |
22
(3) |
23
(1) |
24
(8) |
25
(2) |
|
26
(1) |
27
(5) |
28
(6) |
29
(17) |
30
(16) |
|
|
|
From: <php...@li...> - 2009-04-20 09:31:08
|
Thank you very much for the file with the list of tutorials, but I couldn't open it. Would you please send it to me as pdf?
Thank you in advance!
|
|
From: <php...@li...> - 2009-04-20 09:16:14
|
Hello,
Thank you for your advice with the class FopFactory (I will try this later).
What do you think about the following PHP script I've created ?
www:root>vi ExampleFO2PDF.php
------------
<?php
require_once('java/Java.inc');
$basedir = new Java("java.io.File", ".");
$outdir = new Java("java.io.File", "out");
$outdir->mkdirs();
$fofile = new Java("java.io.File", $basedir, "InputFO2PDF.fo");
$pdffile = new Java("java.io.File", $outdir, "ResultFO2PDF.pdf");
echo "Input: ".$fofile->toString()."\n";
echo "Output: ".$pdffile->toString()."\n";
$myObject = new Java("embedding.ExampleFO2PDF");
$myObject->convertFO2PDF($fofile, $pdffile);
?>
---------
When I run from command line: java embedding.ExampleFO2PDF
it's OK:
FOP
ExampleFO2PDF
Preparing...
Input: XSL-FO (./xml/fo/helloworld.fo)
Output: PDF (./out/ResultFO2PDF.pdf)
Transforming...
PageSequence <no id> generated 1 pages.
PageSequence <no id> generated 1 pages.
Generated 2 pages in total.
Success!
But when I send a request:
http://myhost.com/embedding/ExampleFO2PDF.php
I've got error in PHP error log: phperror.log
---------
[17-Apr-2009 10:10:11] PHP Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: CreateInstance failed: new embedding.ExampleFO2PDF. Cause: java.lang.ClassNotFoundException: embedding.ExampleFO2PDF VM: 1.6.0_10@http://java.sun.com/" at:
----------
The class embedding.ExampleFO2PDF does exist, and is in the right place (in the directory
$CLASSPATH).
--- On Fri, 4/17/09, php...@li... <php...@li...> wrote:
From: php...@li... <php...@li...>
Subject: Re: [Php-java-bridge-users] ExampleFO2PDF.java & PHP-Java-Bridge
To: php...@li...
Date: Friday, April 17, 2009, 8:36 AM
I don't think that tools exist which can translate a java example to PHP
code. But since both languages use a similar syntax, you can translate it
yourself. Just use java(...)->... to access a procedure or const within a
class and new java(...) to create an instance.
So the first statements of your code would be (provided that you have copied
the fop libs to the WEB-INF/lib within JavaBridge.war and deployed it):
<?php require_once("http://.../java/Java.inc");
$fopFactory=java("org.apache.fop.apps.FopFactory");
$foUserAgent=$fopFactory->newFoUserAgent();
...
Apr 16, 2009 8:20 nachm. schrieb am <
php...@li...>:
Hello all,
I've installed FOP 0.95 and PHP-Java-Bridge on my Unix server.
I'd like to create a PDF file from FO file using the ExampleFO2PDF.java
from
http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/examples/embedding/java/embedding/ExampleFO2PDF.java?view=markup
OS: Solaris 10
Server Version: Apache/2.2.9 (Unix) mod_ssl/2.2.9 OpenSSL/0.9.7d
Tomcat : Apache Tomact/6.0.16
PHP: version 5.2.9
PHP-Java-Bridge : version 5.4.3.3
I compiled the the ExampleFO2PDF.java => ExampleFO2PDF.class
and then I created a jar file => ExampleFO2PDF.jar
AFAIK, it's possible to call the Java class from a PHP script using
PHP-Java-Bridge.
Is there anyone who already tried to create a PDF file from FO file using
the ExampleFO2PDF.java I mentioned above ?
Any help would be appreciated.
btw, I can create a PDF file using command line:
fop -fo foo.fo -pdf
foo.pdf
I cann see the pdf file from URL:
http://myhost.com:8080/fop/fop?fo=/opt/coolstack/fop/foo.fo
Al
------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today.
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today.
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|
|
From: <php...@li...> - 2009-04-20 08:24:51
|
Thank you very much for the bug report. This will be fixed in PHP/Java Bridge version 5.4.4.2. As a workaround please edit Makefile.am within php-java-bridge*.tar.gz and remove the text "-ftarget=1.4". Or please use the binary download instead. Regards, Jost Boekemeier Apr 19, 2009 7:14 nachm. schrieb am "Jost Bekemeier" < jos...@go...>: [-ftarget flag missing] Doesn't gcc 4.1.2 shipped with RHEL5.3 support this flag? I will check this and add a fix, if necessary. Regards, Jost Boekemeier Apr 19, 2009 5:41 nachm. schrieb am < php...@li...>: Jost, We're finally going the tomcat route. But when building the rpm (rpmbuild -tb php-java-bridge*.tar.gz), I always get an error message: -- jc1: error: unrecognized command line option "-ftarget=1.4" -- regardless of the java bridge version I am using. I've tried php-java-bridge_5.2.2.4.tar.gz php-java-bridge_5.4.3.3.tar.gz php-java-bridge_5.3.4.1.tar.gz and php-java-bridge_5.4.4.tar.gz Am I missing something? In the course of installing tomcat I've had to install the following: Installed: tomcat5.x86_64 0:5.5.23-0jpp.7.el5_2.1 Dependency Installed: ant.x86_64 0:1.6.5-2jpp.2 axis.x86_64 0:1.2.1-2jpp.6 bcel.x86_64 0:5.1-8jpp.1 classpathx-jaf.x86_64 0:1.0-9jpp.1 classpathx-mail.x86_64 0:1.1.1-4jpp.2 eclipse-ecj.x86_64 1:3.2.1-19.el5.centos geronimo-specs.x86_64 0:1.0-0.M2.2jpp.12.el5.centos geronimo-specs-compat.x86_64 0:1.0-0.M2.2jpp.12.el5.centos giflib.x86_64 0:4.1.3-7.1.el5.1 jakarta-commons-beanutils.x86_64 0:1.7.0-5jpp.1 jakarta-commons-collections.x86_64 0:3.2-2jpp.3 jakarta-commons-daemon.x86_64 1:1.0.1-6jpp.1 jakarta-commons-dbcp.x86_64 0:1.2.1-7jpp.1 jakarta-commons-digester.x86_64 0:1.7-5jpp.1 jakarta-commons-discovery.x86_64 1:0.3-4jpp.1 jakarta-commons-el.x86_64 0:1.0-7jpp.1 jakarta-commons-fileupload.x86_64 1:1.0-6jpp.1 jakarta-commons-httpclient.x86_64 1:3.0-7jpp.1 jakarta-commons-launcher.x86_64 0:0.9-6jpp.1 jakarta-commons-logging.x86_64 0:1.0.4-6jpp.1 jakarta-commons-modeler.x86_64 0:1.1-8jpp.3.el5 jakarta-commons-pool.x86_64 0:1.3-5jpp.1 java-1.6.0-openjdk.x86_64 1:1.6.0.0-0.30.b09.el5 java-1.6.0-openjdk-devel.x86_64 1:1.6.0.0-0.30.b09.el5 ldapjdk.x86_64 0:4.18-2jpp.3.el5 log4j.x86_64 0:1.2.13-3jpp.2 mx4j.x86_64 1:3.0.1-6jpp.4 regexp.x86_64 0:1.4-2jpp.2 tomcat5-common-lib.x86_64 0:5.5.23-0jpp.7.el5_2.1 tomcat5-jasper.x86_64 0:5.5.23-0jpp.7.el5_2.1 tomcat5-jsp-2.0-api.x86_64 0:5.5.23-0jpp.7.el5_2.1 tomcat5-server-lib.x86_64 0:5.5.23-0jpp.7.el5_2.1 tomcat5-servlet-2.4-api.x86_64 0:5.5.23-0jpp.7.el5_2.1 ws Installed: gcc-java.x86_64 0:4.1.2-44.el5 mono-core.x86_64 0:1.2.4-2.el5.centos selinux-policy-devel.noarch 0:2.4.6-203.el5 Dependency Installed: libgcj-devel.x86_64 0:4.1.2-44.el5 libgdiplus.x86_64 0:1.2.5-1.el5.centos Updated: cpp.x86_64 0:4.1.2-44.el5 gcc.x86_64 0:4.1.2-44.el5 libgcc.i386 0:4.1.2-44.el5 libgcc.x86_64 0:4.1.2-44.el5 libgcj.x86_64 0:4.1.2-44.el5 libgfortran.x86_64 0:4.1.2-44.el5 libgomp.x86_64 0:4.3.2-7.el5 libstdc++.x86_64 0:4.1.2-44.el5 libstdc++.i386 0:4.1.2-44.el5 libstdc++-devel.x86_64 0:4.1.2-44.el5 selinux-policy.noarch 0:2.4.6-203.el5 Dependency Updated: gcc-c++.x86_64 0:4.1.2-44.el5 gcc-gfortran.x86_64 0:4.1.2-44.el5 selinux-policy-targeted.noarch 0:2.4.6-203.el5 Complete! Installed: xml-commons-apis.x86_64 0:1.3.02-0.b2.7jpp.10 Complete! Here's the error line: --- cat META-INF/java/JavaBridge.inc META-INF/java/Options.inc META-INF/java/Client.inc META-INF/java/GlobalRef.inc META-INF/java/NativeParser.inc META-INF/java/Parser.inc META-INF/java/Protocol.inc META-INF/java/SimpleParser.inc META-INF/java/JavaProxy.inc | sed -f extract.sed | sed '/^\/\*/,/\*\/$/d' >JavaRaw.inc cat JavaRaw.inc | sed -f append.sed | sed 's/JAVA/MONO/g;s/java/mono/g;s/Java/Mono/g;s/updateJarLibraryPath/updateLibraryPath/;s/^.*do not delete this line.*$/$name="cli.".$name;/;' >META-INF/java/Mono.inc gcj -w -ftarget=1.4 -classpath .:script-api.jar -C php/java/bridge/*.java php/java/bridge/http/*.java jc1: error: unrecognized command line option "-ftarget=1.4" make[1]: *** [MonoBridge.exe] Error 1 make[1]: Leaving directory `/usr/src/redhat/BUILD/php-java-bridge-5.3.4.1/server' make: *** [/usr/src/redhat/BUILD/php-java-bridge-5.3.4.1/modules/stamp] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.83378 (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.83378 (%build) --- Help! Warm Regards, Thangaraj On Sat, Mar 28, 2009 at 2:18 PM, < php...@li...> wrote: > Hi, > > ... > ------------------------------------------------------------------------------ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > -- www.ishafoundation.org www.projectgreenhands.org www.bootcd.us www.ecobuddy.in ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
|
From: <php...@li...> - 2009-04-19 17:14:53
|
[-ftarget flag missing] Doesn't gcc 4.1.2 shipped with RHEL5.3 support this flag? I will check this and add a fix, if necessary. Regards, Jost Boekemeier Apr 19, 2009 5:41 nachm. schrieb am < php...@li...>: Jost, We're finally going the tomcat route. But when building the rpm (rpmbuild -tb php-java-bridge*.tar.gz), I always get an error message: -- jc1: error: unrecognized command line option "-ftarget=1.4" -- regardless of the java bridge version I am using. I've tried php-java-bridge_5.2.2.4.tar.gz php-java-bridge_5.4.3.3.tar.gz php-java-bridge_5.3.4.1.tar.gz and php-java-bridge_5.4.4.tar.gz Am I missing something? In the course of installing tomcat I've had to install the following: Installed: tomcat5.x86_64 0:5.5.23-0jpp.7.el5_2.1 Dependency Installed: ant.x86_64 0:1.6.5-2jpp.2 axis.x86_64 0:1.2.1-2jpp.6 bcel.x86_64 0:5.1-8jpp.1 classpathx-jaf.x86_64 0:1.0-9jpp.1 classpathx-mail.x86_64 0:1.1.1-4jpp.2 eclipse-ecj.x86_64 1:3.2.1-19.el5.centos geronimo-specs.x86_64 0:1.0-0.M2.2jpp.12.el5.centos geronimo-specs-compat.x86_64 0:1.0-0.M2.2jpp.12.el5.centos giflib.x86_64 0:4.1.3-7.1.el5.1 jakarta-commons-beanutils.x86_64 0:1.7.0-5jpp.1 jakarta-commons-collections.x86_64 0:3.2-2jpp.3 jakarta-commons-daemon.x86_64 1:1.0.1-6jpp.1 jakarta-commons-dbcp.x86_64 0:1.2.1-7jpp.1 jakarta-commons-digester.x86_64 0:1.7-5jpp.1 jakarta-commons-discovery.x86_64 1:0.3-4jpp.1 jakarta-commons-el.x86_64 0:1.0-7jpp.1 jakarta-commons-fileupload.x86_64 1:1.0-6jpp.1 jakarta-commons-httpclient.x86_64 1:3.0-7jpp.1 jakarta-commons-launcher.x86_64 0:0.9-6jpp.1 jakarta-commons-logging.x86_64 0:1.0.4-6jpp.1 jakarta-commons-modeler.x86_64 0:1.1-8jpp.3.el5 jakarta-commons-pool.x86_64 0:1.3-5jpp.1 java-1.6.0-openjdk.x86_64 1:1.6.0.0-0.30.b09.el5 java-1.6.0-openjdk-devel.x86_64 1:1.6.0.0-0.30.b09.el5 ldapjdk.x86_64 0:4.18-2jpp.3.el5 log4j.x86_64 0:1.2.13-3jpp.2 mx4j.x86_64 1:3.0.1-6jpp.4 regexp.x86_64 0:1.4-2jpp.2 tomcat5-common-lib.x86_64 0:5.5.23-0jpp.7.el5_2.1 tomcat5-jasper.x86_64 0:5.5.23-0jpp.7.el5_2.1 tomcat5-jsp-2.0-api.x86_64 0:5.5.23-0jpp.7.el5_2.1 tomcat5-server-lib.x86_64 0:5.5.23-0jpp.7.el5_2.1 tomcat5-servlet-2.4-api.x86_64 0:5.5.23-0jpp.7.el5_2.1 ws Installed: gcc-java.x86_64 0:4.1.2-44.el5 mono-core.x86_64 0:1.2.4-2.el5.centos selinux-policy-devel.noarch 0:2.4.6-203.el5 Dependency Installed: libgcj-devel.x86_64 0:4.1.2-44.el5 libgdiplus.x86_64 0:1.2.5-1.el5.centos Updated: cpp.x86_64 0:4.1.2-44.el5 gcc.x86_64 0:4.1.2-44.el5 libgcc.i386 0:4.1.2-44.el5 libgcc.x86_64 0:4.1.2-44.el5 libgcj.x86_64 0:4.1.2-44.el5 libgfortran.x86_64 0:4.1.2-44.el5 libgomp.x86_64 0:4.3.2-7.el5 libstdc++.x86_64 0:4.1.2-44.el5 libstdc++.i386 0:4.1.2-44.el5 libstdc++-devel.x86_64 0:4.1.2-44.el5 selinux-policy.noarch 0:2.4.6-203.el5 Dependency Updated: gcc-c++.x86_64 0:4.1.2-44.el5 gcc-gfortran.x86_64 0:4.1.2-44.el5 selinux-policy-targeted.noarch 0:2.4.6-203.el5 Complete! Installed: xml-commons-apis.x86_64 0:1.3.02-0.b2.7jpp.10 Complete! Here's the error line: --- cat META-INF/java/JavaBridge.inc META-INF/java/Options.inc META-INF/java/Client.inc META-INF/java/GlobalRef.inc META-INF/java/NativeParser.inc META-INF/java/Parser.inc META-INF/java/Protocol.inc META-INF/java/SimpleParser.inc META-INF/java/JavaProxy.inc | sed -f extract.sed | sed '/^\/\*/,/\*\/$/d' >JavaRaw.inc cat JavaRaw.inc | sed -f append.sed | sed 's/JAVA/MONO/g;s/java/mono/g;s/Java/Mono/g;s/updateJarLibraryPath/updateLibraryPath/;s/^.*do not delete this line.*$/$name="cli.".$name;/;' >META-INF/java/Mono.inc gcj -w -ftarget=1.4 -classpath .:script-api.jar -C php/java/bridge/*.java php/java/bridge/http/*.java jc1: error: unrecognized command line option "-ftarget=1.4" make[1]: *** [MonoBridge.exe] Error 1 make[1]: Leaving directory `/usr/src/redhat/BUILD/php-java-bridge-5.3.4.1/server' make: *** [/usr/src/redhat/BUILD/php-java-bridge-5.3.4.1/modules/stamp] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.83378 (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.83378 (%build) --- Help! Warm Regards, Thangaraj On Sat, Mar 28, 2009 at 2:18 PM, < php...@li...> wrote: > Hi, > > ... > ------------------------------------------------------------------------------ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > -- www.ishafoundation.org www.projectgreenhands.org www.bootcd.us www.ecobuddy.in ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
|
From: <php...@li...> - 2009-04-19 15:39:49
|
Jost,
We're finally going the tomcat route. But when building the rpm (rpmbuild
-tb php-java-bridge*.tar.gz), I always get an error message:
--
jc1: error: unrecognized command line option "-ftarget=1.4"
--
regardless of the java bridge version I am using. I've tried
php-java-bridge_5.2.2.4.tar.gz
php-java-bridge_5.4.3.3.tar.gz
php-java-bridge_5.3.4.1.tar.gz and
php-java-bridge_5.4.4.tar.gz
Am I missing something?
In the course of installing tomcat I've had to install the following:
Installed: tomcat5.x86_64 0:5.5.23-0jpp.7.el5_2.1
Dependency Installed: ant.x86_64 0:1.6.5-2jpp.2 axis.x86_64 0:1.2.1-2jpp.6
bcel.x86_64 0:5.1-8jpp.1 classpathx-jaf.x86_64 0:1.0-9jpp.1
classpathx-mail.x86_64 0:1.1.1-4jpp.2 eclipse-ecj.x86_64
1:3.2.1-19.el5.centos geronimo-specs.x86_64 0:1.0-0.M2.2jpp.12.el5.centos
geronimo-specs-compat.x86_64 0:1.0-0.M2.2jpp.12.el5.centos giflib.x86_64
0:4.1.3-7.1.el5.1 jakarta-commons-beanutils.x86_64 0:1.7.0-5jpp.1
jakarta-commons-collections.x86_64 0:3.2-2jpp.3
jakarta-commons-daemon.x86_64 1:1.0.1-6jpp.1 jakarta-commons-dbcp.x86_64
0:1.2.1-7jpp.1 jakarta-commons-digester.x86_64 0:1.7-5jpp.1
jakarta-commons-discovery.x86_64 1:0.3-4jpp.1 jakarta-commons-el.x86_64
0:1.0-7jpp.1 jakarta-commons-fileupload.x86_64 1:1.0-6jpp.1
jakarta-commons-httpclient.x86_64 1:3.0-7jpp.1
jakarta-commons-launcher.x86_64 0:0.9-6jpp.1 jakarta-commons-logging.x86_64
0:1.0.4-6jpp.1 jakarta-commons-modeler.x86_64 0:1.1-8jpp.3.el5
jakarta-commons-pool.x86_64 0:1.3-5jpp.1 java-1.6.0-openjdk.x86_64
1:1.6.0.0-0.30.b09.el5 java-1.6.0-openjdk-devel.x86_64
1:1.6.0.0-0.30.b09.el5 ldapjdk.x86_64 0:4.18-2jpp.3.el5 log4j.x86_64
0:1.2.13-3jpp.2 mx4j.x86_64 1:3.0.1-6jpp.4 regexp.x86_64 0:1.4-2jpp.2
tomcat5-common-lib.x86_64 0:5.5.23-0jpp.7.el5_2.1 tomcat5-jasper.x86_64
0:5.5.23-0jpp.7.el5_2.1 tomcat5-jsp-2.0-api.x86_64 0:5.5.23-0jpp.7.el5_2.1
tomcat5-server-lib.x86_64 0:5.5.23-0jpp.7.el5_2.1
tomcat5-servlet-2.4-api.x86_64 0:5.5.23-0jpp.7.el5_2.1 ws
Installed: gcc-java.x86_64 0:4.1.2-44.el5 mono-core.x86_64
0:1.2.4-2.el5.centos selinux-policy-devel.noarch 0:2.4.6-203.el5
Dependency Installed: libgcj-devel.x86_64 0:4.1.2-44.el5 libgdiplus.x86_64
0:1.2.5-1.el5.centos
Updated: cpp.x86_64 0:4.1.2-44.el5 gcc.x86_64 0:4.1.2-44.el5 libgcc.i386
0:4.1.2-44.el5 libgcc.x86_64 0:4.1.2-44.el5 libgcj.x86_64 0:4.1.2-44.el5
libgfortran.x86_64 0:4.1.2-44.el5 libgomp.x86_64 0:4.3.2-7.el5
libstdc++.x86_64 0:4.1.2-44.el5 libstdc++.i386 0:4.1.2-44.el5
libstdc++-devel.x86_64 0:4.1.2-44.el5 selinux-policy.noarch 0:2.4.6-203.el5
Dependency Updated: gcc-c++.x86_64 0:4.1.2-44.el5 gcc-gfortran.x86_64
0:4.1.2-44.el5 selinux-policy-targeted.noarch 0:2.4.6-203.el5
Complete!
Installed: xml-commons-apis.x86_64 0:1.3.02-0.b2.7jpp.10
Complete!
Here's the error line:
---
cat META-INF/java/JavaBridge.inc META-INF/java/Options.inc
META-INF/java/Client.inc META-INF/java/GlobalRef.inc
META-INF/java/NativeParser.inc META-INF/java/Parser.inc
META-INF/java/Protocol.inc META-INF/java/SimpleParser.inc
META-INF/java/JavaProxy.inc | sed -f extract.sed | sed '/^\/\*/,/\*\/$/d'
>JavaRaw.inc
cat JavaRaw.inc | sed -f append.sed | sed
's/JAVA/MONO/g;s/java/mono/g;s/Java/Mono/g;s/updateJarLibraryPath/updateLibraryPath/;s/^.*do
not delete this line.*$/$name="cli.".$name;/;' >META-INF/java/Mono.inc
gcj -w -ftarget=1.4 -classpath .:script-api.jar -C php/java/bridge/*.java
php/java/bridge/http/*.java
jc1: error: unrecognized command line option "-ftarget=1.4"
make[1]: *** [MonoBridge.exe] Error 1
make[1]: Leaving directory
`/usr/src/redhat/BUILD/php-java-bridge-5.3.4.1/server'
make: *** [/usr/src/redhat/BUILD/php-java-bridge-5.3.4.1/modules/stamp]
Error 2
error: Bad exit status from /var/tmp/rpm-tmp.83378 (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.83378 (%build)
---
Help!
Warm Regards,
Thangaraj
On Sat, Mar 28, 2009 at 2:18 PM, <
php...@li...> wrote:
> Hi,
>
> the 32/64 bit cpu/jvm issue you observed was one of the reasons for the
> switch.
>
> The bridge runs with any servlet engine out there, it even works with the
> simple http server build into JavaBride.jar: java -jar JavaBridge.jar.
>
> But for features like hot deployment, persistent connections, module
> managemant, etc. you'll need tomcat or some other j2ee ontainer anyway.
>
> On RedHat/Fedora or compatibles just do a
>
> yum -y install tomcat php
> rpmbuild -tb php-java-bridge*.tar.gz
> rpm -i php-java-bridge*.rpm
>
> Regards,
> Jost Boekemeier
>
> Mrz 28, 2009 9:22 vorm. schrieb am <
> php...@li...>:
>
> Ok. So is it possible to use the 4.x version of the bridge to make this
> thing work?
>
> But when I compiled v4.3.2, I still get the same error.
> ----
>
> PHP Warning: php_mod_java(105) system error: Could not execute backend:
> JAVA_HOME=/usr/java/j2sdk1....
>
> /usr/lib64/php/modules/RunJavaBridge /usr/java/j2sdk1.4.2_19/bin/java
> -Djava.library.path=/usr/lib64...
> And again, running the command
> --
>
> /usr/lib64/php/modules/RunJavaBridge /usr/java/j2sdk1.4.2_19/bin/java
> -Djava.library.path=/usr/lib64...
> --
> does not give any error.
>
> So now, nobody has any suggestion to solve this, I'll have to try running
> Tomcat or some other servlet runner. Have anyone used winstone
> http://winstone.sourceforge.net/
> to run the bridge? I'm just trying to stay lightweight. Any other
> recommendations are welcome of course.
>
> btw, I did try, at one time, running the war file with winstone, but ended
> up getting an internal server error whenever the server is accessed at port
> 8080. So if there is no other option, I'll go with tomcat.
>
> Thank you for the support, Jost. I appreciate it.
>
> ------
>
> We used to use a binary protocol in 1.x. It has since been replaced by a
> faster XML protocol mechani...
>
> On Fri, Mar 27, 2009 at 2:54 PM, Thangaraj (www.bootcd.us) <
> tha...@gm...> wrote: > Hi Jost...
>
> www.ishafoundation.org www.projectgreenhands.org www.bootcd.us
> www.ecobuddy.in ---------------------...
>
> php-java-bridge-users mailing list
> php...@li... https://lists.sourcef...
>
> ------------------------------------------------------------------------------
> _______________________________________________
> php-java-bridge-users mailing list
> php...@li...
> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
>
--
www.ishafoundation.org
www.projectgreenhands.org
www.bootcd.us
www.ecobuddy.in
|
|
From: <php...@li...> - 2009-04-18 10:24:18
|
The change will be in version 5.4.4.2.
I have tested this with:
<?php require_once("java/Java.inc");
$ctx = java_context();
$rd =
$ctx->getServletContext()->getRequestDispatcher("/sessionSharing.jsp");
$rd->include($ctx->getHttpServletRequest(),$ctx->getHttpServletResponse());
echo "test jsp output include";
?>
A rc will be available for download.
Regards,
Jost Boekemeier
Apr 18, 2009 10:52 vorm. schrieb am "Jost Bekemeier" <
jos...@go...>:
Well, since RequestDispatcher.include() passes the included arguments via a
different channel, they are discarded, as the bridge only uses the official
API (request.getRequestURI() etc). But include() passes them via properties:
javax,servlet.include.request_uri, context_path, servlet_path, path_info and
query_string.
I don't know who designed this part of the javax.servlet spec, but I think
this design is complete nonsense. A servlet should not care whether or not
it has been invoked via an include.
I will add code to our servlet which checks and uses the
javax.servlet.include.* request properties if necessary.
Regards,
Jost Boekemeier
Apr 18, 2009 1:14 vorm. schrieb am <
php...@li...>:
Hi Everyone,
I was wondering if anyone has installed PHP JavaBridge into Tomcat 5 and
gotten Apache-style serverside includes (SSI) to work with PHP?
<!--#inlcude virtual="myinclude.php" -->
My web.xml has the SSI servlet enabled. I can include regular *.html files
into each other, but when I try to include the output of a php script, it
included the content of my original page.
I'm really at a loss.
Thanks for your help,
Don
------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today.
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|
|
From: <php...@li...> - 2009-04-18 08:52:54
|
Well, since RequestDispatcher.include() passes the included arguments via a different channel, they are discarded, as the bridge only uses the official API (request.getRequestURI() etc). But include() passes them via properties: javax,servlet.include.request_uri, context_path, servlet_path, path_info and query_string. I don't know who designed this part of the javax.servlet spec, but I think this design is complete nonsense. A servlet should not care whether or not it has been invoked via an include. I will add code to our servlet which checks and uses the javax.servlet.include.* request properties if necessary. Regards, Jost Boekemeier Apr 18, 2009 1:14 vorm. schrieb am < php...@li...>: Hi Everyone, I was wondering if anyone has installed PHP JavaBridge into Tomcat 5 and gotten Apache-style serverside includes (SSI) to work with PHP? <!--#inlcude virtual="myinclude.php" --> My web.xml has the SSI servlet enabled. I can include regular *.html files into each other, but when I try to include the output of a php script, it included the content of my original page. I'm really at a loss. Thanks for your help, Don ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
|
From: <php...@li...> - 2009-04-17 23:13:28
|
Hi Everyone, I was wondering if anyone has installed PHP JavaBridge into Tomcat 5 and gotten Apache-style serverside includes (SSI) to work with PHP? <!--#inlcude virtual="myinclude.php" --> My web.xml has the SSI servlet enabled. I can include regular *.html files into each other, but when I try to include the output of a php script, it included the content of my original page. I'm really at a loss. Thanks for your help, Don |
|
From: <php...@li...> - 2009-04-17 15:36:32
|
I don't think that tools exist which can translate a java example to PHP
code. But since both languages use a similar syntax, you can translate it
yourself. Just use java(...)->... to access a procedure or const within a
class and new java(...) to create an instance.
So the first statements of your code would be (provided that you have copied
the fop libs to the WEB-INF/lib within JavaBridge.war and deployed it):
<?php require_once("http://.../java/Java.inc");
$fopFactory=java("org.apache.fop.apps.FopFactory");
$foUserAgent=$fopFactory->newFoUserAgent();
...
Apr 16, 2009 8:20 nachm. schrieb am <
php...@li...>:
Hello all,
I've installed FOP 0.95 and PHP-Java-Bridge on my Unix server.
I'd like to create a PDF file from FO file using the ExampleFO2PDF.java
from
http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/examples/embedding/java/embedding/ExampleFO2PDF.java?view=markup
OS: Solaris 10
Server Version: Apache/2.2.9 (Unix) mod_ssl/2.2.9 OpenSSL/0.9.7d
Tomcat : Apache Tomact/6.0.16
PHP: version 5.2.9
PHP-Java-Bridge : version 5.4.3.3
I compiled the the ExampleFO2PDF.java => ExampleFO2PDF.class
and then I created a jar file => ExampleFO2PDF.jar
AFAIK, it's possible to call the Java class from a PHP script using
PHP-Java-Bridge.
Is there anyone who already tried to create a PDF file from FO file using
the ExampleFO2PDF.java I mentioned above ?
Any help would be appreciated.
btw, I can create a PDF file using command line:
fop -fo foo.fo -pdf
foo.pdf
I cann see the pdf file from URL:
http://myhost.com:8080/fop/fop?fo=/opt/coolstack/fop/foo.fo
Al
------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today.
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|
|
From: <php...@li...> - 2009-04-17 13:05:03
|
have you read the tutorials? try it with the java_values() command. like $result = java_values($object->someMethod( 5 ) ); 2009/4/17 <php...@li...> > Hello, > thank you very much. But I have gotten such a strange result: > java_InternalJava Object > ( [__client] => java_Client Object ( [RUNTIME] => Array ( > [NOTICE] => ***USE echo java_inspect(jVal) OR > print_r(java_values(jVal)) TO SEE THE CONTENTS OF THIS JAVA OBJECT!*** > [PIPE_DIR] => [PARSER] => NATIVE ) [result] => [exception] > => [parser] => java_Parser Object ( [ENABLE_NATIVE] => 1 > [DISABLE_SIMPLE] => [parser] => java_NativeParser Object ( > [parser] => Resource id #2 [handler] => java_Client Object > *RECURSION* [level] => 0 [event] => 1 [buf] => > ) > > ) > > [simpleArg] => java_Arg Object > ( > [client] => java_Client Object > *RECURSION* > [exception] => > [factory] => java_SimpleFactory Object > ( > [client] => java_Client Object > *RECURSION* > ) > > [val] => 3 > [signature] => [I > ) > > [compositeArg] => > [simpleFactory] => java_SimpleFactory Object > ( > [client] => java_Client Object > *RECURSION* > ) > > [proxyFactory] => java_ProxyFactory Object > ( > [client] => java_Client Object > *RECURSION* > ) > > [iteratorProxyFacroty] => > [arrayProxyFactory] => java_ArrayProxyFactory Object > ( > [client] => java_Client Object > *RECURSION* > ) > > [exceptionProxyFactory] => java_ExceptionProxyFactory Object > ( > [client] => java_Client Object > *RECURSION* > ) > > [throwExceptionProxyFactory] => java_ThrowExceptionProxyFactory > Object > ( > [client] => java_Client Object > *RECURSION* > ) > > [arg] => java_Arg Object > ( > [client] => java_Client Object > *RECURSION* > [exception] => > [factory] => java_SimpleFactory Object > ( > [client] => java_Client Object > *RECURSION* > ) > > [val] => 3 > [signature] => [I > ) > > [asyncCtx] => 3 > [cancelProxyCreationCounter] => 0 > [globalRef] => java_GlobalRef Object > ( > [map] => Array > ( > ) > > ) > > [stack] => > [defaultCache] => Array > ( > ) > > [asyncCache] => Array > ( > ) > > [methodCache] => Array > ( > [&@Arrayausgabe] => java_CacheEntry Object > ( > [fmt] => > [signature] => Arrayausgabe > [factory] => java_ProxyFactory Object > ( > [client] => java_Client Object > *RECURSION* > ) > > [java] => > [resultVoid] => > ) > > [@Arrayausgabe@meinArray@i] => java_CacheEntry Object > ( > [fmt] => > [signature] => [I > [factory] => java_ArrayProxyFactory Object > ( > [client] => java_Client Object > *RECURSION* > ) > > [java] => > [resultVoid] => > ) > > ) > > [isAsync] => 0 > [currentCacheKey] => > [currentArgumentsFormat] => > [cachedJavaPrototype] => java_JavaProxyProxy Object ( [__client] > => java_Client Object *RECURSION* [__delegate] => [__serialID] > => [__factory] => [__java] => [__signature] => > [__cancelProxyCreationTag] => ) [sendBuffer] => > [preparedToSendBuffer] => [protocol] => java_Protocol Object ( > [client] => java_Client Object *RECURSION* [webContext] => > /Ordner/arrayausgabe.php.phpjavabridge [serverName] => > 127.0.0.1:8081 [socketHandler] => java_SocketHandler Object ( > [protocol] => java_Protocol Object *RECURSION* [channel] => > java_SocketChannel Object ( [peer] => Resource id #3 [protocol] > => java_Protocol Object *RECURSION* [channelName:private] => 9267 > [host:private] => 127.0.0.1 ) ) [handler] => > java_SimpleHttpHandler Object ( [headers] => [redirect] => > [context] => X_JAVABRIDGE_CONTEXT: > 1@C%3A%5CDevelopment%5Capache-tomcat-6.0.18%5Cwebapps%5COrdner [ssl] > => [port] => 8081 [host] => 127.0.0.1 [protocol] => > java_Protocol Object *RECURSION* [channel] => java_SocketChannel > Object ( [peer] => Resource id #3 [protocol] => java_Protocol > Object *RECURSION* [channelName:private] => 9267 [host:private] > => 127.0.0.1 ) ) ) [iteratorProxyFactory] => > java_IteratorProxyFactory Object ( [client] => java_Client Object > *RECURSION* ) [idx] => 0 ) [__delegate] => java_ArrayProxy Object > ( [__serialID] => [__java] => 3 [__signature] => [I [__client] > => java_Client Object ( [RUNTIME] => Array ( [NOTICE] => > ***USE echo java_inspect(jVal) OR print_r(java_values(jVal)) TO SEE THE > CONTENTS OF THIS JAVA OBJECT!*** [PIPE_DIR] => [PARSER] => NATIVE > ) [result] => [exception] => [parser] => java_Parser Object ( > [ENABLE_NATIVE] => 1 [DISABLE_SIMPLE] => [parser] => > java_NativeParser Object ( [parser] => Resource id #2 [handler] > => java_Client Object *RECURSION* [level] => 0 [event] => 1 > [buf] => > ) > > ) > > [simpleArg] => java_Arg Object > ( > [client] => java_Client Object > *RECURSION* > [exception] => > [factory] => java_SimpleFactory Object > ( > [client] => java_Client Object > *RECURSION* > ) > > [val] => 3 > [signature] => [I > ) > > [compositeArg] => > [simpleFactory] => java_SimpleFactory Object > ( > [client] => java_Client Object > *RECURSION* > ) > > [proxyFactory] => java_ProxyFactory Object > ( > [client] => java_Client Object > *RECURSION* > ) > > [iteratorProxyFacroty] => > [arrayProxyFactory] => java_ArrayProxyFactory Object > ( > [client] => java_Client Object > *RECURSION* > ) > > [exceptionProxyFactory] => java_ExceptionProxyFactory > Object > ( > [client] => java_Client Object > *RECURSION* > ) > > [throwExceptionProxyFactory] => > java_ThrowExceptionProxyFactory Object > ( > [client] => java_Client Object > *RECURSION* > ) > > [arg] => java_Arg Object > ( > [client] => java_Client Object > *RECURSION* > [exception] => > [factory] => java_SimpleFactory Object > ( > [client] => java_Client Object > *RECURSION* > ) > > [val] => 3 > [signature] => [I > ) > > [asyncCtx] => 3 > [cancelProxyCreationCounter] => 0 > [globalRef] => java_GlobalRef Object > ( > [map] => Array > ( > ) > > ) > > [stack] => > [defaultCache] => Array > ( > ) > > [asyncCache] => Array > ( > ) > > [methodCache] => Array > ( > [&@Arrayausgabe] => java_CacheEntry Object > ( > [fmt] => > [signature] => Arrayausgabe > [factory] => java_ProxyFactory Object > ( > [client] => java_Client Object > *RECURSION* > ) > > [java] => > [resultVoid] => > ) > > [@Arrayausgabe@meinArray@i] => java_CacheEntry > Object > ( > [fmt] => > [signature] => [I > [factory] => java_ArrayProxyFactory > Object > ( > [client] => java_Client Object > *RECURSION* > ) > > [java] => > [resultVoid] => > ) > > ) > > [isAsync] => 0 > [currentCacheKey] => > [currentArgumentsFormat] => > [cachedJavaPrototype] => java_JavaProxyProxy Object ( [__client] > => java_Client Object *RECURSION* [__delegate] => [__serialID] > => [__factory] => [__java] => [__signature] => > [__cancelProxyCreationTag] => ) [sendBuffer] => > [preparedToSendBuffer] => [protocol] => java_Protocol Object ( > [client] => java_Client Object *RECURSION* [webContext] => > /Ordner/arrayausgabe.php.phpjavabridge [serverName] => > 127.0.0.1:8081 [socketHandler] => java_SocketHandler Object ( > [protocol] => java_Protocol Object *RECURSION* [channel] => > java_SocketChannel Object ( [peer] => Resource id #3 [protocol] > => java_Protocol Object *RECURSION* [channelName:private] => 9267 > [host:private] => 127.0.0.1 ) ) [handler] => > java_SimpleHttpHandler Object ( [headers] => [redirect] => > [context] => X_JAVABRIDGE_CONTEXT: > 1@C%3A%5CDevelopment%5Capache-tomcat-6.0.18%5Cwebapps%5COrdner [ssl] > => [port] => 8081 [host] => 127.0.0.1 [protocol] => > java_Protocol Object *RECURSION* [channel] => java_SocketChannel > Object ( [peer] => Resource id #3 [protocol] => java_Protocol > Object *RECURSION* [channelName:private] => 9267 [host:private] > => 127.0.0.1 ) ) ) [iteratorProxyFactory] => > java_IteratorProxyFactory Object ( [client] => java_Client Object > *RECURSION* ) [idx] => 0 ) [__tempGlobalRef] => ) [__serialID] > => [__factory] => [__java] => 3 [__signature] => [I > [__cancelProxyCreationTag] => ) > > > > > > > > ------------------------------------------------------------------------------ > Stay on top of everything new and different, both inside and > around Java (TM) technology - register by April 22, and save > $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. > 300 plus technical and hands-on sessions. Register today. > Use priority code J9JMT32. http://p.sf.net/sfu/p > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |
|
From: <php...@li...> - 2009-04-17 12:22:15
|
Hello,
thank you very much. But I have gotten such a strange result:
java_InternalJava Object
( [__client] => java_Client Object ( [RUNTIME] => Array (
[NOTICE] => ***USE echo java_inspect(jVal) OR
print_r(java_values(jVal)) TO SEE THE CONTENTS OF THIS JAVA OBJECT!***
[PIPE_DIR] => [PARSER] => NATIVE ) [result] => [exception]
=> [parser] => java_Parser Object ( [ENABLE_NATIVE] => 1
[DISABLE_SIMPLE] => [parser] => java_NativeParser Object (
[parser] => Resource id #2 [handler] => java_Client Object
*RECURSION* [level] => 0 [event] => 1 [buf] =>
)
)
[simpleArg] => java_Arg Object
(
[client] => java_Client Object
*RECURSION*
[exception] =>
[factory] => java_SimpleFactory Object
(
[client] => java_Client Object
*RECURSION*
)
[val] => 3
[signature] => [I
)
[compositeArg] =>
[simpleFactory] => java_SimpleFactory Object
(
[client] => java_Client Object
*RECURSION*
)
[proxyFactory] => java_ProxyFactory Object
(
[client] => java_Client Object
*RECURSION*
)
[iteratorProxyFacroty] =>
[arrayProxyFactory] => java_ArrayProxyFactory Object
(
[client] => java_Client Object
*RECURSION*
)
[exceptionProxyFactory] => java_ExceptionProxyFactory Object
(
[client] => java_Client Object
*RECURSION*
)
[throwExceptionProxyFactory] => java_ThrowExceptionProxyFactory Object
(
[client] => java_Client Object
*RECURSION*
)
[arg] => java_Arg Object
(
[client] => java_Client Object
*RECURSION*
[exception] =>
[factory] => java_SimpleFactory Object
(
[client] => java_Client Object
*RECURSION*
)
[val] => 3
[signature] => [I
)
[asyncCtx] => 3
[cancelProxyCreationCounter] => 0
[globalRef] => java_GlobalRef Object
(
[map] => Array
(
)
)
[stack] =>
[defaultCache] => Array
(
)
[asyncCache] => Array
(
)
[methodCache] => Array
(
[&@Arrayausgabe] => java_CacheEntry Object
(
[fmt] =>
[signature] => Arrayausgabe
[factory] => java_ProxyFactory Object
(
[client] => java_Client Object
*RECURSION*
)
[java] =>
[resultVoid] =>
)
[@Arrayausgabe@meinArray@i] => java_CacheEntry Object
(
[fmt] =>
[signature] => [I
[factory] => java_ArrayProxyFactory Object
(
[client] => java_Client Object
*RECURSION*
)
[java] =>
[resultVoid] =>
)
)
[isAsync] => 0
[currentCacheKey] =>
[currentArgumentsFormat] =>
[cachedJavaPrototype] => java_JavaProxyProxy Object ( [__client]
=> java_Client Object *RECURSION* [__delegate] => [__serialID]
=> [__factory] => [__java] => [__signature] =>
[__cancelProxyCreationTag] => ) [sendBuffer] =>
[preparedToSendBuffer] => [protocol] => java_Protocol Object (
[client] => java_Client Object *RECURSION* [webContext] =>
/Ordner/arrayausgabe.php.phpjavabridge [serverName] =>
127.0.0.1:8081 [socketHandler] => java_SocketHandler Object (
[protocol] => java_Protocol Object *RECURSION* [channel] =>
java_SocketChannel Object ( [peer] => Resource id #3 [protocol]
=> java_Protocol Object *RECURSION* [channelName:private] => 9267
[host:private] => 127.0.0.1 ) ) [handler] =>
java_SimpleHttpHandler Object ( [headers] => [redirect] =>
[context] => X_JAVABRIDGE_CONTEXT:
1@C%3A%5CDevelopment%5Capache-tomcat-6.0.18%5Cwebapps%5COrdner [ssl]
=> [port] => 8081 [host] => 127.0.0.1 [protocol] =>
java_Protocol Object *RECURSION* [channel] => java_SocketChannel
Object ( [peer] => Resource id #3 [protocol] => java_Protocol
Object *RECURSION* [channelName:private] => 9267 [host:private]
=> 127.0.0.1 ) ) ) [iteratorProxyFactory] =>
java_IteratorProxyFactory Object ( [client] => java_Client Object
*RECURSION* ) [idx] => 0 ) [__delegate] => java_ArrayProxy Object
( [__serialID] => [__java] => 3 [__signature] => [I [__client]
=> java_Client Object ( [RUNTIME] => Array ( [NOTICE] =>
***USE echo java_inspect(jVal) OR print_r(java_values(jVal)) TO SEE THE
CONTENTS OF THIS JAVA OBJECT!*** [PIPE_DIR] => [PARSER] => NATIVE
) [result] => [exception] => [parser] => java_Parser Object (
[ENABLE_NATIVE] => 1 [DISABLE_SIMPLE] => [parser] =>
java_NativeParser Object ( [parser] => Resource id #2 [handler]
=> java_Client Object *RECURSION* [level] => 0 [event] => 1
[buf] =>
)
)
[simpleArg] => java_Arg Object
(
[client] => java_Client Object
*RECURSION*
[exception] =>
[factory] => java_SimpleFactory Object
(
[client] => java_Client Object
*RECURSION*
)
[val] => 3
[signature] => [I
)
[compositeArg] =>
[simpleFactory] => java_SimpleFactory Object
(
[client] => java_Client Object
*RECURSION*
)
[proxyFactory] => java_ProxyFactory Object
(
[client] => java_Client Object
*RECURSION*
)
[iteratorProxyFacroty] =>
[arrayProxyFactory] => java_ArrayProxyFactory Object
(
[client] => java_Client Object
*RECURSION*
)
[exceptionProxyFactory] => java_ExceptionProxyFactory Object
(
[client] => java_Client Object
*RECURSION*
)
[throwExceptionProxyFactory] => java_ThrowExceptionProxyFactory Object
(
[client] => java_Client Object
*RECURSION*
)
[arg] => java_Arg Object
(
[client] => java_Client Object
*RECURSION*
[exception] =>
[factory] => java_SimpleFactory Object
(
[client] => java_Client Object
*RECURSION*
)
[val] => 3
[signature] => [I
)
[asyncCtx] => 3
[cancelProxyCreationCounter] => 0
[globalRef] => java_GlobalRef Object
(
[map] => Array
(
)
)
[stack] =>
[defaultCache] => Array
(
)
[asyncCache] => Array
(
)
[methodCache] => Array
(
[&@Arrayausgabe] => java_CacheEntry Object
(
[fmt] =>
[signature] => Arrayausgabe
[factory] => java_ProxyFactory Object
(
[client] => java_Client Object
*RECURSION*
)
[java] =>
[resultVoid] =>
)
[@Arrayausgabe@meinArray@i] => java_CacheEntry Object
(
[fmt] =>
[signature] => [I
[factory] => java_ArrayProxyFactory Object
(
[client] => java_Client Object
*RECURSION*
)
[java] =>
[resultVoid] =>
)
)
[isAsync] => 0
[currentCacheKey] =>
[currentArgumentsFormat] =>
[cachedJavaPrototype] => java_JavaProxyProxy Object ( [__client]
=> java_Client Object *RECURSION* [__delegate] => [__serialID]
=> [__factory] => [__java] => [__signature] =>
[__cancelProxyCreationTag] => ) [sendBuffer] =>
[preparedToSendBuffer] => [protocol] => java_Protocol Object (
[client] => java_Client Object *RECURSION* [webContext] =>
/Ordner/arrayausgabe.php.phpjavabridge [serverName] =>
127.0.0.1:8081 [socketHandler] => java_SocketHandler Object (
[protocol] => java_Protocol Object *RECURSION* [channel] =>
java_SocketChannel Object ( [peer] => Resource id #3 [protocol]
=> java_Protocol Object *RECURSION* [channelName:private] => 9267
[host:private] => 127.0.0.1 ) ) [handler] =>
java_SimpleHttpHandler Object ( [headers] => [redirect] =>
[context] => X_JAVABRIDGE_CONTEXT:
1@C%3A%5CDevelopment%5Capache-tomcat-6.0.18%5Cwebapps%5COrdner [ssl]
=> [port] => 8081 [host] => 127.0.0.1 [protocol] =>
java_Protocol Object *RECURSION* [channel] => java_SocketChannel
Object ( [peer] => Resource id #3 [protocol] => java_Protocol
Object *RECURSION* [channelName:private] => 9267 [host:private]
=> 127.0.0.1 ) ) ) [iteratorProxyFactory] =>
java_IteratorProxyFactory Object ( [client] => java_Client Object
*RECURSION* ) [idx] => 0 ) [__tempGlobalRef] => ) [__serialID]
=> [__factory] => [__java] => 3 [__signature] => [I
[__cancelProxyCreationTag] => )
|
|
From: <php...@li...> - 2009-04-17 11:51:16
|
just guessing, but have you tried
$object = new java("Arrayausgabe");
$result = $object->meinArray(5);
print_r($result);
?
2009/4/17 <php...@li...>
> Hello,
> does anyone have an idea how to access this class from php?
>
> public class Arrayausgabe{
>
> public int[] meinArray(int wert){
> int a=wert;
> int Array[]=new int[5];
> Array[0]=a;
> Array[1]=a+1;
> Array[2]=a+2;
> Array[3]=a+5;
> Array[4]=a+9;
> return Array;
> }
> }
>
>
>
> Well,
> <?php
> require_once("http://localhost:8081/Ordner/java/Java.inc");
> $System = java("java.lang.System");
> $object = new java("Arrayausgabe");
> ????????????????????????????????
> ?>
>
> Thanks in advance!!!!!!!!!!!!!
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> Stay on top of everything new and different, both inside and
> around Java (TM) technology - register by April 22, and save
> $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
> 300 plus technical and hands-on sessions. Register today.
> Use priority code J9JMT32. http://p.sf.net/sfu/p
> _______________________________________________
> php-java-bridge-users mailing list
> php...@li...
> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
>
|
|
From: <php...@li...> - 2009-04-17 11:34:09
|
Hello,
does anyone have an idea how to access this class from php?
public class Arrayausgabe{
public int[] meinArray(int wert){
int a=wert;
int Array[]=new int[5];
Array[0]=a;
Array[1]=a+1;
Array[2]=a+2;
Array[3]=a+5;
Array[4]=a+9;
return Array;
}
}
Well,
<?php
require_once("http://localhost:8081/Ordner/java/Java.inc");
$System = java("java.lang.System");
$object = new java("Arrayausgabe");
????????????????????????????????
?>
Thanks in advance!!!!!!!!!!!!!
|
|
From: <php...@li...> - 2009-04-16 18:19:55
|
Hello all, I've installed FOP 0.95 and PHP-Java-Bridge on my Unix server. I'd like to create a PDF file from FO file using the ExampleFO2PDF.java from http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/examples/embedding/java/embedding/ExampleFO2PDF.java?view=markup OS: Solaris 10 Server Version: Apache/2.2.9 (Unix) mod_ssl/2.2.9 OpenSSL/0.9.7d Tomcat : Apache Tomact/6.0.16 PHP: version 5.2.9 PHP-Java-Bridge : version 5.4.3.3 I compiled the the ExampleFO2PDF.java => ExampleFO2PDF.class and then I created a jar file => ExampleFO2PDF.jar AFAIK, it's possible to call the Java class from a PHP script using PHP-Java-Bridge. Is there anyone who already tried to create a PDF file from FO file using the ExampleFO2PDF.java I mentioned above ? Any help would be appreciated. btw, I can create a PDF file using command line: fop -fo foo.fo -pdf foo.pdf I cann see the pdf file from URL: http://myhost.com:8080/fop/fop?fo=/opt/coolstack/fop/foo.fo Al |
|
From: <php...@li...> - 2009-04-14 15:54:01
|
VERSION 5.4.3.3 is available from the usual places, for example from https://sourceforge.net/project/showfiles.php?group_id=117793&package_id=232650 If a java/Java.inc is missing, it will created, in necessary. Please see the NEWS file for the reason. Regards, Jost Boekemeier -- Apr 14, 2009 9:02 vorm. schrieb am < php...@li...>: Why there are only 2 folders (META-INF and WEB-INF) in php-java-bridge_5.4.4.2_TESTING ( Don't we also need for example the folder "java"?) ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
|
From: <php...@li...> - 2009-04-14 07:01:53
|
Why there are only 2 folders (META-INF and WEB-INF) in
php-java-bridge_5.4.4.2_TESTING ( Don't we also need for example the folder "java"?)
|
|
From: <php...@li...> - 2009-04-14 06:26:44
|
Hello,
thank you for your answer. I think you are right and I used the false version of php java bridge.
You suggest to use the version 5.4.3.3 for Windows . But I could not find it in downloads (there are only 3 versions: 5.4.4.2,5.4.4.1 and 5.4.4)
|
|
From: <php...@li...> - 2009-04-11 13:21:08
|
The code is in the cvs head for testing. I will release it at the end of the month. * Short path for jsr223 script engines * Short path for fastcgi * Corrected shutdown sequence (5.4.4 "hanging after fatal error") * Automatic Java.inc loading (can be switched off) Regards, Jost Boekemeier -- |
|
From: <php...@li...> - 2009-04-11 09:57:21
|
Hi, Thank you very much for the bug report, It seems that versions 5.4.4 and above are completely broken, scripts which throw exceptions or generate a fatal error do not go through client->__destruct(), which in turn may be due to a php bug. Previous versions used to handle this case, but since 5.4.4 this code has been "cleaned up". Please do not use version 5.4.4 on non-linux operating systems. Please use version 5.4.3.3 instead. I will remove the 5.4.4 JEE binary from the download section. However, the debian and fedora downloads don't have this problem; they use named pipes instead of pfsockopen(). Regards, Jost Boekemeier -- Apr 11, 2009 9:22 vorm. schrieb am < php...@li...>: Which version of the PHP/Java Bridge are you using? The bridge throws a proper exception if the .jar file is not found. ------------------------------------------------------------------------------ This SF.ne... |
|
From: <php...@li...> - 2009-04-11 07:22:11
|
Which version of the PHP/Java Bridge are you using?
The bridge throws a proper exception if the .jar file is not found.
|
|
From: <php...@li...> - 2009-04-08 15:22:50
|
Since the jar is in the class path, require()ing it again would violate the module contract. It is a java platform issue. There is a proposal for a java module system, but I am not sure when or if sun is going to implement it. Please do not use java_require(), not with our bridge and not with other bridges, this feature cannot be implemented properly. Please use tomcat hot deployment instead. It has similar issues, but at least we dont get support requests if tomcat classloading fails. Apr 8, 2009 5:06 nachm. schrieb am < php...@li...>: Hi, I noticed that if I delete the numberguess.jar the programm works anyway. It means that the jar does not have any influence on the php-code. I don't understand this strange thing.... ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
|
From: <php...@li...> - 2009-04-08 15:06:00
|
Hi,
I noticed that if I delete the numberguess.jar the programm works anyway. It means that the jar does not have any influence on the php-code. I don't understand this strange thing....
|
|
From: <php...@li...> - 2009-04-08 14:22:06
|
Thank you Jost. I'll give it a try.
Charles Shaffer
Senior Analyst
NTN-Bower Corporation
php...@li...
04/08/2009 08:18 AM
Please respond to php-java-bridge-users
To: php...@li...
cc:
Subject: Re: [Php-java-bridge-users] Passing arrays
The java method can handle varargs:
new java(array("java.lang.String", ...)) should work.
For method invocation there is a invokeMethod() method within JavaClient:
__javaproxy_client_getClient()->invokeMethod(oid, method, argarray)
oid is $obj->__java, method a string and argarray the argument array.
Maybe we should make this an official API.
Regards,
Jost Boekemeier
--
Apr 8, 2009 2:56 nachm. schrieb am <
php...@li...>:
I am using the java bridge to call routines on the database server from
php through java. After writing several of these, I have noticed that
most of the calls could be generalized if there were a way of passing a
variable number of parameters. I remember in C you could use argc, *argv[
]. The question comes up. Can you pass a pointer to an array in PHP to
Java using the java bridge? Has anyone done anything like this with the
java bridge? Work around?
Charles Shaffer
Senior Analyst
NTN-Bower Corporation
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|
|
From: <php...@li...> - 2009-04-08 13:18:51
|
The java method can handle varargs:
new java(array("java.lang.String", ...)) should work.
For method invocation there is a invokeMethod() method within JavaClient:
__javaproxy_client_getClient()->invokeMethod(oid, method, argarray)
oid is $obj->__java, method a string and argarray the argument array.
Maybe we should make this an official API.
Regards,
Jost Boekemeier
--
Apr 8, 2009 2:56 nachm. schrieb am <
php...@li...>:
I am using the java bridge to call routines on the database server from
php through java. After writing several of these, I have noticed that
most of the calls could be generalized if there were a way of passing a
variable number of parameters. I remember in C you could use argc, *argv[
]. The question comes up. Can you pass a pointer to an array in PHP to
Java using the java bridge? Has anyone done anything like this with the
java bridge? Work around?
Charles Shaffer
Senior Analyst
NTN-Bower Corporation
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|
|
From: <php...@li...> - 2009-04-08 12:55:46
|
I am using the java bridge to call routines on the database server from php through java. After writing several of these, I have noticed that most of the calls could be generalized if there were a way of passing a variable number of parameters. I remember in C you could use argc, *argv[ ]. The question comes up. Can you pass a pointer to an array in PHP to Java using the java bridge? Has anyone done anything like this with the java bridge? Work around? Charles Shaffer Senior Analyst NTN-Bower Corporation |