From: <php...@li...> - 2006-07-11 09:02:14
|
Hi there, at first: I'm German, that's why my englich is not so good! I have a Problem with the PHP-Java-Bridge: I have a little Java-Programm thats establish a connection to a Progress-ApplicationServer and prints data from the Database on the Screen. I'm using a Java-Class that is generated by a Progress Proxy-Generator. That Programm runs correcly. But when I use that Class in PHP with the PHP-Java-Bridge I get the following Error-Messages in the log-file: Jul 11 10:34:28 JavaBridge ERROR: An exception occured: java.lang.reflect.InvocationTargetException java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at php.java.bridge.JavaBridge.CreateObject(JavaBridge.java:547) at php.java.bridge.Request.handleRequest(Request.java:502) at php.java.bridge.Request.handleRequests(Request.java:533) at php.java.bridge.JavaBridge.run(JavaBridge.java:189) at php.java.bridge.BaseThreadPool$Delegate.run(BaseThreadPool.java:37) Caused by: com.progress.open4gl.ConnectException: Could not connect to the AppServer: General Error: Cannot find the support library for the http protocol (9989). (7203) at com.progress.open4gl.dynamicapi.ExceptionConverter.convertToConnectException(ExceptionConverter.java:133) at com.progress.open4gl.dynamicapi.Session.connect(Session.java:252) at com.progress.open4gl.dynamicapi.Session.connect(Session.java:218) at com.progress.open4gl.javaproxy.AppObject.connect(AppObject.java:90) at IMDA.imdapgImpl.<init>(imdapgImpl.java:227) at IMDA.imdapg.<init>(imdapg.java:37) ... 9 more I'm Wondering, because the Java-Application (a Console-program) works correcly..... And on my Windows-PC that works fine too with the PHP-Java-Bridge. But on the SuSE vroot-Server not...... This is my PHP-File: java_require("imda.jar;o4glrt.jar"); $imda = new Java('IMDA.imdapg','AppServerDC://a.host.de:port/name','',''); var_dump($imda); The $imda - Variable is always the boolse Value false. The files imda.jar und o4glrt.jar are in the Directory /usr/lib/php/extensions/lib Has Anyone a Suggestion how that program running correct? Have I a Generally Error with the CLASSPATH? I have the Impression that not all Classes can found from the PHP-Java-Bridge..... Regards Andreas Barthel |