From: <php...@li...> - 2007-04-16 09:26:44
|
i config > ./configure --disable-backend --with-java=/usr/local/diablo-jdk1.5.0 > ,/usr/local/diablo-jdk1.5.0 sh install.sh i use FreeBSD6.2 java -version: # java -version > java version "1.5.0" > Java(TM) 2 Runtime Environment, Standard Edition (build diablo-1.5.0-b01) > Java HotSpot(TM) Client VM (build diablo-1.5.0_07-b01, mixed mode) > Error: The PHP/Java Bridge back-end is not running. Please start it and/or > check if the directory /usr/local/lib/php/20060613 contains "java.so" and > "JavaBridge.jar". Check if the following values are correct: > java.java_home = java.java = If you want to start the back-end > automatically, disable: java.socketname = java.hosts = java.servlet = If > that still doesn't work, please check the "java command" above and report > this problem to: php...@li.... > -- regards jl |
From: <php...@li...> - 2007-04-16 11:42:52
|
Hi, > Error: The PHP/Java Bridge back-end is not running. Have you started the back end? If your php.ini file dosn't contain any java related entries (which seems to be the case), the bridge automatically starts a local back end. You can find the command in the result of the phpinfo() command: echo "<?php dl('java.so'); phpinfo() ?>" | php -n > result.txt cat result.html | fgrep "java command" Please take the java command obtained from the phpinfo() and paste it into a command shell (xterm). The command should display the reason for the failure, probably some freebsd java/jdk issue. In any case, we recommend to use the J2EE binary on freeBSD, or to use a modern operating system with a decent TCP socket implementation, for example Windows, Linux or Solaris. Regards, Jost Boekemeier __________________________________ Kennt man wirklich jeden über 3 Ecken? Die Antworten gibt's bei Yahoo! Clever. www.yahoo.de/clever |
From: <php...@li...> - 2007-04-16 12:45:37
|
It seems not fit FreeBSD when i use echo "<?php dl('java.so'); phpinfo() ?>" | php -n > result.txt > it show me: > Segmentation fault (core dumped) So i have to rebuild, comand like pre mail. when finish "sh install.sh" , i find : Generate PHP classes from standard Java classes and install them in the /usr/local/share/pear directory? convert java libraries (yes/no): Exception in thread "main" java.lang.NoClassDefFoundError: php/java/bridge/JavaBridge cp: java/*.php: No such file or directory "Makefile", line 8: Could not find /usr/share/selinux//include/Makefile make: fatal errors encountered -- cannot continue install.sh: /usr/sbin/semodule: not found install.sh: /usr/bin/chcon: not found install.sh: /usr/bin/chcon: not found PHP/Java Bridge installed. Now type "/usr/local/bin/php test.php" to check the installation. bridge i today download. Is it ok? 2007/4/16, php...@li... < php...@li...>: > > Hi, > > > > Error: The PHP/Java Bridge back-end is not running. > > Have you started the back end? If your php.ini file > dosn't contain any java related entries (which seems > to be the case), the bridge automatically starts a > local back end. You can find the command in the > result of the phpinfo() command: > > echo "<?php dl('java.so'); phpinfo() ?>" | php -n > > result.txt > > cat result.html | fgrep "java command" > > Please take the java command obtained from the > phpinfo() and paste it into a command shell (xterm). > > The command should display the reason for the failure, > probably some freebsd java/jdk issue. > > > In any case, we recommend to use the J2EE binary on > freeBSD, or to use a modern operating system with a > decent TCP socket implementation, for example Windows, > Linux or Solaris. > > > Regards, > Jost Boekemeier > > > > __________________________________ Kennt man wirklich jeden =FCber= 3 > Ecken? Die Antworten gibt's bei Yahoo! Clever. www.yahoo.de/clever > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > --=20 regards jl |
From: <php...@li...> - 2007-04-16 15:50:42
|
Hi, what's wrong with the J2EE download? C compilation isn't for everyone. > when i use > echo "<?php dl('java.so'); phpinfo() ?>" | php -n > > result.txt > > Segmentation fault (core dumped) Which gcc version do you use? Some gcc versions have a bug in their optimizer. This bug has been reported twice, against FreeBSD and RedHat Linux. The workaround is to switch to another gcc version or to switch off the optimizer (export CFLAGS="-O0"). In any case, this isn't a problem in the PHP/Java Bridge code. > --disable-backend[...] > Do you want to [...] > Generate PHP classes from standard Java classes [...] > java.lang.NoClassDefFoundError: You haven't built the back end (the JavaBridge.jar). If you want to transform java libraries into php pear classes, you need the JavaBridge.jar. Which in turn means that you must either install the required autoconf, automake and libtool versions or disable back end compilation and use the JavaBridge.jar from the J2EE back end. > php/java/bridge/JavaBridge > cp: java/*.php: No such file or directory Okay. > "Makefile", line 8: Could not find > /usr/share/selinux//include/Makefile > make: fatal errors encountered -- cannot continue > install.sh: /usr/sbin/semodule: not found > install.sh: /usr/bin/chcon: not found > install.sh: /usr/bin/chcon: not found > PHP/Java Bridge installed. Okay. Regards, Jost Boekemeier Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s mit dem neuen Yahoo! Mail. www.yahoo.de/mail |
From: <php...@li...> - 2007-04-17 01:17:14
|
It is ok now.. Maybe yesterday package is wrong. today i redownload a new package. and it is ok. Thks. 2007/4/16, php...@li... < php...@li...>: > > Hi, > > what's wrong with the J2EE download? C compilation > isn't for everyone. > > > > when i use > > echo "<?php dl('java.so'); phpinfo() ?>" | php -n > > > result.txt > > > Segmentation fault (core dumped) > > Which gcc version do you use? Some gcc versions have a > bug in their optimizer. This bug has been reported > twice, against FreeBSD and RedHat Linux. > > The workaround is to switch to another gcc version or > to switch off the optimizer (export CFLAGS=3D"-O0"). > > In any case, this isn't a problem in the PHP/Java > Bridge code. > > > --disable-backend[...] > > Do you want to [...] > > Generate PHP classes from standard Java classes > [...] > > java.lang.NoClassDefFoundError: > > You haven't built the back end (the JavaBridge.jar). > If you want to transform java libraries into php pear > classes, you need the JavaBridge.jar. > > Which in turn means that you must either install the > required autoconf, automake and libtool versions or > disable back end compilation and use the > JavaBridge.jar from the J2EE back end. > > > > php/java/bridge/JavaBridge > > cp: java/*.php: No such file or directory > > Okay. > > > > "Makefile", line 8: Could not find > > /usr/share/selinux//include/Makefile > > make: fatal errors encountered -- cannot continue > > install.sh: /usr/sbin/semodule: not found > > install.sh: /usr/bin/chcon: not found > > install.sh: /usr/bin/chcon: not found > > PHP/Java Bridge installed. > > Okay. > > > Regards, > Jost Boekemeier > > > > Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen > Sie=B4s mit dem neuen Yahoo! Mail. www.yahoo.de/mail > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > --=20 regards jl |
From: <php...@li...> - 2007-04-17 09:32:50
|
Hi, > It is ok now.. if i remember correctly, this gcc optimizer bug is due to an uninitialized condition variable. Depending on what malloc() returns, the gcc optimizer creates trash output. When you compile twice, it is more likely that malloc() returns a segment which initializes the variable to zero. > Maybe yesterday package is wrong. I don't think so. The bind code hasn't been changed since one year now. Regards, Jost Boekemeier __________________________________ Yahoo! Clever: Sie haben Fragen? Yahoo! Nutzer antworten Ihnen. www.yahoo.de/clever |