|
From: <php...@li...> - 2008-11-26 15:12:54
|
Hello, Jan Wagner ( waja AT cyconet.org) bring to attention some problems. The "Djava.security.policy==" issue was commited at bind.c v1.92 [0] The cvs log message does not contain the reason. Could it be reverted to "Djava.security.policy=" without side effects? I will adapt the packaging to include the Java.inc and JavaRaw.inc files. What about the "jce.jar" issue? Regards. Andre Felipe [0] http://php-java-bridge.cvs.sourceforge.net/viewvc/php-java-bridge/php-java-bridge/bind.c?r1=1.91&r2=1.92 > > Dear List, > > > > this week we did setup a php-java-bridge for one of our customers. We did have > > serveral problems, caused by missing documentation for relevant parts, but we > > did solve this anyhow. We have just some issues in place which we worked > > around, but maybe you can give us some hints, how we should correct it. > > > > What we did on a Debian/etch: > > > > * > > wget "http://downloads.sourceforge.net/php-java-bridge/php-java- > > bridge_5.3.2.1.2-1_i386.deb?modtime=1223900853&big_mirror=0" > > * dpkg -i php-java-bridge_5.3.2.1.2-1_i386.deb > > * set "java.log_level = 3" in /etc/php5/conf.d/java.ini > > * copied Java.inc and JavaRaw.inc from an buildenvorinment > > to /usr/share/php/java (why aren't those shipped with the debian package?) > > * /etc/init.d/apache2 restart > > > > So far so good ... after houres of debugging we found the following problem: > > > > # ps aux| grep java > > root 4661 2.5 5.0 210624 13224 ? Sl 00:24 0:00 > > java -Djava.library.path=/usr/lib/php5/20060613+lfs - > > Djava.class.path=/usr/lib/php5/20060613+lfs/JavaBridge.jar - > > Djava.security.policy==/usr/lib/php5/20060613+lfs/javabridge.policy - > > Dphp.java.bridge.base=/usr/lib/php5/20060613+lfs > > php.java.bridge.Standalone LOCAL:@java-bridge-122e 3 > > > > Maybe you also miss the it .. it's right after "-Djava.security.policy", where > > you can find "==" and this cause the JVM to not use this parameter. > > > > We worked around by setting 'java.wrapper > > = "/usr/local/sbin/java_bridge_wrapper"' in /etc/php5/conf.d/java.ini and > > defining the JVM parameter for our own. > > > > To get included the "jce.jar" via 'java_require("jce.jar");' we did need to > > place it in "/usr/share/java", which we did > > with: "ln -s /usr/lib/jvm/java-6-sun/jre/lib/jce.jar /usr/share/java/jce.jar" > > Is there some more elegant way of doing this? > > > > If you wonna have a look into the whole thing, I attached our test script. > > > > Thanks and with kind regards, Jan. |