From: <php...@li...> - 2006-10-06 17:44:28
|
>please excuse the delay. No problem, appreciate the reply/info >I assume you're running setup #6 (see http://php-java-bridge.sourceforge.net/README). Yes, standalone Tomcat 5.0.28 on Win2k > It is possible to adjust the php_exec option, see WEB-INF/web.xml. It defaults to > WEB-INF/cgi/php-cgi-<arch>-<os>, which is PHP 5.1. You can set it to > c:/php-cgi.exe for example. I cannot find any file in the php release named 'php-cgi.exe'. I believe that php-cgi.exe is php5... I've tried using a path to the cli (c:/php/cli/php.exe) version and the cgi (c:/php/php.exe) version of php.exe in the C:\Apache\Tomcat\webapps\JavaBridge\WEB-INF\web.xml file (uncommented lines 58-61, and updated the value) but both result in an exception when I try to run the test.php page: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: String index out of range: -1 php.java.servlet.PhpCGIServlet.doGet(PhpCGIServlet.java:567) javax.servlet.http.HttpServlet.service(HttpServlet.java:689) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) root cause java.lang.StringIndexOutOfBoundsException: String index out of range: -1 java.lang.String.substring(String.java:1444) php.java.servlet.CGIServlet$CGIEnvironment.init(CGIServlet.java:563) php.java.servlet.PhpCGIServlet.createCGIEnvironment(PhpCGIServlet.java:4 30) php.java.servlet.CGIServlet.doGet(CGIServlet.java:448) php.java.servlet.PhpCGIServlet.doGet(PhpCGIServlet.java:535) javax.servlet.http.HttpServlet.service(HttpServlet.java:689) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs. I'm obviously still missing something, any ideas? Mike |