Hi,
I'm a beginner with JavaBridge. I'm executing this example (custom
servlet):
http://php-java-bridge.sourceforge.net/pjb/servlet-programming.php
Well. When I run the servlet, this runs ok and it don't generate errors,
but when I run this php script:
<?php
define("JAVA_HOSTS", "localhost:8080");
define("JAVA_SERVLET", "/MyWebApp/Hello");
require_once("Java.inc");
echo java_context()->getServlet()->hello();
?>
the script generates this error:
HTTP Status 500
The server encountered an internal error () that prevented it from
fulfilling this request
java.lang.NullPointerException
php.java.servlet.RemoteHttpServletCont in /var/www/Java.inc on line 869
I don't understand because it generates this errors, any ideas ?.
Rober.
|