[PHP] PHP and Java issues. Desperate please help.
I have dug through several forums trying to find a solution to this issue. I have configured PHP4.0.6 with Sun's JDK1.3.1 on RH7.1. I keep receiving a the following error message: Fatal error: Unable to load Java Library /usr/java/jdk1.3.1/jre/lib/i386 /classic/libjvm.so, error: /usr/java/jdk1.3.1/jre/lib/i386/classic/libjvm.so: un defined symbol: jdk_sem_post in /tmp/php-4.0.6/ext/java/jver.php on line My php.ini file looks like the following: [Java] java.class.path=/usr/local/lib/php/php_java.jar:/usr/share/kaffe/worldpac_fu lfil lment.jar java.home=/usr/java/jdk1.3.1 java.library=/usr/java/jdk1.3.1/jre/lib/i386/classic/libjvm.so java.library.path=/usr/local/lib/php/extensions/no-debug-non-zts-20001222:/u sr/j ava/jdk1.3.1/jre/lib/i386:/usr/java/jdk1.3.1/jre/lib/i386/classic:/usr/java/ jdk1 .3.1/jre/lib/i386/hotspot:/usr/java/jdk1.3.1/jre/lib/i386/native_threads extension=libphp_java.so And when I ldd -d libjvm.so I receive the following: /usr/bin/ldd -d libjvm.so libm.so.6 => /lib/i686/libm.so.6 (0x4009a000) libnsl.so.1 => /lib/libnsl.so.1 (0x400be000) libdl.so.2 => /lib/libdl.so.2 (0x400d5000) libc.so.6 => /lib/i686/libc.so.6 (0x400d9000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x2000) undefined symbol: jdk_sem_post (./libjvm.so) undefined symbol: jdk_sem_init (./libjvm.so) undefined symbol: jdk_pthread_sigmask (./libjvm.so) undefined symbol: jdk_sem_wait (./libjvm.so) undefined symbol: jdk_pthread_sigmask (./libjvm.so) I pretty much understand that the issue is with the JDK but I cannot figure out how to fix it. I have tried the the ld.so.conf( and ran ldconfig, also did a reboot) which is as follows: /usr/lib /usr/kerberos/lib /usr/X11R6/lib /usr/local/lib /usr/java/jdk1.3.1/jre/lib/i386 /usr/java/jdk1.3.1/jre/lib/i386/classic /usr/java/jdk1.3.1/jre/lib/i386/native_threads /usr/java/jdk1.3.1/jre/lib/i386/green_threads This has gotten to be a major holdup. I have read through several posts and tried all they suggest to no avail. I am going nuts, I know this can work because others have done it. The only thing left that I haven't looked into is this error message from the php debug.log: /usr/bin/ld: warning: libstdc++-libc6.1-1.so.2, needed by /usr/java/jdk1.3.1/jre /lib/i386/hotspot/libjvm.so, not found (try using -rpath or -rpath-link) /usr/java/jdk1.3.1/jre/lib/i386/hotspot/libjvm.so: undefined reference to `__che ck_eh_spec' /usr/java/jdk1.3.1/jre/lib/i386/hotspot/libjvm.so: undefined reference to `__thr ow' /usr/java/jdk1.3.1/jre/lib/i386/hotspot/libjvm.so: undefined reference to `termi nate(void)' /usr/java/jdk1.3.1/jre/lib/i386/hotspot/libjvm.so: undefined reference to `__cp_ pop_exception' /usr/java/jdk1.3.1/jre/lib/i386/hotspot/libjvm.so: undefined reference to `__cp_ eh_info' collect2: ld returned 1 exit status I don't have libstdc++-libc6.1-1.so.2 on my system. So I will go back and try install it and see what happens. Any ideas would be greatly appreciated. Bill PS Alex I apologize greatly for the direct email. But I am desperate, I saw your name on several php forums and you seem to be the guru on this issue. I switched from kaffe ( which I had running smoothly) because the project I am working on requires certain pre done Java API's that were calling Java classes that kaffe didn't seem to have. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: payflow pro hosed
Dan, Check the php.ini file. You need to be sure the payflow library is being loaded. The following should be listed under extensions in your php.ini directory: extension=pfpro.so extension=libpfpro.so Also be sure that the path to the php/module file is listed as well. Bill -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Apache Segmentation fault.
I am getting Apache errors everytime that I try and run a Java class I get a segmentation error. Here is the error from my log [Thu Aug 30 08:35:33 2001] [notice] child pid x exit signal Segmentation fault (11) I am running RH 7.1(2.4.2) Apache 1.3.19 with mod_ssl and OpenSSL, PHP is configured as follows: ./configure --with-mysql=/usr/local/mysql --with-pfpro=shared,/tmp/verisign/payflowpro/linux --enable-trackvars --with-apxs=/usr/local/apache/bin/apxs --with-java=/usr/java/jdk1.3.1 --with-zlib everything works fine except the Java. I have configured the Java before using Kaffe and everything ran fan. I switched to JDK1.3.1, and also configured PHP as a DSO instead of static in case I wanted to upgrade I didn't have to fight with my system all over again. I have read where php4.0.5 had this trouble and that several people switched to back to 4.0.4. Also is this a bug that needs reporting or is everyone well aware of it and I just need to change my set up. Any suggestions would be helpful. Bill -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] PHP/Java, Receiving Error message.
I have had PHP/Java running for a while and Haven't had any issues with the standard classes. I was recently given a jar file containing a bunch of classes to be used on a project. I get the following error on several of the methods when called: Warning: java.lang.NoSuchMethodException: initialize Now this method definitely exists. The syntax I am using is as follows: $Class = new Java("long.path.to.class"); $Method = $Class->initialize("12345", "George", "123 spiff Street", "suite 121", "Hometown", "USA", "12345", "UPG"); I am not real solid with java yet so even a simple problem can hang me up with this. Does the length of the class path cause any issues? Other methods in other classes work fine. So I am pretty much lost at this point any help would be great. Bill Koch -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]