From: <php...@li...> - 2006-06-04 18:19:19
|
Hi Jost, On Sunday 04 June 2006 13:21, Jost Boekemeier wrote: > It cannot use SSL, no. Isn't it possible to use a > dedicated HTTP port for the PHP<-->JAVA communication? Yes, that is possible. And it sounds like an elegant solution > For example the following entry in the tomcat > server.xml should solve this: > <Connector port=3D"7777" address=3D"127.0.0.1"/> > The php.ini entry would look like: > extension=3Djava.so > [java] > java.hosts=3D127.0.0.1:7777 > java.servlet=3DOn And it works. Sometimes :| I'm not really sure what's happening there. As said before, I'm trying to r= un=20 php within tomcat without apache (or any other webserver being involved). I= 'm=20 using JavaBridge.jar and php_servlet.jar in shared/libs with JavaBridge.war= =20 in webapps (which works just fine). conf/web.xml contains only what's advic= ed=20 on the website, conf/web.xml within JavaBridge is unchanged and=20 php-cgi-i386-linux.ini in /webapps/JavaBridge/WEB-INF/cgi/ was modified to= =20 the above. Now, after tomcat restart, it sometimes works and sometimes doesn't. I'm=20 testing my configuration with /root.php in /ROOT/, I'm=20 using /JavaBridge/test.php for testing JavaBridge in general. If I restart tomcat and access https://localhost:8443/root.php I'm getting = an=20 error telling me that php-cgi couldn't be found in /usr/bin (which is true,= =20 it doesn't exist). If I restart tomcat and access=20 http://localhost:8080/root.php it works fine. If I access 8443/root.php after restart and it fails, I won't be able to ca= ll=20 8080/root.php as well without getting an error. However, If I first call=20 8443/root.php, then 8080/JavaBridge/test.php and then again 8443/root.php, = it=20 works. Sometimes that is - sometimes it doesn't at all. I don't seem to be able to find any rule behind that. I however tested it a= =20 couple of times and it looks like this: if 8443/root.php gets called first,= =20 then I've to call 8080/JavaBridge/test.php and afterwards 8080/root.php=20 before 8443/root.php works. If I don't call the two scripts in that order, = I=20 won't get 8443/root.php to work without restarting tomcat. Oh, root.php looks like this: <?php $s =3D java_session(); //to verify I can access those methods phpinfo(); ?> (so nothing special in there - I however didn't test taking the java_sessio= n()=20 away) I can imagine that you guys are putting an incredible amount of work into t= his=20 project - let me say that it's greatly appreciated. It would be very helpfu= l=20 though, if you could extend the descriptions on the website so that they ar= e=20 easier to follow :-) Sorry for this long email - I'm uncertain if this is a bug in JavaBridge or= a=20 misconfiguration on my end and thought that if the first is true, you might= =20 need a detailed report. Best regards flim |