|
From: <php...@li...> - 2009-04-08 09:39:07
|
I think we should add a short path to the bridge so that users dont have to
require Java.inc when PHP scripts are running within a servlet engine.
This means that we add code to the FastCGI and CGI servlet, which acquires a
SocketContextServer early and then feeds the code from Java.inc to the open
Fast-CGI input stream. Similar to what our JSR 223 scripts do. This doesn't
necessarily make php scripts which don't require Java functionality slower,
as this short path consomes only one continuation instead of two.
Which in turn means that the servlet thread pool cannot overrun, so the pool
check can go away (the check was ugly and worked only on some known engines
anyway).
Regards,
Jost Boekemeier
--
Apr 8, 2009 10:10 vorm. schrieb am <
php...@li...>:
test.php:
escription The server encountered an internal error () that prevented it
from fulfilling this request.exception javax.servlet.ServletException:
java.lang.RuntimeException: PHP Warning: require_once(java/Java.inc) [<a
href='function.require-once'>function.require-once</a>]: failed to open
stream: No such file or directory in
C:\Development\apache-tomcat-6.0.18\webapps\HelloWorldWebApp\test.php on
line 1
PHP Fatal error: require_once() [<a
href='function.require'>function.require</a>]: Failed opening required
'java/Java.inc' (include_path='.;C:\php5\pear') in
C:\Development\apache-tomcat-6.0.18\webapps\HelloWorldWebApp\test.php on
line 1
php.java.servlet.PhpCGIServlet.handle(PhpCGIServlet.java:397)
php.java.servlet.CGIServlet.doGet(CGIServlet.java:469)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
root cause java.lang.RuntimeException: PHP Warning:
require_once(java/Java.inc) [<a
href='function.require-once'>function.require-once</a>]: failed to open
stream: No such file or directory in
C:\Development\apache-tomcat-6.0.18\webapps\HelloWorldWebApp\test.php on
line 1
PHP Fatal error: require_once() [<a
href='function.require'>function.require</a>]: Failed opening required
'java/Java.inc' (include_path='.;C:\php5\pear') in
C:\Development\apache-tomcat-6.0.18\webapps\HelloWorldWebApp\test.php on
line 1
php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.parseBody(FastCGIServlet.java:478)
php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.doExecute(FastCGIServlet.java:373)
php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.execute(FastCGIServlet.java:381)
php.java.servlet.CGIServlet.handle(CGIServlet.java:399)
php.java.servlet.PhpCGIServlet.handle(PhpCGIServlet.java:363)
php.java.servlet.CGIServlet.doGet(CGIServlet.java:469)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
note The full stack trace of the root cause is available in the Apache
Tomcat/6.0.18 logs.Apache Tomcat/6.0.18
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|