|
From: <php...@li...> - 2009-02-07 21:04:05
|
Hello, I'm trying yo install the php-java bridge on Tomcat 6, my PC runs Windows XP. I've copied to war file to webapps, when starting tomcat I get these messages on the log file: Feb 7, 2009 10:14:55 PM org.apache.catalina.core.ApplicationContext log INFO: PHP/Java Bridge servlet C:\apache-tomcat-6.0.18_php\webapps\JavaBridge version 5.4.3.1 ready. Feb 7, 2009 10:14:59 PM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextInitialized() Feb 7, 2009 10:14:59 PM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() Feb 7, 2009 10:15:15 PM org.apache.catalina.core.ApplicationContext log INFO: PHP application terminated unexpectedly, have you started php-cgi with the environment setting PHP_FCGI_MAX_REQUESTS=5000? Error: php.java.servlet.fastcgi.ConnectionException Feb 7, 2009 10:15:15 PM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet PhpCGIServlet threw exception java.io.IOException: Protocol error at php.java.servlet.fastcgi.FastCGIInputStream.doRead(FastCGIInputStream.java:64) at php.java.servlet.fastcgi.FastCGIInputStream.read(FastCGIInputStream.java:51) at php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.parseBody(FastCGIServlet.java:451) at php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.doExecute(FastCGIServlet.java:374) at php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.execute(FastCGIServlet.java:382) at php.java.servlet.CGIServlet.handle(CGIServlet.java:401) at php.java.servlet.PhpCGIServlet.handle(PhpCGIServlet.java:350) at php.java.servlet.CGIServlet.doGet(CGIServlet.java:470) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:619) Trying to access the test.php file, I'm getting error messages occured by the browser (IE7) Is there some config I missed? Thanks, Barak. |
|
From: <php...@li...> - 2009-02-08 18:17:15
|
Hi, you have managed to create a broken PHP installation using the PHP setup tool. Please *do* report this problem to the PHP maintainers. Please see this thread for details: http://sourceforge.net/mailarchive/forum.php?thread_name=2110.209.115.238.196.1226966315.squirrel%40www.intellog.com&forum_name=php-java-bridge-users Regards, Jost Boekemeier |
|
From: <php...@li...> - 2009-02-09 07:57:05
|
Hi,
These is really informative thread, sorry for missing it during on my
searches.
How ever, this ocuured on clear install of the bridge, no extention imported
from the PHP installation, php.ini remained unchanged.
I even tried
<init-param>
<param-name>prefer_system_php_exec</param-name>
<param-value>Off</param-value>
</init-param>
in my web.xml, but as someone said "still no joy". If this helps, the error
signature the IE produced is:
AppName: php-cgi-x86-windows.exe AppVer: 5.2.1.1 ModName:
php-cgi-x86-windows.exe
ModVer: 5.2.1.1 Offset: 0000160a
Should I install older bridge version?
Seeking for help,
Barak.
On Sun, Feb 8, 2009 at 8:17 PM, <php...@li...
> wrote:
> Hi,
>
>
> you have managed to create a broken PHP installation using the PHP setup
> tool. Please *do* report this problem to the PHP maintainers.
>
>
> Please see this thread for details:
>
>
> http://sourceforge.net/mailarchive/forum.php?thread_name=2110.209.115.238.196.1226966315.squirrel%40www.intellog.com&forum_name=php-java-bridge-users
>
>
>
> Regards,
> Jost Boekemeier
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> Create and Deploy Rich Internet Apps outside the browser with
> Adobe(R)AIR(TM)
> software. With Adobe AIR, Ajax developers can use existing skills and code
> to
> build responsive, highly engaging applications that combine the power of
> local
> resources and data with the reach of the web. Download the Adobe AIR SDK
> and
> Ajax docs to start building applications today-
> http://p.sf.net/sfu/adobe-com
> _______________________________________________
> php-java-bridge-users mailing list
> php...@li...
> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
>
|
|
From: <php...@li...> - 2009-02-09 13:52:04
|
Hi,
> How ever, this ocuured on clear install of the bridge, no
> extention imported
> from the PHP installation, php.ini remained unchanged.
What do you mean with this? We were talking about the PHP installation, not about the PHP/Java Bridge or its installation. The bridge tries to start a standard PHP FastCGI server attached to the JVM using the command:
set REDIRECT_STATUS "200"
set X_JAVABRIDGE_OVERRIDE_HOSTS "/"
set PHP_FCGI_CHILDREN "5"
set PHP_FCGI_MAX_REQUESTS "5000"
launcher.exe php-cgi \\.\pipe\JavaBridge@9667 -d allow_url_include=On
If that failed, the bridge runs php-cgi as follows:
c:\Program Files\PHP\php-cgi.exe -i
According to your log, both, the FastCGI as well as the simple .exe file invocation failed. I am sorry, but I don't think we can help you any further. Please report this bug to the PHP maintainers instead.
> <param-name>prefer_system_php_exec</param-name>
> <param-value>Off</param-value>
> </init-param>
>
> in my web.xml,
So the php executable shipped with the JavaBridge.war file crashes on your operating system, too.
This may mean that a) your operating system cannot execute standard .exe files or b) php crashes when reading your system php.ini file.
Please see our FAQ entry "I get a blank page or some other error!?!" for hints how to debug your PHP installation.
Regards,
Jost Bökemeier
|
|
From: <php...@li...> - 2009-02-09 14:09:56
|
Ok, I think I solved it. When executing the php exe shipped with the bridge from the cli, it complains about not founding dlls from the PHP installation. I've removed from PATH the php install directory and unset env variable called PHPRC (also points to php install directory) - and... joy! I've also imported the gd dll to the bridge and (for now) its working :-) Just starting with php and java, I'm sure u'll hear from me... :-) Barak. On Mon, Feb 9, 2009 at 3:52 PM, <php...@li... > wrote: > Hi, > > > How ever, this ocuured on clear install of the bridge, no > > extention imported > > from the PHP installation, php.ini remained unchanged. > > What do you mean with this? We were talking about the PHP installation, not > about the PHP/Java Bridge or its installation. The bridge tries to start a > standard PHP FastCGI server attached to the JVM using the command: > > set REDIRECT_STATUS "200" > set X_JAVABRIDGE_OVERRIDE_HOSTS "/" > set PHP_FCGI_CHILDREN "5" > set PHP_FCGI_MAX_REQUESTS "5000" > launcher.exe php-cgi \\.\pipe\JavaBridge@9667 -d allow_url_include=On > > If that failed, the bridge runs php-cgi as follows: > > c:\Program Files\PHP\php-cgi.exe -i > > According to your log, both, the FastCGI as well as the simple .exe file > invocation failed. I am sorry, but I don't think we can help you any > further. Please report this bug to the PHP maintainers instead. > > > > <param-name>prefer_system_php_exec</param-name> > > <param-value>Off</param-value> > > </init-param> > > > > in my web.xml, > > So the php executable shipped with the JavaBridge.war file crashes on your > operating system, too. > > This may mean that a) your operating system cannot execute standard .exe > files or b) php crashes when reading your system php.ini file. > > Please see our FAQ entry "I get a blank page or some other error!?!" for > hints how to debug your PHP installation. > > > Regards, > Jost Bökemeier > > > > > > > ------------------------------------------------------------------------------ > Create and Deploy Rich Internet Apps outside the browser with > Adobe(R)AIR(TM) > software. With Adobe AIR, Ajax developers can use existing skills and code > to > build responsive, highly engaging applications that combine the power of > local > resources and data with the reach of the web. Download the Adobe AIR SDK > and > Ajax docs to start building applications today- > http://p.sf.net/sfu/adobe-com > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |