From: <php...@li...> - 2006-07-13 18:58:24
|
I have a PHP file that includes the following code: <?php java_require("commons-beanutils.jar;commons-beanutils-bean-collections.jar ;commons-beanutils-core.jar;commons-logging-1.1.jar;commons-digester-1.7.jar;commons-b eanutils.jar;source.jar;demo.jar"); $path = new Java("java.lang.String", "/home/wendy/lucene-2.0.0 /src/demo/index"); $Searcher = new Java("org.apache.lucene.search.IndexSearcher ", $path); ?> I get the following error about missing java.security.Security. Fatal error: Uncaught [o(Exception):"java.lang.Exception: CreateInstance failed: new org.apache.lucene.search.IndexSearcher ((String)o(String)). Cause: java.lang.ClassNotFoundException: Unresolved external reference: java.lang.NoClassDefFoundError: java.security.Security. -- Unable to call constructor because it or one of its parameters refer to the mentioned external class which is not available in the current "java_require()" path. Please check the path and the SEL and File permissions and remember that all interconnected classes must be loaded with a single java_require() call, i.e. use java_require("foo.jar;bar.jar") instead of java_require("foo.jar"); java_require("bar.jar"). Please check the Java Bridge log file for details."] thrown in /home/wendy/public_html/test3.php on line 6 I am running on a FC5 machine, SEL disabled, 64-bit, using Java sockets and a standalone app. Is this problem occurring because my default java install has a 32-bit installation, and the bridge is requiring a 64-bit installation? If so, do I need to upgrade my version of java to the 64-bit installation somehow? (Ref: We had previously discussed my errors in a message entitled: "Installing on Fedora Core 5") Thanks very much. -- Wendy |
From: <php...@li...> - 2006-07-14 17:03:27
|
Hi Wendy, > "lucene-2.0.0 > I get the following error about missing > java.security.Security. this sounds like a GNU Java problem[1]. GNU Java doesn't print the name of the missing class but the name of the class that reports the problem. I think the real problem is that the class java.security.Security complains that the concrete security provider is missing. Can you please set the log level to 5 and run the test again? It should display a "searching for class XXX" where XXX is the missing class. Please open a ticket (please use http://sourceforge.net/tracker/?func=add&group_id=117793&atid=679233) and attach the log there. I will check this tomorrow for the new 3.1.5 release. Regards, Jost Boekemeier [1] The source download archive contains a 1.x lucene.jar in the unsupported folder which has been tested against GNU Java and GCJ, please see http://php-java-bridge.sourceforge.net/examples/search/. Another example is here: http://php-java-bridge.sourceforge.net/documentation/PHP-API/html/java_8c.html#a54. It might be that lucene 2.x doesn't work with GNU Java at the moment, I will check this. ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2006-07-14 17:16:12
|
Jost, While restarting my php-bridge, I noticed that I had two instances of the bridge running! root 3137 1 0 Jul07 ? 00:00:00 java - Djava.ext.dirs=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre/lib/ext -jar JavaBridge.jar INET:9267 3 JavaBridge.log apache 15746 15745 0 Jul09 ? 00:00:01 java - Djava.ext.dirs=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre/lib/ext - Djava.library.path=/usr/lib64/php/modules - Djava.class.path=/usr/lib64/php/modules/JavaBridge.jar - Djava.awt.headless=true -Dphp.java.bridge.base=/usr/lib64/php/modules php.java.bridge.JavaBridge INET_LOCAL:0 1 r I shut both down, restarted an instance similar to the first, restarted apache, and I no longer receive the error. I am not sure why that was occurring. Now, just to get Lucene working properly :) Thanks *so* much for all your help. Good luck with your next release! Wendy On 7/14/06, php...@li... < php...@li...> wrote: > > Hi Wendy, > > > "lucene-2.0.0 > > I get the following error about missing > > java.security.Security. > > this sounds like a GNU Java problem[1]. GNU Java > doesn't print the name of the missing class but the > name of the class that reports the problem. > > I think the real problem is that the class > java.security.Security complains that the concrete > security provider is missing. > > Can you please set the log level to 5 and run the test > again? It should display a "searching for class XXX" > where XXX is the missing class. > > Please open a ticket (please use > http://sourceforge.net/tracker/?func=add&group_id=117793&atid=679233) > and attach the log there. I will check this tomorrow > for the new 3.1.5 release. > > > Regards, > Jost Boekemeier > > [1] The source download archive contains a 1.x > lucene.jar in the unsupported folder which has been > tested against GNU Java and GCJ, please see > http://php-java-bridge.sourceforge.net/examples/search/. > Another example is here: > > http://php-java-bridge.sourceforge.net/documentation/PHP-API/html/java_8c.html#a54 > . > It might be that lucene 2.x doesn't work with GNU Java > at the moment, I will check this. > > > > > ___________________________________________________________ > Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > -- Wendy |