|
From: <php...@li...> - 2008-02-14 09:04:10
|
Hi,
I found that this error is not connected with libraries used in Java. Rather it has something with proxy, as the error code refere to the Java.inc getProxy function. However, I don't have problem to access other java classes in the same package, as well as to access this class from Java code. Here is the complete error code I got:
Error (File: http://localhost:8080/JavaBridge/java/Java.inc, line 222): [[o:ClassNotFoundException]:"java.lang.ClassNotFoundException: Unresolved external reference: java.lang.NoClassDefFoundError: org/openrdf/sesame/query/QueryEvaluationException. -- Unable to call constructor, see the README section "Java platform issues" for details." at: #-6 php.java.bridge.JavaBridge.getUnresolvedExternalReferenceException(JavaBridge.java:427) #-5 php.java.bridge.JavaBridge.CreateObject(JavaBridge.java:498) #-4 php.java.bridge.Request.handleRequest(Request.java:447) #0 http://localhost:8080/JavaBridge/java/Java.inc(259): java_ExceptionProxyFactory->getProxy(4, 'java.lang.Class...', true) #1 http://localhost:8080/JavaBridge/java/Java.inc(411): java_Arg->getResult(true) #2 http://localhost:8080/JavaBridge/java/Java.inc(417): java_Client->getWrappedResult(true) #3 http://localhost:8080/JavaBridge/java/Java.inc(621): java_Client->getResult() #4
http://localhost:8080/JavaBridge/java/Java.inc(1744): java_Client->invokeMethod(3, 'getCause', Array) #5 http://localhost:8080/JavaBridge/java/Java.inc(2112): java_JavaProxy->__call('getCause', Array) #6 [internal function]: java_exception->__call('getCause', Array) #7 C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\test\test.php(18): java_InternalException->getCause() #8 {main}]
Thanks
Zoran
php...@li... wrote:
Hi,
I'm newby in PHP and PHP/Java bridge, and I have some doubt about it. It seems that I can not instantiate Java class from PHP in case that class imports some external library, regardless that library is available in jar file that I use. Here is the PHP code:
....
require_once('http://localhost:8080/JavaBridge/java/Java.inc');
java_require("moodleLOCMapper v0.003.jar");
$repository=new Java("depths.moodle.RepositoryFactory");
....
Java code
package depths.moodle;
import org.openrdf.sesame.repository.SesameRepository;
import depths.moodle.repository.Repository;
public class RepositoryFactory {
....
And here is the error:
javax.servlet.ServletException: PHP Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: CreateInstance failed: new depths.moodle.RepositoryFactory. Cause: java.lang.ClassNotFoundException: Unresolved external reference: java.lang.NoClassDefFoundError: org/openrdf/sesame/query/QueryEvaluationException. -- Unable to call constructor, see the README section "Java platform issues" for details. VM: 1.6.0_04@http://java.sun.com/" at:
Did I make some mistake here, or I have to create facade class in order to access this class?
Thanks
Zoran
---------------------------------
Looking for last minute shopping deals? Find them fast with Yahoo! Search.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
|