You can subscribe to this list here.
2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(6) |
Oct
(6) |
Nov
(8) |
Dec
(2) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
(19) |
Feb
(15) |
Mar
(10) |
Apr
(8) |
May
(7) |
Jun
(9) |
Jul
(13) |
Aug
(31) |
Sep
(111) |
Oct
(52) |
Nov
(72) |
Dec
(42) |
2006 |
Jan
(21) |
Feb
(32) |
Mar
(33) |
Apr
(24) |
May
(15) |
Jun
(40) |
Jul
(32) |
Aug
(19) |
Sep
(38) |
Oct
(37) |
Nov
(63) |
Dec
(37) |
2007 |
Jan
(18) |
Feb
(39) |
Mar
(69) |
Apr
(49) |
May
(71) |
Jun
(59) |
Jul
(71) |
Aug
(85) |
Sep
(46) |
Oct
(14) |
Nov
(25) |
Dec
(56) |
2008 |
Jan
(24) |
Feb
(77) |
Mar
(104) |
Apr
(44) |
May
(41) |
Jun
(11) |
Jul
(31) |
Aug
(59) |
Sep
(44) |
Oct
(86) |
Nov
(66) |
Dec
(93) |
2009 |
Jan
(88) |
Feb
(41) |
Mar
(49) |
Apr
(135) |
May
(22) |
Jun
(31) |
Jul
(60) |
Aug
(71) |
Sep
(76) |
Oct
(18) |
Nov
(52) |
Dec
(20) |
2010 |
Jan
(8) |
Feb
(50) |
Mar
(35) |
Apr
(48) |
May
(46) |
Jun
(84) |
Jul
(38) |
Aug
(61) |
Sep
(51) |
Oct
(31) |
Nov
(17) |
Dec
(18) |
2011 |
Jan
(51) |
Feb
(14) |
Mar
(17) |
Apr
(23) |
May
(15) |
Jun
(11) |
Jul
(5) |
Aug
(5) |
Sep
(15) |
Oct
(8) |
Nov
(5) |
Dec
(25) |
2012 |
Jan
(2) |
Feb
(4) |
Mar
(6) |
Apr
(9) |
May
(27) |
Jun
(32) |
Jul
(36) |
Aug
(10) |
Sep
(16) |
Oct
(3) |
Nov
(13) |
Dec
(7) |
2013 |
Jan
(1) |
Feb
(4) |
Mar
|
Apr
(1) |
May
|
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(4) |
Oct
(2) |
Nov
(1) |
Dec
|
2014 |
Jan
|
Feb
|
Mar
(2) |
Apr
(1) |
May
(2) |
Jun
(9) |
Jul
(5) |
Aug
(2) |
Sep
(4) |
Oct
|
Nov
|
Dec
|
2015 |
Jan
(3) |
Feb
(2) |
Mar
(4) |
Apr
(3) |
May
(1) |
Jun
(2) |
Jul
|
Aug
(2) |
Sep
(5) |
Oct
(1) |
Nov
|
Dec
|
2016 |
Jan
|
Feb
(5) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(5) |
Sep
(3) |
Oct
|
Nov
|
Dec
|
2017 |
Jan
(6) |
Feb
|
Mar
|
Apr
(10) |
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(1) |
Dec
|
2018 |
Jan
(2) |
Feb
(5) |
Mar
|
Apr
|
May
(1) |
Jun
(3) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2020 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
2021 |
Jan
(5) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2023 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
|
|
1
(1) |
2
|
3
(1) |
4
(1) |
5
(4) |
6
|
7
(3) |
8
(2) |
9
(4) |
10
(4) |
11
(2) |
12
(3) |
13
(4) |
14
(2) |
15
(3) |
16
(3) |
17
(3) |
18
(3) |
19
(4) |
20
(3) |
21
(2) |
22
(5) |
23
(3) |
24
(2) |
25
|
26
|
27
(4) |
28
(1) |
29
(1) |
30
(4) |
|
|
|
From: Victor L. <vic...@ya...> - 2005-11-19 18:07:08
|
Hi, I already spent a long time finding out why java_require can't find my jar file in classpath. I set Selinux to permissive to make sure that it's not because of selinux. It seems that it can find the original java package correctly, e.g. java.io... But it can't find my custom jar files. I tried to set the java.classpath in /etc/php.d/java.ini, but it still doesn't work. I also tried to create a directory in /usr/share/java and put all my custom jar files there and then set the java.classpath, but it still doesn't work. Don't know why. I am using Eclipse with Trustudio to debug. Many thanks. --------------------------------- Yahoo! FareChase - Search multiple travel sites in one click. |
From: Jost B. <jos...@ya...> - 2005-11-19 17:39:44
|
Hi Victor, > I am reading the php-java-bridge.log, but there > is no timestamp. the java bridge servlet logger does not provide a timestamp; printing the log with a timestamp is the servlet engine's job. > Does the log > support timestamp? If so, how to turn it on? For the standalone component the timestamp is on by default. For the servlet engine it is off, but you can provide your own logger, for example: public class MyServlet extends PhpJavaServlet { public static class Logger extends PhpJavaServlet.Logger { public String now() { // or something return String.valueOf( new java.sql.Timestamp( System.currentTimeMillis())): } } ... } Please see the API for details: http://cvs.sourceforge.net/viewcvs.py/*checkout*/php-java-bridge/php-java-bridge/server/doc/php/java/servlet/PhpJavaServlet.Logger.html?rev=1.2 However, I think your servlet engine should have the capability to print its log with a timestamp, it should be an option in the server.xml. 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-19 16:22:12
|
Hi, I am reading the php-java-bridge.log, but there is no timestamp. I have no way to tell if the error is a past error or a current error. Does the log support timestamp? If so, how to turn it on? Many thanks. --------------------------------- Yahoo! FareChase - Search multiple travel sites in one click. |
From: Jost B. <jos...@ya...> - 2005-11-19 14:51:46
|
Hi Shoan, > Apache 2.0.54-r31 running on Gentoo. there's an official php-java-bridge ebuild available for gentoo. I suggest to try that instead. > ./configure: line 2512: syntax error near unexpected [...] > `m4_include(tests.m4/function_checks.m4)' No idea. Probably some autoconf/automake/libtool/m4 issue (too old, dev. files missing etc.) Please see the README for the list of supported autoconf versions and the INSTALL document for more information how to compile the bridge. If you've followed the INSTALL instructions and still get this problem please open a problem report (please use http://sourceforge.net/tracker/?func=add&group_id=117793&atid=679233) and attach the configure.log to that ticket. We'll look at this asap. Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: Shoan M. <sho...@ec...> - 2005-11-18 18:19:40
|
Hi, I am attempting to compile php-java-bridge-2.0.8 against PHP 5.1.0RC6/ Apache 2.0.54-r31 running on Gentoo. I installed php using the php overlay. I get the following errors when running configure # phpize && ./configure --disable-servlet --with-java=/opt/blackdown- jdk-1.4.2.02 Configuring for: PHP Api Version: 20041225 Zend Module Api No: 20050922 Zend Extension Api No: 220051025 loading cache ./config.cache checking for Cygwin environment... (cached) no checking for mingw32 environment... (cached) no checking how to run the C preprocessor... (cached) cc -E checking for egrep... (cached) grep -E checking for a sed that does not truncate output... (cached) /usr/bin/ sed checking for gcc... (cached) gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking whether gcc and cc understand -c and -o together... (cached) yes checking if compiler supports -R... (cached) no checking if compiler supports -Wl,-rpath,... (cached) yes checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu checking for PHP prefix... /usr/lib/php5 checking for PHP includes... -I/usr/lib/php5/include/php -I/usr/lib/ php5/include/php/main -I/usr/lib/php5/include/php/TSRM -I/usr/lib/ php5/include/php/Zend -I/usr/lib/php5/include/php/ext checking for PHP extension directory... /usr/lib/php5/lib/php/ extensions/no-debug-non-zts-20050922 checking for re2c... (cached) re2c checking for re2c version... (cached) 0.9.9 (ok) checking for gawk... (cached) gawk ./configure: line 2512: syntax error near unexpected token `tests.m4/ function_checks.m4' ./configure: line 2512: `m4_include(tests.m4/function_checks.m4)' Any ideas? Peace, Shoan. -- Shoan Motwani Project Leader e-Cosmos (India) Pvt. Ltd. Tel : +91 80 51161261 / 63 Ext: 39 Email: sho...@ec... Website: www.ecosmossolutions.com |
From: Victor L. <vic...@ya...> - 2005-11-18 06:21:29
|
Sorry, correction. The server root is at /var/www/html, not /var/www/html/myapp. Victor Lee <vic...@ya...> wrote: Hi, I need to import a JAR file for the java class I use. If I copy the jar file to my root directory, e.g. /var/www/html/myapp, java_require("http://localhost/myapp/my.jar") can find the class in the jar file. But if I put the jar file in /var/www/html/another and put java_require("http://localhost/another/my.jar"), it cannot find the class. Why? Many thanks. --------------------------------- Yahoo! FareChase - Search multiple travel sites in one click. --------------------------------- Yahoo! FareChase - Search multiple travel sites in one click. |
From: Victor L. <vic...@ya...> - 2005-11-18 06:08:14
|
Hi, I need to import a JAR file for the java class I use. If I copy the jar file to my root directory, e.g. /var/www/html/myapp, java_require("http://localhost/myapp/my.jar") can find the class in the jar file. But if I put the jar file in /var/www/html/another and put java_require("http://localhost/another/my.jar"), it cannot find the class. Why? Many thanks. --------------------------------- Yahoo! FareChase - Search multiple travel sites in one click. |
From: Victor L. <vic...@ya...> - 2005-11-17 19:46:40
|
Hi, I am using dbg with Eclipse and Trustudio as debugger to debug my php code. But whenever I run to my php-java code, it says exception. Can dbg works with these php-java code? If so, how to set it up? Many thanks. --------------------------------- Yahoo! FareChase - Search multiple travel sites in one click. |
From: Jost B. <jos...@ya...> - 2005-11-17 17:13:24
|
Hi Edward, > Fatal error: Call to undefined function: > java_require() in [...] > one is ? I find EsayPHP has one php_java.dll and > php_java.jar defaultly. Please first deinstall the "ext/java" php_java.dll and php_java.jar and remove all java options from your php ini. After that you can install the bridge as usual. It is not possible to install the PHP/Java Bridge and its successor, "ext/java" at the same time. 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-17 16:58:30
|
Hi Claus, > [...] with PHP5. [...] > 2.0.8/php_java_snprintf.c:218: > error: `_ISalpha' undeclared The php_java_snprintf code is not compiled when you have php5. If you get errors there, this may mean that you compile against php4. Anyway, the code should compile against php4 >=4.3.2 without problems, the _ISalpha macro is defined in ctype.h. Please follow the INSTALL description as close as possible. If this doesn't work, please open a problem report, please use http://sourceforge.net/tracker/?func=add&group_id=117793&atid=679233) and attach the configure and build log to this ticket. Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: Claus L. <cl...@co...> - 2005-11-16 08:03:16
|
Trying to get the php-java-bridge running on a Dual Opteron with SUSE 9.3 with PHP5. THIS IS THE PROBLEM: phpize && ./configure --disable-servlet --with-java=/usr/java/jre1.5.0_05 && make CFLAGS="-m64" Configuring for: PHP Api Version: 20031224 Zend Module Api No: 20041030 Zend Extension Api No: 220040412 configure.in:9: warning: underquoted definition of PHP_WITH_PHP_CONFIG ... ... /home/administrator/download/php-java-bridge-2.0.8/php_java_snprintf.c: In function `java_conv_fp': /home/administrator/download/php-java-bridge-2.0.8/php_java_snprintf.c:218: error: `_ISalpha' undeclared (first use in this function) /home/administrator/download/php-java-bridge-2.0.8/php_java_snprintf.c: In function `format_converter': /home/administrator/download/php-java-bridge-2.0.8/php_java_snprintf.c:641: error: `_ISlower' undeclared (first use in this function) /home/administrator/download/php-java-bridge-2.0.8/php_java_snprintf.c:663: error: `_ISdigit' undeclared (first use in this function) /home/administrator/download/php-java-bridge-2.0.8/php_java_snprintf.c:1085: error: `E_ERROR' undeclared (first use in this function) /home/administrator/download/php-java-bridge-2.0.8/php_java_snprintf.c: At top level: /home/administrator/download/php-java-bridge-2.0.8/php_java.h:53: warning: array `java_class_functions' assumed to have one element make: *** [php_java_snprintf.lo] Error 1 All output can be seen here: http://enterprise.unlimited.dk/claus/bridge-install.txt Any suggestions before I start to look into the code? Thanks. Claus Larsen Cofman.com (e) cl...@co... (w) http://www.cofman.com |
From: Marek L. <ma...@le...> - 2005-11-16 06:18:57
|
Victor Lee napisał(a): > Hi, > I have a java code like this: > > Car racecar = Car(0, 2); > > How do I do this with php-java-bridge? > > If I do this: > > $racecar = new Java("Car"); > > then where do I put the parameter 0 and 2? $racecar = new Java("Car", 0, 2); |
From: Edward C. <czy...@ya...> - 2005-11-16 02:47:01
|
Hi, I am trying the Bridge, but I got lost. I am using EasyPHP 1.8. Now I could see this result Wed Nov 16 02:40:22 GMT 2005 Now linking arrayToString.jar and calling ArrayToString->arrayToString(1,2,..,9) Fatal error: Call to undefined function: java_require() in c:\easyphp1-8\www\java-bridge\test.php it can find java.lang.System, but it can't find arrayToString.jar. I guess, this bridge should have some jar file I should put to extension. but which one is ? I find EsayPHP has one php_java.dll and php_java.jar defaultly. Anybody has some experience in building this bridge in EasyPHP ? Thanks. --------------------------------- Yahoo! FareChase - Search multiple travel sites in one click. |
From: Victor L. <vic...@ya...> - 2005-11-15 23:34:55
|
Hi, I have a java code like this: Car racecar = Car(0, 2); How do I do this with php-java-bridge? If I do this: $racecar = new Java("Car"); then where do I put the parameter 0 and 2? Many thanks. __________________________________ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com |
From: Jost B. <jos...@ya...> - 2005-11-15 17:36:45
|
Victor, > Can setAttribute be used to save a java object in > application scope? $ctx->put($key, $val) can be used to store $val into the "application store", yes. Please see the documentation for details (php-java-bridge.sf.net). This private "application store" is not shared with .jsp or servlets. If you really need to access the servlet context in version 2.x, please use the following code: public class MyControllerServlet extends PhpJavaServlet { protected void service(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { req.getSession().setAttribute("ServletContext", getServletConfig().getServletContext()); } } After that please change all references to "PhpJavaServlet" to "MyControllerServlet" in the file WEB-INF/web.xml. You can access the servlet context as follows: <?php dl('java.so'); $servletCtx = java_session()->get("ServletContext"); ... $servletCtx->setAttribute(...) ?> > btw, where can I download 3.0? A preview version is in our CVS repository. But the code is neither stable nor complete (some classes to work with Java Server Faces are still missing). 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-15 06:47:17
|
Can setAttribute be used to save a java object in application scope? btw, where can I download 3.0? Is it a developmental verion? or is it a stable version? Where are the documentation of it? I really need to use the application scope because I am converting a jsp that uses application scope to php. Thanks. --- Jost Boekemeier <jos...@ya...> wrote: > Hi Victor, > > > scope, but how about application scope? > > In PHP/Java Bridge 3.0 you can use > > java_context()->setAttribute(200, "test"); > > to store "test" into the application scope. > > > In version 2.x please use > > $ctx = java_session("myApplication"); > ... > $ctx->destroy(); > > > Regards, > Jost Boekemeier > > > > > > > > ___________________________________________________________ > > Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher > kostenlos - Hier anmelden: http://mail.yahoo.de > __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com |
From: Jost B. <jos...@ya...> - 2005-11-14 16:32:42
|
Hi Victor, > scope, but how about application scope? In PHP/Java Bridge 3.0 you can use java_context()->setAttribute(200, "test"); to store "test" into the application scope. In version 2.x please use $ctx = java_session("myApplication"); ... $ctx->destroy(); 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-14 16:28:21
|
Hi Victor, > import="java.io.*". aliases or top-level environments are not available in php. You must use the full qualified name, e.g.: $memoryBuffer=new java("java.io.BufferedInputStream"); 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-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 |