You can subscribe to this list here.
| 2004 | Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep (6) | Oct (6) | Nov (8) | Dec (2) | 
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2005 | Jan (19) | Feb (15) | Mar (10) | Apr (8) | May (7) | Jun (9) | Jul (13) | Aug (31) | Sep (111) | Oct (52) | Nov (72) | Dec (42) | 
| 2006 | Jan (21) | Feb (32) | Mar (33) | Apr (24) | May (15) | Jun (40) | Jul (32) | Aug (19) | Sep (38) | Oct (37) | Nov (63) | Dec (37) | 
| 2007 | Jan (18) | Feb (39) | Mar (69) | Apr (49) | May (71) | Jun (59) | Jul (71) | Aug (85) | Sep (46) | Oct (14) | Nov (25) | Dec (56) | 
| 2008 | Jan (24) | Feb (77) | Mar (104) | Apr (44) | May (41) | Jun (11) | Jul (31) | Aug (59) | Sep (44) | Oct (86) | Nov (66) | Dec (93) | 
| 2009 | Jan (88) | Feb (41) | Mar (49) | Apr (135) | May (22) | Jun (31) | Jul (60) | Aug (71) | Sep (76) | Oct (18) | Nov (52) | Dec (20) | 
| 2010 | Jan (8) | Feb (50) | Mar (35) | Apr (48) | May (46) | Jun (84) | Jul (38) | Aug (61) | Sep (51) | Oct (31) | Nov (17) | Dec (18) | 
| 2011 | Jan (51) | Feb (14) | Mar (17) | Apr (23) | May (15) | Jun (11) | Jul (5) | Aug (5) | Sep (15) | Oct (8) | Nov (5) | Dec (25) | 
| 2012 | Jan (2) | Feb (4) | Mar (6) | Apr (9) | May (27) | Jun (32) | Jul (36) | Aug (10) | Sep (16) | Oct (3) | Nov (13) | Dec (7) | 
| 2013 | Jan (1) | Feb (4) | Mar | Apr (1) | May | Jun (2) | Jul | Aug (1) | Sep (4) | Oct (2) | Nov (1) | Dec | 
| 2014 | Jan | Feb | Mar (2) | Apr (1) | May (2) | Jun (9) | Jul (5) | Aug (2) | Sep (4) | Oct | Nov | Dec | 
| 2015 | Jan (3) | Feb (2) | Mar (4) | Apr (3) | May (1) | Jun (2) | Jul | Aug (2) | Sep (5) | Oct (1) | Nov | Dec | 
| 2016 | Jan | Feb (5) | Mar | Apr | May | Jun | Jul | Aug (5) | Sep (3) | Oct | Nov | Dec | 
| 2017 | Jan (6) | Feb | Mar | Apr (10) | May (2) | Jun | Jul | Aug | Sep | Oct (1) | Nov (1) | Dec | 
| 2018 | Jan (2) | Feb (5) | Mar | Apr | May (1) | Jun (3) | Jul | Aug | Sep | Oct | Nov | Dec | 
| 2019 | Jan | Feb (1) | Mar | Apr | May | Jun | Jul (1) | Aug (1) | Sep | Oct | Nov | Dec | 
| 2020 | Jan | Feb (2) | Mar | Apr | May | Jun | Jul | Aug | Sep (2) | Oct | Nov | Dec | 
| 2021 | Jan (5) | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec | 
| 2023 | Jan | Feb (2) | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec | 
| 
      
      
      From: <php...@li...> - 2009-04-21 09:58:21
      
     | 
| Jost,
I tryed to add "v.addAll" to my javacode but it did  not work . try/catch did not help too much. I can invoke the method in php on the same way as it were only an array,can't I?(with java_values and so on) 
      
 | 
| 
      
      
      From: <php...@li...> - 2009-04-21 09:40:30
      
     | 
| Hello Jost,
thank you very much for your advice.
I've tried to put my class (ExampleFO2PDF.class) to 
/opt/coolstack/tomcat6/webapps/JavaBridge/WEB-INF/classes
(since I'm running Tomcat port 8080), but still without success.
I've still got error :  java.lang.ClassNotFoundException:embedding.ExampleFO2PDF
It seems, I have problem with the Java classes, I'm not expert in Java,
hence I will learn, how to create/modify classes/classpath in Java, then I will try again
this example.
thank you for your help.
Al
--- On Mon, 4/20/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: Monday, April 20, 2009, 3:16 AM
Hi,
If it is true that
  java emb.FPDF
works, then it is also true that:
  java -jar JavaBridge.jar SERVLET:8090 3 jb.log &
  echo '<?php require("http://localhost:8090/JavaBridge/java/Java.inc");java("emb.FPDF")->main(array());?>'
| php -dallow_url_include=On
works.
Everything else is guesswork.
Please copy your classes to JavaBridge.war's WEB-INF/classes and your
libraries to its WEB-INF/lib and re-deploy the modified JavaBridge.war.
After that use the above PHP code to test (change the port nr to 8080 or
whichever port your j2ee server listens on).
There's a user-contributed video on our web site which shows how to work
with tomcat: http://php-java-bridge.sourceforge.net/pjb/installation.php
Regards,
Jost Boekemeier
Apr 20, 2009 11:17 vorm. schrieb am <
php...@li...>:
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 langu...
------------------------------------------------------------------------------
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-21 08:42:23
      
     | 
| 1. If you surround yor php code with a try/catch, you can tell at which
position the exception is thrown
2. You have called addList with two args, which caused this exception
Apr 21, 2009 10:34 vorm. schrieb am <
php...@li...>:
If my javacode looks like this:
import java.util.ArrayList;
public class List {
        public ArrayList addList(){
        ArrayList v = new ArrayList();
       v.add("a");
       v.add("b");
    return v;
    }
    }
Should I have in phpcode 2 times "java_values($object->addList)"???????????
------------------------------------------------------------------------------
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-21 08:28:44
      
     | 
| If my javacode looks like this:
import java.util.ArrayList;
public class List {
        public ArrayList addList(){
        ArrayList v = new ArrayList();
        
       v.add("a");
       v.add("b");
    return v;
    }
    }
Should I have in phpcode 2 times "java_values($object->addList)"???????????
      
 | 
| 
      
      
      From: <php...@li...> - 2009-04-21 08:16:40
      
     | 
| Probably because addList($str,$str) doesn't exist in your java code. Please see the error message for details. Regards, Jost Boekemeier Apr 21, 2009 9:55 vorm. schrieb am < php...@li...>: Hello, why do I get such an error message: root cause java.lang.RuntimeException: PHP Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: Invoke failed: [[o:List]]->addList([o:PhpParserString], [o:PhpParserString]). Cause: java.lang.NoSuchMethodException: addList([o:PhpParserString], [o:PhpParserString]). Candidates: [public java.util.ArrayList List.addList()] VM: 1.6.0_10@http://java.sun.com/" at: #-6 php.java.bridge.JavaBridge.checkM(JavaBridge.java:1119) #-5 php.java.bridge.JavaBridge.Invoke(JavaBridge.java:1057) #-4 php.java.bridge.Request.handleRequest(Request.java:414) #-3 php.java.bridge.Request.handleRequests(Request.java:490) #-2 php.java.bridge.http.ContextRunner.run(ContextRunner.java:146) #-1 php.java.bridge.ThreadPool$Delegate.run(ThreadPool.java:60) #0 http://localhost:8081/Ordner/java/Java.inc(248): java_ThrowExceptionProxyFactory->getProxy(3, 'List', 'addList([o:PhpP...', true) #1 http://localhost:8081/Ordner/java/Java.inc(388): java_Arg->getResult(true) #2 http://localhost:8081/Ordner/java/Java.inc(394): java_Client->getWrappedResult(true) #3 http://localhost:8081/Ordner/java/Java.i in http://localhost:8081/Ordner/java/Java.inc on line 215 php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.parseBody(FastCGIServlet.java:484) php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.doExecute(FastCGIServlet.java:379) php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.execute(FastCGIServlet.java:387) php.java.servlet.CGIServlet.handle(CGIServlet.java:399) php.java.servlet.PhpCGIServlet.handle(PhpCGIServlet.java:382) php.java.servlet.CGIServlet.doGet(CGIServlet.java:469) javax.servlet.http.HttpServlet.service(HttpServlet.java:617) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) I use the method "addList" in my Java code.... ------------------------------------------------------------------------------ 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-21 07:54:45
      
     | 
| Hello, why do I get such an error message: root cause java.lang.RuntimeException: PHP Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: Invoke failed: [[o:List]]->addList([o:PhpParserString], [o:PhpParserString]). Cause: java.lang.NoSuchMethodException: addList([o:PhpParserString], [o:PhpParserString]). Candidates: [public java.util.ArrayList List.addList()] VM: 1.6.0_10@http://java.sun.com/" at: #-6 php.java.bridge.JavaBridge.checkM(JavaBridge.java:1119) #-5 php.java.bridge.JavaBridge.Invoke(JavaBridge.java:1057) #-4 php.java.bridge.Request.handleRequest(Request.java:414) #-3 php.java.bridge.Request.handleRequests(Request.java:490) #-2 php.java.bridge.http.ContextRunner.run(ContextRunner.java:146) #-1 php.java.bridge.ThreadPool$Delegate.run(ThreadPool.java:60) #0 http://localhost:8081/Ordner/java/Java.inc(248): java_ThrowExceptionProxyFactory->getProxy(3, 'List', 'addList([o:PhpP...', true) #1 http://localhost:8081/Ordner/java/Java.inc(388): java_Arg->getResult(true) #2 http://localhost:8081/Ordner/java/Java.inc(394): java_Client->getWrappedResult(true) #3 http://localhost:8081/Ordner/java/Java.i in http://localhost:8081/Ordner/java/Java.inc on line 215 php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.parseBody(FastCGIServlet.java:484) php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.doExecute(FastCGIServlet.java:379) php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.execute(FastCGIServlet.java:387) php.java.servlet.CGIServlet.handle(CGIServlet.java:399) php.java.servlet.PhpCGIServlet.handle(PhpCGIServlet.java:382) php.java.servlet.CGIServlet.doGet(CGIServlet.java:469) javax.servlet.http.HttpServlet.service(HttpServlet.java:617) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) I use the method "addList" in my Java code.... | 
| 
      
      
      From: <php...@li...> - 2009-04-20 20:49:40
      
     | 
| This has been fixed in php-java-bridge_5.4.4.2rc1.tar.gz. If there are still issues, please let us know. Apr 20, 2009 12:31 nachm. schrieb am < php...@li...>: Can you tell me which Makefile.am is to be edited? I got two files: php-java-bridge-5.4.4/bin/Makefile.am php-java-bridge-5.4.4/server/Makefile.am btw, is there a method by which rpmbuild can be run for the extracted folder and not need to recreate a tar.gz if I altered any files? I actually edited both files and still I get the same error message when I did rpmbuild of the recreated tar,gz. Warm Regards, Thangaraj On Mon, Apr 20, 2009 at 1:54 PM, < php...@li...> wrote: > Thank you very much for the bug report. > > T... -- www.ishafoundation.org www.projectgreenhands.org www.bootcd.us www.ecobuddy.in ---------------------... | 
| 
      
      
      From: <php...@li...> - 2009-04-20 13:27:27
      
     | 
| Hello, why do I get such an error message: root cause java.lang.RuntimeException: PHP Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: Invoke failed: [[o:List]]->addList([o:PhpParserString], [o:PhpParserString]). Cause: java.lang.NoSuchMethodException: addList([o:PhpParserString], [o:PhpParserString]). Candidates: [public java.util.ArrayList List.addList()] VM: 1.6.0_10@http://java.sun.com/" at: #-6 php.java.bridge.JavaBridge.checkM(JavaBridge.java:1119) #-5 php.java.bridge.JavaBridge.Invoke(JavaBridge.java:1057) #-4 php.java.bridge.Request.handleRequest(Request.java:414) #-3 php.java.bridge.Request.handleRequests(Request.java:490) #-2 php.java.bridge.http.ContextRunner.run(ContextRunner.java:146) #-1 php.java.bridge.ThreadPool$Delegate.run(ThreadPool.java:60) #0 http://localhost:8081/Ordner/java/Java.inc(248): java_ThrowExceptionProxyFactory->getProxy(3, 'List', 'addList([o:PhpP...', true) #1 http://localhost:8081/Ordner/java/Java.inc(388): java_Arg->getResult(true) #2 http://localhost:8081/Ordner/java/Java.inc(394): java_Client->getWrappedResult(true) #3 http://localhost:8081/Ordner/java/Java.i in http://localhost:8081/Ordner/java/Java.inc on line 215 php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.parseBody(FastCGIServlet.java:484) php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.doExecute(FastCGIServlet.java:379) php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.execute(FastCGIServlet.java:387) php.java.servlet.CGIServlet.handle(CGIServlet.java:399) php.java.servlet.PhpCGIServlet.handle(PhpCGIServlet.java:382) php.java.servlet.CGIServlet.doGet(CGIServlet.java:469) javax.servlet.http.HttpServlet.service(HttpServlet.java:617) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) I use the method "addList" in my Java code.... | 
| 
      
      
      From: <php...@li...> - 2009-04-20 10:31:19
      
     | 
| Can you tell me which Makefile.am is to be edited? I got two files: php-java-bridge-5.4.4/bin/Makefile.am php-java-bridge-5.4.4/server/Makefile.am btw, is there a method by which rpmbuild can be run for the extracted folder and not need to recreate a tar.gz if I altered any files? I actually edited both files and still I get the same error message when I did rpmbuild of the recreated tar,gz. Warm Regards, Thangaraj On Mon, Apr 20, 2009 at 1:54 PM, < php...@li...> wrote: > 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 > > ------------------------------------------------------------------------------ > 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 > -- www.ishafoundation.org www.projectgreenhands.org www.bootcd.us www.ecobuddy.in | 
| 
      
      
      From: <php...@li...> - 2009-04-20 10:20:27
      
     | 
| I guess you mean the API doc: http://php-java-bridge.sourceforge.net/pjb/docs/php-api/index.html Regards, Jost Boekemeier Apr 20, 2009 11:31 vorm. schrieb am < php...@li...>: 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! ------------------------------------------------------------------------------ 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 10:16:16
      
     | 
| Hi,
If it is true that
  java emb.FPDF
works, then it is also true that:
  java -jar JavaBridge.jar SERVLET:8090 3 jb.log &
  echo '<?php require("http://localhost:8090/JavaBridge/java/Java.inc");java("emb.FPDF")->main(array());?>'
| php -dallow_url_include=On
works.
Everything else is guesswork.
Please copy your classes to JavaBridge.war's WEB-INF/classes and your
libraries to its WEB-INF/lib and re-deploy the modified JavaBridge.war.
After that use the above PHP code to test (change the port nr to 8080 or
whichever port your j2ee server listens on).
There's a user-contributed video on our web site which shows how to work
with tomcat: http://php-java-bridge.sourceforge.net/pjb/installation.php
Regards,
Jost Boekemeier
Apr 20, 2009 11:17 vorm. schrieb am <
php...@li...>:
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 langu...
 | 
| 
      
      
      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 |