View Full Version : Magento + Quercus + Tomcat problem

10-27-2010, 09:35 AM

I'm trying to integrate Magento in a Grails web app, running for development purposes in Tomcat. Simple PHP scripts are working fine, but things get more complicated when trying to integrate Magento. I inserted the whole Magento directory structure at the toplevel of my web app. When trying to open http://localhost:8080/<my_web_app>/magento/index.php (or install.php), I get the following error messages:

<my_webapp_path>/magento/app/code/core/Mage/Core/Model/App.php:818: Fatal Error: 'setId' is an unknown method of false.

<my_webapp_path>/magento/app/code/core/Mage/Core/Model/App.php:818: Fatal Error: 'setId' is an unknown method of false.

<my_webapp_path>/magento/app/code/core/Mage/Core/Model/App.php:818: Warning: 'Class/Com.caucho.quercus.lib.simplexml.SelectedXMLElemen t/Store.php' is not a valid include path

... Repeated many times...

My web.xml correctly defines the path to php.ini which is inside my magento subdirectory. This PHP.ini is currently exactly the one which comes with the Magento distribution.

The php_info() function displays the following:

PHP Version => 5.3.2
System => Mac OS X 10.5.8 x86_64
Build Date => 20100511
Configure Command => n/a
Server API => CGI
Virtual Directory Support => disabled
Configuration File (php.ini) Path => <path_to_my_web-app>/WEB-INF/php.ini
PHP API => 20031224
PHP Extension => 20041030
Debug Build => no
Thread Safety => enabled
Registered PHP Streams => php, file, http, https

My php.ini file is correctly read. I tried to specify an include_path inside this php.ini file, so that the misc PHP includes can be found, without any success.

Any help on this subject would be highly appreciated !
Thank you very much in advance,