|
From: <php...@li...> - 2010-06-15 10:41:12
|
Am 14.06.2010 20:26, schrieb php...@li...: > Hi, > > > >> i installed php-java bridge to a tomcat server. if i try the examples i >> always get "Fatal error: Cannot redeclare java() in >> http://localhost:8080/JavaBridge/java/Java.inc on line 81". >> I'm running zend server with php 5.2.13 on a debian machine. Any ideas whats >> wrong?* >> > > Please see our FAQ entry "I get a blank page or some other error!?!" > at http://php-java-bridge.sourceforge.net/pjb/FAQ.html : > > If the command: > > echo '<?php > require_once("http://localhost:8080/JavaBridge/java/Java.inc"); echo > java("java.lang.System")->getProperties();?>' | php -n -d > allow_url_include=On > > works in the shell but not within apache, then there's something wrong > with your php.ini file. > > > Regards, > Jost Boekemeier > indeed the shell command worked. The problem was, that the Zend Java Bridge Component was loaded. After deactivating it, it works as expected. regards, Thomas |