|
From: <php...@li...> - 2009-11-26 17:13:48
|
Hi, If moodle uses the same pattern as described here ( http://sourceforge.net/mailarchive/forum.php?thread_name=3afa16cf0911150804j32fecc93p52edb3b983b6fd99%40mail.gmail.com&forum_name=php-java-bridge-users), the web.xml from JavaBridgeTemplate will evaluate the script in a non-toplevel environment. Can you please use the JavaBridge.war instead of the JavaBridgeTemplate.war and try again? Regards, Jost Boekemeier 26.11.2009 17:43 schrieb am <php...@li...>: I am trying to use the PHP/JavaBridge to run Moodle on GlassFish v3. I uncompressed Moodle and added WEB-INF/lib/JavaBridge.jar WEB-INF/lib/php-script.jar WEB-INF/lib/php-servlet.jar WEB-INF/web.xml from the PHP/JavaBridge distribution. I also added a test page test.php with contents <?php phpinfo(); ?> I use directory deployment in GlassFish. The test page comes up fine. But when I point to Moodle, I get java.lang.RuntimeException: PHP Notice: Trying to get property of non-object in /tmp/moodle/lib/componentlib.class.php on line 126 PHP Warning: require_once(/filelib.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /tmp/moodle/lib/componentlib.class.php on line 126 PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required '/filelib.php' (include_path='.:/usr/share/php:/usr/share/pear') in /tmp/moodle/lib/componentlib.class.php on line 126 I don't understand why it can't filelib.php--it is in /tmp/moodle/lib. Is there anything that I am overlooking? This is the first time that I am trying to use the bridge. (FWIW, the app comes up fine under Caucho Quercus in GlassFish.) Thanks, Cay ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |