From: <php...@li...> - 2007-02-01 08:51:54
|
Quick litte rundown of my configuration (/etc/php.d/java.ini): java.java_home = /opt/jdk1.5.0_11/ java.java = /opt/jdk1.5.0_11/bin/java java.lib.path = /opt/jdk1.5.0_11/jre/lib/* *I use a java app provided by iveri.co.za which installs a cert here -> /opt/jdk1.5.0_11/jre/lib/security/cacerts and the app here -> /opt/jdk1.5.0_11/jre/lib/iveri/ my <?php //code $enterprise = new Java('com.iveri.enterprise.Enterprise'); $enterprise->setCertificateID("{blah}"); $enterprise->setGateway("blah"); $enterprise->prepare("Transaction", "Debit", "blah", "Test"); $enterprise->setAttribute("MerchantReference", 1); $enterprise->setTag("Amount", "123"); // R1.23 $enterprise->setTag("CCNumber","4242424242424242"); $enterprise->setTag("ExpiryDate", "122009"); $resultStatus = $enterprise->execute(); ?> * *if i run the code in java it works perfectly, ie my execute method will run without a hiccup, but if i run the execute method in php-java-bridge then i get the following error**: *Fatal error*: Uncaught [o(Exception):"java.lang.Exception: Invoke failed: [o(Enterprise)]->execute. Cause: com.iveri.enterprise.ResultException: [255] CertificateID '{blah}' not configured. Cannot recover key Responsible VM: 1.5.0_11@http://java.sun.com/" at: #-14 com.iveri.enterprise.c.a(Unknown Source) #-13 com.iveri.enterprise.c.c(Unknown Source) #-12 com.iveri.enterprise.c.b(Unknown Source) #0 /var/www/html/debit.php(27): Java->__call('execute', Array) #1 /var/www/html/debit.php(27): Java->execute() #2 {main}] thrown in */var/www/html/debit.php* on line *27** * I suspect the stand alone VM cant find the correct paths to grab cert data... Any pointers or help, much appreciated. Regards, Hess Gee |