|
From: <php...@li...> - 2009-04-08 08:27:52
|
Okay, now we are at something.
It seems that Java.inc could not be found. Isn't it possible to copy the
java\Java.inc to your web application and require() it from there?
Another possibility is to copy all the code from Java.inc directly into your
hello world script.
Something like
<?php our Java.inc code ...?>
<?php
Your hello world php code
?>
BTW: Java.inc is distributed under the MIT license, so you can do with the
code whatever you want. We will add such a notice to Java.inc in one of the
next releases.
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
|