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: Victor L. <vic...@ya...> - 2005-11-13 23:07:02
|
Hi, In JSP, it has application scope, session scope and page scope. You can save a java object in the application scope in JSP, and it will be there as long as the web application is running. How do I do the same thing in PHP, I know PHP can do session and page scope, but how about application scope? Many thanks. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: Victor L. <vic...@ya...> - 2005-11-13 22:18:11
|
Hi, I want to convert my jsp to php files. My jsp script has a bunch of import statements like import="java.io.*". How do I import these in php? The closest ones is java_require, but it is only for jar files. thanks. __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com |
From: Michael E. <els...@gm...> - 2005-11-13 02:53:48
|
Jost, > please make sure that the php.ini contains > extension=java.so It does contain that line. It seems my PHP uses the php.ini file when called via command line, as well. Michel > -----Original Message----- > From: Jost Boekemeier [mailto:jos...@ya...] > Sent: Saturday, November 12, 2005 11:48 AM > To: Michael Elsdoerfer; php...@li... > Subject: Ant: [Php-java-bridge-users] PHP Notice: waiting for server > another x seconds > > Hi Michael, > > > server (Apache2/PHP5), I get these messages a lot. > > PHP Notice: php_mod_java(57): waiting for server > > please make sure that the php.ini contains > > extension=java.so > > > so that the extension is loaded only when apache > starts. If the above line is missing, the extension is > loaded for each request. > > > Regards, > Jost Boekemeier > > > > > > > > ___________________________________________________________ > Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier > anmelden: http://mail.yahoo.de |
From: Michael E. <els...@gm...> - 2005-11-13 02:23:31
|
Kai, Thank you very much! Works pretty much like a charm! Gr=FC=DFe nach Hannover :) Michael > -----Original Message----- > From: Kai Londenberg [mailto:K.L...@li...] > Sent: Friday, November 11, 2005 6:18 PM > To: Michael Elsdoerfer > Subject: Re: [Php-java-bridge-users] running as daemon on debian >=20 > On Fri, 11 Nov 2005 16:36:02 +0100, you wrote: >=20 > >The service script shipped with the archive does not work on my = debian > >machine. I don't have as much knowledge of linux as I'd like, so = could > >anybody give me some advice? > > > >The "deamon" command used by the script is not available on my = machine, > and > >neither is /etc/rc.d/init.d/functions. > > > >Has anybody on the list already written a startup script for debian? >=20 > Yes, here it is. >=20 > You might need to modify JAVA_HOME and PHP_EXTENSION_DIR to get it > running .. >=20 >=20 > #!/bin/bash > # > # php-java-bridge Start the php-java-bridge java appserver. > # > # The variables below are to be changed if neccessary > NAME=3Dphp-java-bridge > #JAVA_HOME=3D/opt/jdk142 > JAVA_HOME=3D/opt/IBMJava2-142 > PHP_EXTENSION_DIR=3D/usr/lib/php5/20041030 > JAVA_DBGARGS=3D"-Xdebug > -Xrunjdwp:transport=3Ddt_socket,server=3Dy,suspend=3Dn,address=3D5000" > JAVA_XARGS=3D"-Xmx1500m -Xms128m" > CLASSPATH=3D$PHP_EXTENSION_DIR/JavaBridge.jar > LIBRARY_PATH=3D$PHP_EXTENSION_DIR > SOCKETNAME=3DINET_LOCAL:34321 > #SOCKETNAME=3D/var/run/.php-java-bridge_socket > LOG_LEVEL=3D4 > LOG_FILE=3D/var/log/php-java-bridge.log > DAEMON=3D"$JAVA_HOME/bin/java" > ARGS=3D"$JAVA_XARGS -Djava.class.path=3D$CLASSPATH > -Djava.library.path=3D$LIBRARY_PATH -Djava.awt.headless=3Dtrue > php.java.bridge.JavaBridge $SOCKETNAME $LOG_LEVEL $LOG_FILE" > PIDFILE=3D/var/run/$NAME.pid > COMMAND=3D"$DAEMON $ARGS" >=20 > # note: SSD is required only at startup of the daemon. > SSD=3D`which start-stop-daemon` >=20 > ENV=3D"env -i LANG=3DC PATH=3D/bin:/usr/bin:/usr/local/bin" >=20 > trap "" 1 >=20 > echo "$NAME service controller" > echo "$COMMAND" >=20 > should_start() { > if [ ! -x $DAEMON ]; then > echo "java is not executable, not starting" > exit 0 > fi > } >=20 > case "$1" in > start) > should_start > echo -n "Starting Java Application Server for PHP: $NAME" > $ENV $SSD --start -b --pidfile $PIDFILE -m --exec $DAEMON -- $ARGS > ;; >=20 > debug) > should_start > echo -n "Starting Remote-Debuggable Java Application Server for > PHP: $NAME" > $ENV $SSD --start -b --pidfile $PIDFILE -m --exec $DAEMON -- > $JAVA_DBGARGS $ARGS > ;; >=20 > stop) > echo -n "Stopping Java Application Server for PHP: $NAME" > start-stop-daemon --stop --pidfile $PIDFILE --oknodo -R 10 > rm $PIDFILE > ;; >=20 > reload | force-reload | restart) >=20 > ;; >=20 > *) > echo "Usage: /etc/init.d/$NAME {start|debug|stop|restart}" > exit 1 > ;; > esac >=20 > if [ $? -eq 0 ]; then > echo . > exit 0 > else > echo " failed" > exit 1 > fi >=20 >=20 > ------------------------------- > librics GmbH & Co. KG > G=F6ttinger Chaussee 115 > D-30459 Hannover > Tel. +49 511 - 473 88 77 > Fax +49 511 - 473 88 78 > mailto: K.L...@li... |
From: Jost B. <jos...@ya...> - 2005-11-12 10:48:08
|
Hi Michael, > server (Apache2/PHP5), I get these messages a lot. > PHP Notice: php_mod_java(57): waiting for server please make sure that the php.ini contains extension=java.so so that the extension is loaded only when apache starts. If the above line is missing, the extension is loaded for each request. Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: Jost B. <jos...@ya...> - 2005-11-12 10:44:38
|
Hi Adam, the java.lang.reflect.Array has the following factory procedure: newInstance(Class componentType, int[] dimensions) so that you can call: $ar=$Array->newInstance(new java("java.lang.Object", array(2,2,2,2,2,2)); to create an array with 6 dimensions. $str=new java("java.lang.String", "hello"); $ar[0][1][0][1][0][1]=$str; should work, at least in PHP5. (It might work in PHP4, too, but then you have to use the array setter/getters explicitly). Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: Jost B. <jos...@ya...> - 2005-11-12 10:34:24
|
Hi Jonathan, I think this is a more general problem. My suggested workaround doesn't even work for custom number types which might not have an appropriate constructor. Representing a complex number as a php value isn't possible anyway. For version 3.0 we have the opportunity to change this behaviour and remove auto-conversion of return values completely. This would allow users to work with java numbers or java strings in a natural way, for example: $str = new java("java.lang.String", ${123}"; $str = $str->substring(2); $str = $str->substring($str->length()-1); If users want to convert a java object into a php object they can always use the cast operator, for example: echo strchr((string)$str, "2"); Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: Michael E. <els...@gm...> - 2005-11-11 15:35:49
|
The service script shipped with the archive does not work on my debian machine. I don't have as much knowledge of linux as I'd like, so could anybody give me some advice? The "deamon" command used by the script is not available on my machine, and neither is /etc/rc.d/init.d/functions. Has anybody on the list already written a startup script for debian? Thanks, Michael |
From: Michael E. <els...@gm...> - 2005-11-11 15:33:02
|
When running the bridge with in internal java process started by the web server (Apache2/PHP5), I get these messages a lot. PHP Notice: php_mod_java(57): waiting for server another 14 seconds in Unknown on line 0 For example, every time I run the php executable on the command line. Is there something wrong? Everything seems to be working fine. What can be done to suppress these messages? Any help is appreciated. Thanks, Michael |
From: Abbett, J. <Jon...@ch...> - 2005-11-10 20:55:07
|
Your suggested solution worked after I put quotes around my numeric parameter -- the BigInteger constructor doesn't take Longs, but it does take Strings! $docRef->setVersion(new java("java.lang.BigInteger","1")); Thanks for your help, --Jon -----Original Message----- From: Jost Boekemeier [mailto:jos...@ya...]=20 Sent: Thursday, November 10, 2005 2:25 PM To: Abbett, Jonathan; php...@li... Subject: Ant: [Php-java-bridge-users] Bridge turns BigInteger into a double? Hi Jonathan, please always create a java value explicitly instead of relying on auto-conversions for php values[1]: Instead of $obj->method($phpVal); use $obj->method(new java("<param-class>", $phpVal)); So your example would read: $docRef->setVersion(new java("java.lang.BigInteger", 1)); > It looks like the PHP-Java Bridge is transforming my > BigInteger=20 When possible a java value is represented as a php value. "Possible" means: All sub-types of java.lang.Number are represented as a php exact or inexact number and all java strings are represented as a UTF-8 encoded[2] php string. Everything else is represented as a opaque object handle. To create an object handle for such a php value one has to invoke the constructor as shown above. Regards, Jost Boekemeier [1] all instances of java.lang.Number and all instances of java.lang.String [2] encoding can be changed with e.g.: java_set_file_encoding("ASCII"). =09 =09 =09 ___________________________________________________________=20 Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: Jost B. <jos...@ya...> - 2005-11-10 19:24:58
|
Hi Jonathan, please always create a java value explicitly instead of relying on auto-conversions for php values[1]: Instead of $obj->method($phpVal); use $obj->method(new java("<param-class>", $phpVal)); So your example would read: $docRef->setVersion(new java("java.lang.BigInteger", 1)); > It looks like the PHP-Java Bridge is transforming my > BigInteger When possible a java value is represented as a php value. "Possible" means: All sub-types of java.lang.Number are represented as a php exact or inexact number and all java strings are represented as a UTF-8 encoded[2] php string. Everything else is represented as a opaque object handle. To create an object handle for such a php value one has to invoke the constructor as shown above. Regards, Jost Boekemeier [1] all instances of java.lang.Number and all instances of java.lang.String [2] encoding can be changed with e.g.: java_set_file_encoding("ASCII"). ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: Abbett, J. <Jon...@ch...> - 2005-11-10 16:24:54
|
I have a method that takes a BigInteger as input, but I can't seem to get a BigInteger in there. A code fragment: =20 $docRef =3D $factory->createDocumentReferenceType(); $bigint =3D new java_class("java.math.BigInteger"); $docRef->setVersion($bigint->valueOf(1)); =20 I get an exception on that last line, which is reported in the PHP error log: =20 PHP Fatal error: Uncaught [class java.lang.Exception: java.lang.Exception: Invoke failed: [org.chip.ping.xml.annotation.impl.DocumentReferenceTypeImpl@15b44d6]->s etVersion(class java.lang.Double). Cause: java.lang.IllegalArgumentException: argument type mismatch] ... =20 It looks like the PHP-Java Bridge is transforming my BigInteger into a java.lang.Double. How do I prevent this from happening? What alternatives do I have? =20 Thanks, Jon Abbett =20 =20 =20 =20 |
From: Adam C. <ada...@gm...> - 2005-11-10 16:07:41
|
Does anyone know how to create a java two-dimensional array and set its value of each element in php-code? Thanks for your attention and help. For example: one-dimensional array <?php $Array =3D new JavaClass("java.lang.reflect.Array"); $String =3D new JavaClass("java.lang.String"); $entries =3D $Array->newInstance($String, 3); $entries[0] =3D"a"; $entries[1] =3D"b"; $entries[2] =3D"c"; ?> |
From: Jost B. <jos...@ya...> - 2005-11-09 18:43:05
|
Hi, security concerns aside[1], please see PR1235199 (http://sourceforge.net/tracker/index.php?func=detail&aid=1235199&group_id=117793&atid=679233), it contains a description how to pass additional options to the JVM. Regards, Jost Boekemeier [1] Setting java.awt.headless=false would allow php scripts to access the graphics display, at least on windows (on unix the attacker needs permission to access the display, e.g. via xhost +). This would enable php scripts to log key events: passwords etc. ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: Jost B. <jos...@ya...> - 2005-11-09 18:32:09
|
Hi Victor, the easiest way is to install the j2ee backend (http://prdownloads.sourceforge.net/php-java-bridge/php-java-bridge.j2ee_2.0.8.zip?download). It allows you to convert your jsp files to php step by step. Assuming that your web application is called myApp and you want to run php files: * copy webapps/JavaBridge/WEB-INF/lib/JavaBridge.jar and the controller servlet classes from JavaBridge/WEB-INF/classes/ to webapps/myApp/WEB-INF/ * add the servlet mapping to your WEB-INF/web.xml, please see JavaBridge/WEB-INF/web.xml for a template. Please set the init-param "override_hosts" to Off and set the correct hosts and servlet in your php.ini: * use the following lines in your php.ini [java] java.hosts="127.0.0.1:8080" java.servlet="/myApp/PhpJavaServlet" If you browse to http://localhost:8080/myApp, you should be able to develop and invoke your php files. For a production system please start Apache and browse to http://yourHost.com/myApp. The php modules will call to the java backend as neccesary. In case you have a distribution where the tomcat webapps and the apache htdocs directories are not shared, please either use a symlink or use mod jk to "JkMount" the tomcat webapps directory into apache (please see the readme for details). Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: Simon A. <ch...@mi...> - 2005-11-09 08:26:21
|
I have a situation where I'm running Java under the PJB and it needs access to the X server. In this case, the flag normally passed in to Java "-Djava.awt.headless=true" causes my application not to work right. I had to change the file bind.c and recompile to change the parameter to "-Djava.awt.headless=false" so that my software could work. It would be nice if this were a configurable option. |
From: Victor L. <vic...@ya...> - 2005-11-09 00:28:02
|
Hi, I have some JSP code, and I want to convert them to PHP by using php-java-bridge. Is there a easy way to do it? Many thanks. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: Jost B. <jos...@ya...> - 2005-11-08 16:57:55
|
Hi Victor, [I assume that you want to use PHP scripts from java projects like tapestry, java server faces, etc.] > where can I find more tutorial about how to use this > bridge? A tutorial doesn't exist at the moment. However, it is planned for version 3.0 and 2.0.9. > I also need more code examples that use this > bridge. At the moment only the php API functions are documented (->http://php-java-bridge.sf.net). If you want to use the bridge from java code, I suggest to use the script API, which will be available with jdk1.6, please see http://download.java.net/jdk6/docs/api/javax/script/package-summary.html and http://sourceforge.net/mailarchive/forum.php?thread_id=8895955&forum_id=42415 > The documentation is not that detail. I don't know > what many of the functions do even after I read the > documentation come with the code itself. Which functions do you mean specifically? Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: Jost B. <jos...@ya...> - 2005-11-08 16:46:21
|
Hi Corey, please excuse the delay. > I running PHP Version 4.3.4 [...] > Warning: dl(): Unable to load dynamic library > '/usr/lib/php/extensions/java.so' - > /usr/lib/php/extensions/java.so: > undefined symbol: zend_ce_arrayaccess in > /srv/www/htdocs/test.php on line 12 This sounds similar to PR1181710 (please see http://sourceforge.net/tracker/index.php?func=detail&aid=1181710&group_id=117793&atid=679233). Are you shure that you have created the java.so against the php 4.3.4 ABI -- or have you copied the java.so from somwhere else? Can you please create a ticket for this (please use http://sourceforge.net/tracker/?func=add&group_id=117793&atid=679233) and attach the java.so to this ticket? I will check this asap. Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: Victor L. <vic...@ya...> - 2005-11-07 19:38:47
|
Hi, I am new in this php-java-bridge. Do you know where can I find more tutorial about how to use this bridge? I also need more code examples that use this bridge. The documentation is not that detail. I don't know what many of the functions do even after I read the documentation come with the code itself. Many thanks. __________________________________ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com |
From: Jost B. <jos...@ya...> - 2005-11-07 17:45:37
|
[resent] Hi, a URLConnection is used to connect to the frontend (Apache). The php instance in turn connects to our java backend (the current vm) using the following code: (java_context()->getAttribute("X_JAVABRIDGE_CONTINUATION"))->call(java_closure()); Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: Kai L. <K.L...@li...> - 2005-11-07 11:39:51
|
Just out of curiosity - do you use php as a usual cgi binary, or do you use the fastcgi interface when invoking PHP Code from Java .. best regards, Kai Londenberg ------------------------------- librics GmbH & Co. KG G=F6ttinger Chaussee 115 D-30459 Hannover Tel. +49 511 - 473 88 77 =46ax +49 511 - 473 88 78 mailto: K.L...@li... |
From: Corey B. <cor...@ho...> - 2005-11-05 23:18:59
|
Greetings. I am having trouble with the installation on loading the extension. When the 'java.so' extension load is attempted I get the following error: Warning: dl(): Unable to load dynamic library '/usr/lib/php/extensions/java.so' - /usr/lib/php/extensions/java.so: undefined symbol: zend_ce_arrayaccess in /srv/www/htdocs/test.php on line 12 I running PHP Version 4.3.4 Any help would be appreciated. Thanks. |
From: Jost B. <jos...@ya...> - 2005-11-05 13:54:37
|
Hi Kevin, > I'm attempting to set up the php-java-bridge in the > "load balancing > and failover" approach. What access does Apache > need to have to the > .php files in my project? It should work if you symlink the tomcat webapps directory into the apache document root or if you "jk mount" it. It's just that apache must be able to allocate and to invoke a php instance from its pool. > *install warfile > *access http://myhost/JavaBridge/numberguess.php Yes. If /var/www/html/JavaBridge/numberguess.php exists. > Or do I need to grant apache access to that > directory, and map > JavaBridge/**.php to the webcontent/JavaBridge > directory? jk mounting it is is also possible, but slower. When you mount a file or directory using mod_jk, the adapter "copies" the content of the file or directory from the tomcat dir to the apache dir at run-time. So I would just symlink the $CATALINA_HOME/webapps/JavaBridge to /var/www/html/htdocs/. BTW: If you have RedHat FC4, the tomcat webapps and the apache htdocs are shared by default, mod_jk is not needed anymore. Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: Jost B. <jos...@ya...> - 2005-11-05 13:36:43
|
Hi Guillaume, > $Array = new JavaClass("java.lang.reflect.Array"); > $String = new JavaClass("java.lang.String"); > $entries = $Array->newInstance($String, 2); [...] > $req->ProcessFunction($Array); [...] >...(([Ljava.lang.String;)c:java.lang.reflect.Array) if I understand this correctly, you want to pass the created String[] instance to ProcessFunction, not the $Array class. Does $req->ProcessFunction($entries) solve the problem? BTW: The above error message indicates that the ProcessFunction2 accepts a [Ljava.Lang.String], i.e. a String[] but it is called with an argument which is a class java.lang.reflect.Array. I agree that this is difficult to read, but if I make the message more verbose, php may cut off the rest of the message. Maybe the full message should go to the PHP/Java Bridge log. Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |