sidmeister
11-04-2009, 07:46 AM
Hi,
I am investigating the possibility of migrating from PHP/Java Bridge to Quercus for our organisation's web app, and was having some trouble. I do apologise if these questions have appeared previously on the forum, or if I missed something obvious in the documentation.
My questions are:
1. With PHP/Java bridge, I serve the Java libraries as a JAR bound up in a WAR deployed on an AS. I have deployed the same WAR on to Resin, but I unfortunately cannot call the package in the WAR using PHP. When I try to do so, I get the error that the package wasn't found.
2. As I found that Quercus expects packages to be deployed as JARs within the quercus webapp, I deployed the JAR and tried to create an object. This time around, I did not get any errors but the object itself was null, according to the var_dump function, i.e.:
<?
$x = new Java("path.to.my.package",$arg1, $arg2, $arg3);
var_dump($x);
?>
The output produced was:
resource(null)
I was wondering if any body could point me in the right direction to get external Java libraries working on Quercus (other than by using WebBeans).
I look forward to hearing from y'all! Thanks a million!!
I am investigating the possibility of migrating from PHP/Java Bridge to Quercus for our organisation's web app, and was having some trouble. I do apologise if these questions have appeared previously on the forum, or if I missed something obvious in the documentation.
My questions are:
1. With PHP/Java bridge, I serve the Java libraries as a JAR bound up in a WAR deployed on an AS. I have deployed the same WAR on to Resin, but I unfortunately cannot call the package in the WAR using PHP. When I try to do so, I get the error that the package wasn't found.
2. As I found that Quercus expects packages to be deployed as JARs within the quercus webapp, I deployed the JAR and tried to create an object. This time around, I did not get any errors but the object itself was null, according to the var_dump function, i.e.:
<?
$x = new Java("path.to.my.package",$arg1, $arg2, $arg3);
var_dump($x);
?>
The output produced was:
resource(null)
I was wondering if any body could point me in the right direction to get external Java libraries working on Quercus (other than by using WebBeans).
I look forward to hearing from y'all! Thanks a million!!