|
From: <php...@li...> - 2009-04-23 17:17:39
|
I was using apache + jboss 4.2.2 + php-java-bridge for a long time, but
recently I upgraded to jboss 5.0.1 and suddenly the php-java-bridge stop
working (it couldn't connect with the deployed jboss ejbs, and prints
some weird errors about not founded classes), but it initialized
correctly.
I thought that upgrading to php-java-bridge 5.0.1 should be the best
choice, but now the bridge dont even initialize correctly and apache
shows:
Fatal error: class 'Java' not found
Any hints??, I am using Gentoo GNU/Linux, apache web server and jboss
aplication server
I configured the bridge using the
file /etc/php/apache/ext-active/java.ini:
---------------------------------------------java.ini
extension = java.so
extension_dir = /usr/lib64/php5/lib/php/extensions/no-debug-zts-20060613
[java]
java.java_home = /etc/java-config-2/current-system-vm
java.java = /etc/java-config-2/current-system-vm/bin/java
java.log_file = /var/log/php-java-bridge.log
java.log_level = 4
-----------------------------------------------------
And the bridge is used as the following:
--------------------------------------bridge-example:
$envt = array("java.naming.factory.initial" =>
"org.jnp.interfaces.NamingContextFactory",
"java.naming.factory.url.pkgs" =>
"org.jboss.naming:org.jnp.interfaces",
"java.naming.provider.url" => 192.168.1.111);
// The initial context
$ctx = new Java("javax.naming.InitialContext", $envt);
// Lookup for some object
$someObject = $ctx->lookup("SomeObjectBean/remote");
-----------------------------------------------------
Thanks in advance!
|