Okay, I installed and started Tomcat, deployed JavaBridge.war onto it.
I have Apache 2.2 and PHP 5.1.2 installed on Suse Linux.
When I go to localhost/test.php, which contains only
require_once("http://localhost:8080/JavaBridge/java/Java.inc");
$s = new Java("java.lang.System");
echo $s->getProperties();
I get a blank page back.
When I go to localhost:8080/JavaBridge I get the following error message:
Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: An IO exception occured. Probably php was not installed as "/usr/bin/php-cgi" or "c:/php/php-cgi.exe"
or "/srv/www/tomcat5/base/webapps/JavaBridge/WEB-INF/cgi/php-cgi-i386-linux[.sh]|[.exe]".
Please see "php_exec" in your WEB-INF/web.xml and WEB-INF/cgi/README for details.
php.java.servlet.PhpCGIServlet.doGet(PhpCGIServlet.java:339)
javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
root cause
java.io.IOException: java.io.IOException: php-cgi: not found
java.lang.UNIXProcess.<init>(UNIXProcess.java:148)
java.lang.ProcessImpl.start(ProcessImpl.java:65)
java.lang.ProcessBuilder.start(ProcessBuilder.java:451)
java.lang.Runtime.exec(Runtime.java:591)
php.java.bridge.Util$Process.start(Util.java:791)
php.java.bridge.Util$ProcessWithErrorHandler.start(Util.java:885)
php.java.bridge.Util$ProcessWithErrorHandler.start(Util.java:939)
php.java.servlet.PhpCGIServlet$CGIRunner.run(PhpCGIServlet.java:254)
php.java.servlet.CGIServlet.doGet(CGIServlet.java:463)
php.java.servlet.PhpCGIServlet.doGet(PhpCGIServlet.java:328)
javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
note The full stack trace of the root cause is available in the Apache Tomcat/5.0 logs.
-------- Original-Nachricht --------
Datum: Thu, 29 Mar 2007 17:48:40 +0200 (CEST)
Von: php...@li...
An: php...@li...
Betreff: Re: [Php-java-bridge-users] Persisting Php-Java-Bridge
>
> > The JavaBridge is running as its own "Server"
>
> So you have started the built-in servlet engine.
>
>
> > "java -jar javabridge.jar SERVLET_LOCAL:8080". Why
> > do I need Tomcat then?
>
> Because we don't provide scripts which could start the
> built-in servlet engine as a service. Please use a
> real servlet engine or J2EE server instead. This will
> be much faster, too. Our simple servlet engine only
> supports HTTP 1.0, which means that PHP cannot use
> persistent connections.
>
>
> Regards,
> Jost Boekemeier
>
>
>
>
>
>
>
> ___________________________________________________________
> Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail:
> http://mail.yahoo.de
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> php-java-bridge-users mailing list
> php...@li...
> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
--
"Feel free" - 5 GB Mailbox, 50 FreeSMS/Monat ...
Jetzt GMX ProMail testen: http://www.gmx.net/de/go/promail
|