|
From: <php...@li...> - 2007-08-01 17:54:43
|
Background:
JavaBridge version is 4.1.7_j2ee
I'm using Tomcat 6.0 (running as a service) as the JVM.
Java version is 1.6.0_02
I'm running IIS (needs to work on both v5.1 and v6.0, which are running on Windows XP pro and Windows Server 2003 respectively)
PHP is version 5.2.3 and is running as an ISAPI
php directory is C:/PHP5
I want to run the javaBridge's pure php implementation
I do not want to run php as a CGI, but rather use my already running ISAPI php
When I first place the javaBridge.war file in Tomcat's webapps directory, it works fine regardless of which machine I used to access
http://localhost:8080/JavaBridge/test.php
However it does use CGI/FastCGI version of php (5.2.1) which is obviously not the ISAPI php instance I want it to use. It does list C:PHP5\php.ini as the php.ini file that was loaded, so it must be finding the php folder.
Also, when I restart the computer, a request to http://localhost:8080/JavaBridge/test.php
from the localhost will fail with
Warning: fread() [function.fread]: Length parameter must be greater than 0 in C:\Inetpub\wwwroot\JavaBridge\java\Java.inc on line 884
protocol error. , Invalid document end at col 1
However, if I go to the same page from a different computer
for instance:
http://192.168.0.5:8080/JavaBridge/test.php
the test completes successfully
So, I have two questions, how can I configure the bridge to use my ISAPI php instance, and why can I only run java from a computer that's not the server?
Thank you for your time.
--Nathan Shaskin
Compliance Publishing
---------------------------------
Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more.
|