From: <php...@li...> - 2006-05-31 09:56:47
|
Hi, answering to myself - the problem wasn't include files, that just works fin= e.=20 The problem is that the 'real' application was running on ssl port 8443=20 instead of 8080. I tried modifying the php.ini setting java.hosts, but without success -=20 java.hosts=3D"127.0.0.1:8443" will lead to the same error. Is there any way to make use of the bride usin= g=20 ssl? Cheers flim On Wednesday 31 May 2006 11:17,=20 php...@li... wrote: > Hi List, > > I've been playing around with the bridge for some time now and started to > do some 'real' work with it today. My first move was to move the php > classes I've used so far into separate files - which didn't work :| > > This code works fine: > <?php > =C2=A0 =C2=A0$session =3D java_session(); > ?> > > Now, let's name that code file1.php. If I do > <?php > =C2=A0 =C2=A0include('file1.php'); > ?> > > from any other file (while file1.php =C2=A0is in the same folder or not),= I'm > getting the following error: > > Fatal error: php_mod_java(88): Protocol violation at pos 7, please check > that the backend (JavaBride.war) is deployed or please switch off the > java.servlet option. in ...file1.php on line 2 > > That goes for basically all java_ commands (e.g. java_context() instead of > java_session()). > > Any idea how to solve that? > > To give some further information: I'm running the bridge inside tomcat on > ubuntu linux with php compiled as fastcgi. Bride resides in <tomcat > root>/shared/lib, as discussed in documentation. No problems at all to use > the bridge from within > > Cheers > flim |