You can subscribe to this list here.
| 2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(6) |
Oct
(6) |
Nov
(8) |
Dec
(2) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2005 |
Jan
(19) |
Feb
(15) |
Mar
(10) |
Apr
(8) |
May
(7) |
Jun
(9) |
Jul
(13) |
Aug
(31) |
Sep
(111) |
Oct
(52) |
Nov
(72) |
Dec
(42) |
| 2006 |
Jan
(21) |
Feb
(32) |
Mar
(33) |
Apr
(24) |
May
(15) |
Jun
(40) |
Jul
(32) |
Aug
(19) |
Sep
(38) |
Oct
(37) |
Nov
(63) |
Dec
(37) |
| 2007 |
Jan
(18) |
Feb
(39) |
Mar
(69) |
Apr
(49) |
May
(71) |
Jun
(59) |
Jul
(71) |
Aug
(85) |
Sep
(46) |
Oct
(14) |
Nov
(25) |
Dec
(56) |
| 2008 |
Jan
(24) |
Feb
(77) |
Mar
(104) |
Apr
(44) |
May
(41) |
Jun
(11) |
Jul
(31) |
Aug
(59) |
Sep
(44) |
Oct
(86) |
Nov
(66) |
Dec
(93) |
| 2009 |
Jan
(88) |
Feb
(41) |
Mar
(49) |
Apr
(135) |
May
(22) |
Jun
(31) |
Jul
(60) |
Aug
(71) |
Sep
(76) |
Oct
(18) |
Nov
(52) |
Dec
(20) |
| 2010 |
Jan
(8) |
Feb
(50) |
Mar
(35) |
Apr
(48) |
May
(46) |
Jun
(84) |
Jul
(38) |
Aug
(61) |
Sep
(51) |
Oct
(31) |
Nov
(17) |
Dec
(18) |
| 2011 |
Jan
(51) |
Feb
(14) |
Mar
(17) |
Apr
(23) |
May
(15) |
Jun
(11) |
Jul
(5) |
Aug
(5) |
Sep
(15) |
Oct
(8) |
Nov
(5) |
Dec
(25) |
| 2012 |
Jan
(2) |
Feb
(4) |
Mar
(6) |
Apr
(9) |
May
(27) |
Jun
(32) |
Jul
(36) |
Aug
(10) |
Sep
(16) |
Oct
(3) |
Nov
(13) |
Dec
(7) |
| 2013 |
Jan
(1) |
Feb
(4) |
Mar
|
Apr
(1) |
May
|
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(4) |
Oct
(2) |
Nov
(1) |
Dec
|
| 2014 |
Jan
|
Feb
|
Mar
(2) |
Apr
(1) |
May
(2) |
Jun
(9) |
Jul
(5) |
Aug
(2) |
Sep
(4) |
Oct
|
Nov
|
Dec
|
| 2015 |
Jan
(3) |
Feb
(2) |
Mar
(4) |
Apr
(3) |
May
(1) |
Jun
(2) |
Jul
|
Aug
(2) |
Sep
(5) |
Oct
(1) |
Nov
|
Dec
|
| 2016 |
Jan
|
Feb
(5) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(5) |
Sep
(3) |
Oct
|
Nov
|
Dec
|
| 2017 |
Jan
(6) |
Feb
|
Mar
|
Apr
(10) |
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(1) |
Dec
|
| 2018 |
Jan
(2) |
Feb
(5) |
Mar
|
Apr
|
May
(1) |
Jun
(3) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2019 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
| 2020 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
| 2021 |
Jan
(5) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2023 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: <php...@li...> - 2009-03-06 17:59:17
|
Depending on how you start java, as a windows service or from the cmd shell, the environment may differ, yes. If your software depends on a certain environment, php...@li... wrote: >Hi Jost, > >Please bear with me, I understand I am treading difficult ground here. PHP >is working fine for me. php-cgi called directly does not crash, and it is >loading DLLs/extensions just fine (as I can see from the HTML output of >"php-cgi -i". My current hunch is that the problem is in the launcher or how >the launcher is calling php-cgi (or a problem with the GCC libraries used >with the launcher interacting with the latest patched XP). > >One hint is that when I start php-cgi by hand, it uses "C:/Windows/php.ini" >but when started by launcher.exe by the bridge it uses >"C:/....../webapps/JavaBridge/WEB-INF/cgi/php.ini" (both of my php.ini >versions are the same). In other words, the environment isn't exactly >identical between the two ways of launching php-cgi. I saw the command line >used with launcher, but there is pipe name in there. Is there a way I could >run launcher.exe directly but substitute something else for the pipe? > >Thanks, >Shash > >PS: Once I eliminate the launcher as a potential problem, I'll definitely >post a PHP bug. Please bear with me. >On Fri, Mar 6, 2009 at 11:03 AM, < >php...@li...> wrote: > >> Hi, >> please use one of the php mailing lists instead. Or use the bug tracker on >> php.net. php should not crash if you force it to load foreign dlls. >> >> However, as I understand this issue, you haven't installed php correctly. >> Copying arbitrary dll files into php doesn't help if the dlls use a >> different abi than the php. >> >> But I know that installing php on windows isn't easy, the windows installer >> doesn't allow one to install both, other-cgi and apache/iis sapi. And >> selecting everything will crash the php installation immediately. >> >> Regards. >> Jost Boekemeier >> >> >> php...@li... wrote: >> >> >If you can't load any php-extensions this is not a problem with the php >> java >> >bridge. >> >first try to figure that one out.. probably there are some problems with >> >your path. >> > >> >next, have you looked at the stack trace, especially the >> > >> >"have you started php-cgi with >> >the environment setting PHP_FCGI_MAX_REQUESTS=5000? " part? >> >have you set the environment variable? >> > >> >the php-java bridge works by invoking either a servlet on the java server >> >side >> >if you want to use java from within php >> >or certain php-scripts on the php server side if you want to use php from >> >within java. >> > >> >it looks like you want to use php from within java, but the php-process on >> >the server side >> >died (or you have not started the php-webserver) and because of this you >> get >> >the connection-error/IOException.. >> > >> >regards, >> >dominik >> > >> >2009/3/6 <php...@li...> >> > >> >> BTW, I wanted to mention, I have already tried some of the possible >> >> solutions I have found on the mailing-list archives here. >> >> >> >> - I have unset PHPRC and removed C:\PHP from windows Path, restarted >> Tomcat >> >> - no effect >> >> - I have changed prefer_system_php_exec to Off in web.xml, restarted >> Tomcat >> >> - no effect >> >> - C:\PHP\php-cgi -i does not crash >> >> >> >> On Fri, Mar 6, 2009 at 8:25 AM, Sasvata Chatterjee < >> >> sas...@gm...> wrote: >> >> >> >> > Hi, >> >> > >> >> > I am trying to use the bridge to run PHP5 under Tomcat on Windows XP. >> I >> >> > have started with the JavaBridge.war in webapps, and I can run >> >> > http://localhost:8080/JavaBridge/test.php fine. I was having trouble >> >> > loading the MySQL extension, and thought it was a problem with >> >> > communications to MySQL. But, I have finally figured out that I can't >> >> load >> >> > any PHP extensions at all, so I'll stick to mentioning php_bz2.dll. >> In >> >> the >> >> > Windows path, C:\PHP is included. >> >> > >> >> > The versions I have: >> >> > Tomcat-6.0.18 >> >> > PHP-5.2.6 >> >> > JavaBridge-5.4.3.3 >> >> > JDK-1.6.0_12 >> >> > >> >> > I have tried setting the registry to use C:\PHP\php.ini since my >> >> > command-line php executable loads the .ini and extensions, but it made >> no >> >> > difference under JavaBridge. For now, I am using WEB-INF\cgi\php.ini, >> as >> >> > confirmed by the output from test.php. From the default php.ini that >> came >> >> > with JavaBridge.war, all I have done is change the following: >> >> > >> >> > extensions="C:\PHP\ext\" >> >> > extension=php_bz2.dll >> >> > >> >> > and I get (if I restore those two lines, restart Tomcat, and access >> >> > test.php, everything works): >> >> > HTTP Status 500 - >> >> > ------------------------------ >> >> > >> >> > *type* Exception report >> >> > >> >> > *message* >> >> > >> >> > *description* *The server encountered an internal error () that >> prevented >> >> > it from fulfilling this request.* >> >> > >> >> > *exception* >> >> > >> >> > javax.servlet.ServletException: PHP FastCGI instance failed. >> >> > >> >> >> php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.execute(FastCGIServlet.java:395) >> >> > php.java.servlet.CGIServlet.handle(CGIServlet.java:401) >> >> > >> >> > php.java.servlet.PhpCGIServlet.handle(PhpCGIServlet.java:350) >> >> > php.java.servlet.CGIServlet.doGet(CGIServlet.java:471) >> >> > javax.servlet.http.HttpServlet.service(HttpServlet.java:617) >> >> > javax.servlet.http.HttpServlet.service(HttpServlet.java:717) >> >> > >> >> > *root cause* >> >> > >> >> > php.java.servlet.fastcgi.ConnectionException >> >> > >> >> >> php.java.servlet.fastcgi.FastCGIInputStream.read(FastCGIInputStream.java:55) >> >> > >> >> >> php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.parseBody(FastCGIServlet.java:451) >> >> > >> >> > >> >> >> php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.doExecute(FastCGIServlet.java:374) >> >> > >> >> >> php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.execute(FastCGIServlet.java:382) >> >> > php.java.servlet.CGIServlet.handle(CGIServlet.java:401) >> >> > >> >> > php.java.servlet.PhpCGIServlet.handle(PhpCGIServlet.java:350) >> >> > php.java.servlet.CGIServlet.doGet(CGIServlet.java:471) >> >> > javax.servlet.http.HttpServlet.service(HttpServlet.java:617) >> >> > javax.servlet.http.HttpServlet.service(HttpServlet.java:717) >> >> > >> >> > *root cause* >> >> > >> >> > java.io.IOException: Protocol error >> >> > >> >> >> php.java.servlet.fastcgi.FastCGIInputStream.doRead(FastCGIInputStream.java:64) >> >> > >> >> >> php.java.servlet.fastcgi.FastCGIInputStream.read(FastCGIInputStream.java:51) >> >> > >> >> > >> >> >> php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.parseBody(FastCGIServlet.java:451) >> >> > >> >> >> php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.doExecute(FastCGIServlet.java:374) >> >> > >> >> >> php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.execute(FastCGIServlet.java:382) >> >> > >> >> > php.java.servlet.CGIServlet.handle(CGIServlet.java:401) >> >> > php.java.servlet.PhpCGIServlet.handle(PhpCGIServlet.java:350) >> >> > php.java.servlet.CGIServlet.doGet(CGIServlet.java:471) >> >> > javax.servlet.http.HttpServlet.service(HttpServlet.java:617) >> >> > >> >> > javax.servlet.http.HttpServlet.service(HttpServlet.java:717) >> >> > >> >> > *note* *The full stack trace of the root cause is available in the >> Apache >> >> > Tomcat/6.0.18 logs.* >> >> > In the Tomcat logs, I get: >> >> > >> >> > Mar 6, 2009 8:19:29 AM 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 >> >> > Mar 6, 2009 8:19:29 AM 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:471) >> >> > 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(Unknown Source) >> >> > >> >> > I have set the PHP_FCGI_MAX_REQUESTS env. var., but made no >> difference. >> >> > >> >> > What am I doing wrong? Thanks in advance, >> >> > >> >> > Shash >> >> > >> >> >> >> >> ------------------------------------------------------------------------------ >> >> Open Source Business Conference (OSBC), March 24-25, 2009, San >> Francisco, >> >> CA >> >> -OSBC tackles the biggest issue in open source: Open Sourcing the >> >> Enterprise >> >> -Strategies to boost innovation and cut costs with open source >> >> participation >> >> -Receive a $600 discount off the registration fee with the source code: >> >> SFAD >> >> http://p.sf.net/sfu/XcvMzF8H >> >> _______________________________________________ >> >> php-java-bridge-users mailing list >> >> php...@li... >> >> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users >> >> >> >> >------------------------------------------------------------------------------ >> >Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, >> CA >> >-OSBC tackles the biggest issue in open source: Open Sourcing the >> Enterprise >> >-Strategies to boost innovation and cut costs with open source >> participation >> >-Receive a $600 discount off the registration fee with the source code: >> SFAD >> >http://p.sf.net/sfu/XcvMzF8H >> >_______________________________________________ >> >php-java-bridge-users mailing list >> >php...@li... >> >https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users >> >> >> ------------------------------------------------------------------------------ >> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, >> CA >> -OSBC tackles the biggest issue in open source: Open Sourcing the >> Enterprise >> -Strategies to boost innovation and cut costs with open source >> participation >> -Receive a $600 discount off the registration fee with the source code: >> SFAD >> http://p.sf.net/sfu/XcvMzF8H >> _______________________________________________ >> php-java-bridge-users mailing list >> php...@li... >> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users >> >> >------------------------------------------------------------------------------ >Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA >-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise >-Strategies to boost innovation and cut costs with open source participation >-Receive a $600 discount off the registration fee with the source code: SFAD >http://p.sf.net/sfu/XcvMzF8H >_______________________________________________ >php-java-bridge-users mailing list >php...@li... >https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
|
From: <php...@li...> - 2009-03-06 17:52:17
|
Could the problem be you are setting the "extensions" directive in the php.ini instead of the "extension_dir" directive? On Fri, Mar 6, 2009 at 2:03 PM, <php...@li... > wrote: > Hi, > please use one of the php mailing lists instead. Or use the bug tracker on > php.net. php should not crash if you force it to load foreign dlls. > > However, as I understand this issue, you haven't installed php correctly. > Copying arbitrary dll files into php doesn't help if the dlls use a > different abi than the php. > > But I know that installing php on windows isn't easy, the windows installer > doesn't allow one to install both, other-cgi and apache/iis sapi. And > selecting everything will crash the php installation immediately. > > Regards. > Jost Boekemeier > > > php...@li... wrote: > > >If you can't load any php-extensions this is not a problem with the php > java > >bridge. > >first try to figure that one out.. probably there are some problems with > >your path. > > > >next, have you looked at the stack trace, especially the > > > >"have you started php-cgi with > >the environment setting PHP_FCGI_MAX_REQUESTS=5000? " part? > >have you set the environment variable? > > > >the php-java bridge works by invoking either a servlet on the java server > >side > >if you want to use java from within php > >or certain php-scripts on the php server side if you want to use php from > >within java. > > > >it looks like you want to use php from within java, but the php-process on > >the server side > >died (or you have not started the php-webserver) and because of this you > get > >the connection-error/IOException.. > > > >regards, > >dominik > > > >2009/3/6 <php...@li...> > > > >> BTW, I wanted to mention, I have already tried some of the possible > >> solutions I have found on the mailing-list archives here. > >> > >> - I have unset PHPRC and removed C:\PHP from windows Path, restarted > Tomcat > >> - no effect > >> - I have changed prefer_system_php_exec to Off in web.xml, restarted > Tomcat > >> - no effect > >> - C:\PHP\php-cgi -i does not crash > >> > >> On Fri, Mar 6, 2009 at 8:25 AM, Sasvata Chatterjee < > >> sas...@gm...> wrote: > >> > >> > Hi, > >> > > >> > I am trying to use the bridge to run PHP5 under Tomcat on Windows XP. > I > >> > have started with the JavaBridge.war in webapps, and I can run > >> > http://localhost:8080/JavaBridge/test.php fine. I was having trouble > >> > loading the MySQL extension, and thought it was a problem with > >> > communications to MySQL. But, I have finally figured out that I can't > >> load > >> > any PHP extensions at all, so I'll stick to mentioning php_bz2.dll. > In > >> the > >> > Windows path, C:\PHP is included. > >> > > >> > The versions I have: > >> > Tomcat-6.0.18 > >> > PHP-5.2.6 > >> > JavaBridge-5.4.3.3 > >> > JDK-1.6.0_12 > >> > > >> > I have tried setting the registry to use C:\PHP\php.ini since my > >> > command-line php executable loads the .ini and extensions, but it made > no > >> > difference under JavaBridge. For now, I am using WEB-INF\cgi\php.ini, > as > >> > confirmed by the output from test.php. From the default php.ini that > came > >> > with JavaBridge.war, all I have done is change the following: > >> > > >> > extensions="C:\PHP\ext\" > >> > extension=php_bz2.dll > >> > > >> > and I get (if I restore those two lines, restart Tomcat, and access > >> > test.php, everything works): > >> > HTTP Status 500 - > >> > ------------------------------ > >> > > >> > *type* Exception report > >> > > >> > *message* > >> > > >> > *description* *The server encountered an internal error () that > prevented > >> > it from fulfilling this request.* > >> > > >> > *exception* > >> > > >> > javax.servlet.ServletException: PHP FastCGI instance failed. > >> > > >> > php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.execute(FastCGIServlet.java:395) > >> > php.java.servlet.CGIServlet.handle(CGIServlet.java:401) > >> > > >> > php.java.servlet.PhpCGIServlet.handle(PhpCGIServlet.java:350) > >> > php.java.servlet.CGIServlet.doGet(CGIServlet.java:471) > >> > javax.servlet.http.HttpServlet.service(HttpServlet.java:617) > >> > javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > >> > > >> > *root cause* > >> > > >> > php.java.servlet.fastcgi.ConnectionException > >> > > >> > php.java.servlet.fastcgi.FastCGIInputStream.read(FastCGIInputStream.java:55) > >> > > >> > php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.parseBody(FastCGIServlet.java:451) > >> > > >> > > >> > php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.doExecute(FastCGIServlet.java:374) > >> > > >> > php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.execute(FastCGIServlet.java:382) > >> > php.java.servlet.CGIServlet.handle(CGIServlet.java:401) > >> > > >> > php.java.servlet.PhpCGIServlet.handle(PhpCGIServlet.java:350) > >> > php.java.servlet.CGIServlet.doGet(CGIServlet.java:471) > >> > javax.servlet.http.HttpServlet.service(HttpServlet.java:617) > >> > javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > >> > > >> > *root cause* > >> > > >> > java.io.IOException: Protocol error > >> > > >> > php.java.servlet.fastcgi.FastCGIInputStream.doRead(FastCGIInputStream.java:64) > >> > > >> > php.java.servlet.fastcgi.FastCGIInputStream.read(FastCGIInputStream.java:51) > >> > > >> > > >> > php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.parseBody(FastCGIServlet.java:451) > >> > > >> > php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.doExecute(FastCGIServlet.java:374) > >> > > >> > php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.execute(FastCGIServlet.java:382) > >> > > >> > php.java.servlet.CGIServlet.handle(CGIServlet.java:401) > >> > php.java.servlet.PhpCGIServlet.handle(PhpCGIServlet.java:350) > >> > php.java.servlet.CGIServlet.doGet(CGIServlet.java:471) > >> > javax.servlet.http.HttpServlet.service(HttpServlet.java:617) > >> > > >> > javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > >> > > >> > *note* *The full stack trace of the root cause is available in the > Apache > >> > Tomcat/6.0.18 logs.* > >> > In the Tomcat logs, I get: > >> > > >> > Mar 6, 2009 8:19:29 AM 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 > >> > Mar 6, 2009 8:19:29 AM 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:471) > >> > 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(Unknown Source) > >> > > >> > I have set the PHP_FCGI_MAX_REQUESTS env. var., but made no > difference. > >> > > >> > What am I doing wrong? Thanks in advance, > >> > > >> > Shash > >> > > >> > >> > ------------------------------------------------------------------------------ > >> Open Source Business Conference (OSBC), March 24-25, 2009, San > Francisco, > >> CA > >> -OSBC tackles the biggest issue in open source: Open Sourcing the > >> Enterprise > >> -Strategies to boost innovation and cut costs with open source > >> participation > >> -Receive a $600 discount off the registration fee with the source code: > >> SFAD > >> http://p.sf.net/sfu/XcvMzF8H > >> _______________________________________________ > >> php-java-bridge-users mailing list > >> php...@li... > >> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > >> > > >------------------------------------------------------------------------------ > >Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, > CA > >-OSBC tackles the biggest issue in open source: Open Sourcing the > Enterprise > >-Strategies to boost innovation and cut costs with open source > participation > >-Receive a $600 discount off the registration fee with the source code: > SFAD > >http://p.sf.net/sfu/XcvMzF8H > >_______________________________________________ > >php-java-bridge-users mailing list > >php...@li... > >https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, > CA > -OSBC tackles the biggest issue in open source: Open Sourcing the > Enterprise > -Strategies to boost innovation and cut costs with open source > participation > -Receive a $600 discount off the registration fee with the source code: > SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > > |
|
From: <php...@li...> - 2009-03-06 17:50:51
|
The bridge starts php-cgi.exe from the %PATH%. How you configure your environment is up to you, our only requirement is that php-cgi.exe is available and functional. Regards. Jost boekemeier |
|
From: <php...@li...> - 2009-03-06 17:38:26
|
Hi Jost, Please bear with me, I understand I am treading difficult ground here. PHP is working fine for me. php-cgi called directly does not crash, and it is loading DLLs/extensions just fine (as I can see from the HTML output of "php-cgi -i". My current hunch is that the problem is in the launcher or how the launcher is calling php-cgi (or a problem with the GCC libraries used with the launcher interacting with the latest patched XP). One hint is that when I start php-cgi by hand, it uses "C:/Windows/php.ini" but when started by launcher.exe by the bridge it uses "C:/....../webapps/JavaBridge/WEB-INF/cgi/php.ini" (both of my php.ini versions are the same). In other words, the environment isn't exactly identical between the two ways of launching php-cgi. I saw the command line used with launcher, but there is pipe name in there. Is there a way I could run launcher.exe directly but substitute something else for the pipe? Thanks, Shash PS: Once I eliminate the launcher as a potential problem, I'll definitely post a PHP bug. Please bear with me. On Fri, Mar 6, 2009 at 11:03 AM, < php...@li...> wrote: > Hi, > please use one of the php mailing lists instead. Or use the bug tracker on > php.net. php should not crash if you force it to load foreign dlls. > > However, as I understand this issue, you haven't installed php correctly. > Copying arbitrary dll files into php doesn't help if the dlls use a > different abi than the php. > > But I know that installing php on windows isn't easy, the windows installer > doesn't allow one to install both, other-cgi and apache/iis sapi. And > selecting everything will crash the php installation immediately. > > Regards. > Jost Boekemeier > > > php...@li... wrote: > > >If you can't load any php-extensions this is not a problem with the php > java > >bridge. > >first try to figure that one out.. probably there are some problems with > >your path. > > > >next, have you looked at the stack trace, especially the > > > >"have you started php-cgi with > >the environment setting PHP_FCGI_MAX_REQUESTS=5000? " part? > >have you set the environment variable? > > > >the php-java bridge works by invoking either a servlet on the java server > >side > >if you want to use java from within php > >or certain php-scripts on the php server side if you want to use php from > >within java. > > > >it looks like you want to use php from within java, but the php-process on > >the server side > >died (or you have not started the php-webserver) and because of this you > get > >the connection-error/IOException.. > > > >regards, > >dominik > > > >2009/3/6 <php...@li...> > > > >> BTW, I wanted to mention, I have already tried some of the possible > >> solutions I have found on the mailing-list archives here. > >> > >> - I have unset PHPRC and removed C:\PHP from windows Path, restarted > Tomcat > >> - no effect > >> - I have changed prefer_system_php_exec to Off in web.xml, restarted > Tomcat > >> - no effect > >> - C:\PHP\php-cgi -i does not crash > >> > >> On Fri, Mar 6, 2009 at 8:25 AM, Sasvata Chatterjee < > >> sas...@gm...> wrote: > >> > >> > Hi, > >> > > >> > I am trying to use the bridge to run PHP5 under Tomcat on Windows XP. > I > >> > have started with the JavaBridge.war in webapps, and I can run > >> > http://localhost:8080/JavaBridge/test.php fine. I was having trouble > >> > loading the MySQL extension, and thought it was a problem with > >> > communications to MySQL. But, I have finally figured out that I can't > >> load > >> > any PHP extensions at all, so I'll stick to mentioning php_bz2.dll. > In > >> the > >> > Windows path, C:\PHP is included. > >> > > >> > The versions I have: > >> > Tomcat-6.0.18 > >> > PHP-5.2.6 > >> > JavaBridge-5.4.3.3 > >> > JDK-1.6.0_12 > >> > > >> > I have tried setting the registry to use C:\PHP\php.ini since my > >> > command-line php executable loads the .ini and extensions, but it made > no > >> > difference under JavaBridge. For now, I am using WEB-INF\cgi\php.ini, > as > >> > confirmed by the output from test.php. From the default php.ini that > came > >> > with JavaBridge.war, all I have done is change the following: > >> > > >> > extensions="C:\PHP\ext\" > >> > extension=php_bz2.dll > >> > > >> > and I get (if I restore those two lines, restart Tomcat, and access > >> > test.php, everything works): > >> > HTTP Status 500 - > >> > ------------------------------ > >> > > >> > *type* Exception report > >> > > >> > *message* > >> > > >> > *description* *The server encountered an internal error () that > prevented > >> > it from fulfilling this request.* > >> > > >> > *exception* > >> > > >> > javax.servlet.ServletException: PHP FastCGI instance failed. > >> > > >> > php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.execute(FastCGIServlet.java:395) > >> > php.java.servlet.CGIServlet.handle(CGIServlet.java:401) > >> > > >> > php.java.servlet.PhpCGIServlet.handle(PhpCGIServlet.java:350) > >> > php.java.servlet.CGIServlet.doGet(CGIServlet.java:471) > >> > javax.servlet.http.HttpServlet.service(HttpServlet.java:617) > >> > javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > >> > > >> > *root cause* > >> > > >> > php.java.servlet.fastcgi.ConnectionException > >> > > >> > php.java.servlet.fastcgi.FastCGIInputStream.read(FastCGIInputStream.java:55) > >> > > >> > php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.parseBody(FastCGIServlet.java:451) > >> > > >> > > >> > php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.doExecute(FastCGIServlet.java:374) > >> > > >> > php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.execute(FastCGIServlet.java:382) > >> > php.java.servlet.CGIServlet.handle(CGIServlet.java:401) > >> > > >> > php.java.servlet.PhpCGIServlet.handle(PhpCGIServlet.java:350) > >> > php.java.servlet.CGIServlet.doGet(CGIServlet.java:471) > >> > javax.servlet.http.HttpServlet.service(HttpServlet.java:617) > >> > javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > >> > > >> > *root cause* > >> > > >> > java.io.IOException: Protocol error > >> > > >> > php.java.servlet.fastcgi.FastCGIInputStream.doRead(FastCGIInputStream.java:64) > >> > > >> > php.java.servlet.fastcgi.FastCGIInputStream.read(FastCGIInputStream.java:51) > >> > > >> > > >> > php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.parseBody(FastCGIServlet.java:451) > >> > > >> > php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.doExecute(FastCGIServlet.java:374) > >> > > >> > php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.execute(FastCGIServlet.java:382) > >> > > >> > php.java.servlet.CGIServlet.handle(CGIServlet.java:401) > >> > php.java.servlet.PhpCGIServlet.handle(PhpCGIServlet.java:350) > >> > php.java.servlet.CGIServlet.doGet(CGIServlet.java:471) > >> > javax.servlet.http.HttpServlet.service(HttpServlet.java:617) > >> > > >> > javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > >> > > >> > *note* *The full stack trace of the root cause is available in the > Apache > >> > Tomcat/6.0.18 logs.* > >> > In the Tomcat logs, I get: > >> > > >> > Mar 6, 2009 8:19:29 AM 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 > >> > Mar 6, 2009 8:19:29 AM 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:471) > >> > 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(Unknown Source) > >> > > >> > I have set the PHP_FCGI_MAX_REQUESTS env. var., but made no > difference. > >> > > >> > What am I doing wrong? Thanks in advance, > >> > > >> > Shash > >> > > >> > >> > ------------------------------------------------------------------------------ > >> Open Source Business Conference (OSBC), March 24-25, 2009, San > Francisco, > >> CA > >> -OSBC tackles the biggest issue in open source: Open Sourcing the > >> Enterprise > >> -Strategies to boost innovation and cut costs with open source > >> participation > >> -Receive a $600 discount off the registration fee with the source code: > >> SFAD > >> http://p.sf.net/sfu/XcvMzF8H > >> _______________________________________________ > >> php-java-bridge-users mailing list > >> php...@li... > >> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > >> > > >------------------------------------------------------------------------------ > >Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, > CA > >-OSBC tackles the biggest issue in open source: Open Sourcing the > Enterprise > >-Strategies to boost innovation and cut costs with open source > participation > >-Receive a $600 discount off the registration fee with the source code: > SFAD > >http://p.sf.net/sfu/XcvMzF8H > >_______________________________________________ > >php-java-bridge-users mailing list > >php...@li... > >https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, > CA > -OSBC tackles the biggest issue in open source: Open Sourcing the > Enterprise > -Strategies to boost innovation and cut costs with open source > participation > -Receive a $600 discount off the registration fee with the source code: > SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > > |
|
From: <php...@li...> - 2009-03-06 17:04:16
|
Hi, please use one of the php mailing lists instead. Or use the bug tracker on php.net. php should not crash if you force it to load foreign dlls. However, as I understand this issue, you haven't installed php correctly. Copying arbitrary dll files into php doesn't help if the dlls use a different abi than the php. But I know that installing php on windows isn't easy, the windows installer doesn't allow one to install both, other-cgi and apache/iis sapi. And selecting everything will crash the php installation immediately. Regards. Jost Boekemeier php...@li... wrote: >If you can't load any php-extensions this is not a problem with the php java >bridge. >first try to figure that one out.. probably there are some problems with >your path. > >next, have you looked at the stack trace, especially the > >"have you started php-cgi with >the environment setting PHP_FCGI_MAX_REQUESTS=5000? " part? >have you set the environment variable? > >the php-java bridge works by invoking either a servlet on the java server >side >if you want to use java from within php >or certain php-scripts on the php server side if you want to use php from >within java. > >it looks like you want to use php from within java, but the php-process on >the server side >died (or you have not started the php-webserver) and because of this you get >the connection-error/IOException.. > >regards, >dominik > >2009/3/6 <php...@li...> > >> BTW, I wanted to mention, I have already tried some of the possible >> solutions I have found on the mailing-list archives here. >> >> - I have unset PHPRC and removed C:\PHP from windows Path, restarted Tomcat >> - no effect >> - I have changed prefer_system_php_exec to Off in web.xml, restarted Tomcat >> - no effect >> - C:\PHP\php-cgi -i does not crash >> >> On Fri, Mar 6, 2009 at 8:25 AM, Sasvata Chatterjee < >> sas...@gm...> wrote: >> >> > Hi, >> > >> > I am trying to use the bridge to run PHP5 under Tomcat on Windows XP. I >> > have started with the JavaBridge.war in webapps, and I can run >> > http://localhost:8080/JavaBridge/test.php fine. I was having trouble >> > loading the MySQL extension, and thought it was a problem with >> > communications to MySQL. But, I have finally figured out that I can't >> load >> > any PHP extensions at all, so I'll stick to mentioning php_bz2.dll. In >> the >> > Windows path, C:\PHP is included. >> > >> > The versions I have: >> > Tomcat-6.0.18 >> > PHP-5.2.6 >> > JavaBridge-5.4.3.3 >> > JDK-1.6.0_12 >> > >> > I have tried setting the registry to use C:\PHP\php.ini since my >> > command-line php executable loads the .ini and extensions, but it made no >> > difference under JavaBridge. For now, I am using WEB-INF\cgi\php.ini, as >> > confirmed by the output from test.php. From the default php.ini that came >> > with JavaBridge.war, all I have done is change the following: >> > >> > extensions="C:\PHP\ext\" >> > extension=php_bz2.dll >> > >> > and I get (if I restore those two lines, restart Tomcat, and access >> > test.php, everything works): >> > HTTP Status 500 - >> > ------------------------------ >> > >> > *type* Exception report >> > >> > *message* >> > >> > *description* *The server encountered an internal error () that prevented >> > it from fulfilling this request.* >> > >> > *exception* >> > >> > javax.servlet.ServletException: PHP FastCGI instance failed. >> > >> php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.execute(FastCGIServlet.java:395) >> > php.java.servlet.CGIServlet.handle(CGIServlet.java:401) >> > >> > php.java.servlet.PhpCGIServlet.handle(PhpCGIServlet.java:350) >> > php.java.servlet.CGIServlet.doGet(CGIServlet.java:471) >> > javax.servlet.http.HttpServlet.service(HttpServlet.java:617) >> > javax.servlet.http.HttpServlet.service(HttpServlet.java:717) >> > >> > *root cause* >> > >> > php.java.servlet.fastcgi.ConnectionException >> > >> php.java.servlet.fastcgi.FastCGIInputStream.read(FastCGIInputStream.java:55) >> > >> php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.parseBody(FastCGIServlet.java:451) >> > >> > >> php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.doExecute(FastCGIServlet.java:374) >> > >> php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.execute(FastCGIServlet.java:382) >> > php.java.servlet.CGIServlet.handle(CGIServlet.java:401) >> > >> > php.java.servlet.PhpCGIServlet.handle(PhpCGIServlet.java:350) >> > php.java.servlet.CGIServlet.doGet(CGIServlet.java:471) >> > javax.servlet.http.HttpServlet.service(HttpServlet.java:617) >> > javax.servlet.http.HttpServlet.service(HttpServlet.java:717) >> > >> > *root cause* >> > >> > java.io.IOException: Protocol error >> > >> php.java.servlet.fastcgi.FastCGIInputStream.doRead(FastCGIInputStream.java:64) >> > >> php.java.servlet.fastcgi.FastCGIInputStream.read(FastCGIInputStream.java:51) >> > >> > >> php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.parseBody(FastCGIServlet.java:451) >> > >> php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.doExecute(FastCGIServlet.java:374) >> > >> php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.execute(FastCGIServlet.java:382) >> > >> > php.java.servlet.CGIServlet.handle(CGIServlet.java:401) >> > php.java.servlet.PhpCGIServlet.handle(PhpCGIServlet.java:350) >> > php.java.servlet.CGIServlet.doGet(CGIServlet.java:471) >> > javax.servlet.http.HttpServlet.service(HttpServlet.java:617) >> > >> > javax.servlet.http.HttpServlet.service(HttpServlet.java:717) >> > >> > *note* *The full stack trace of the root cause is available in the Apache >> > Tomcat/6.0.18 logs.* >> > In the Tomcat logs, I get: >> > >> > Mar 6, 2009 8:19:29 AM 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 >> > Mar 6, 2009 8:19:29 AM 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:471) >> > 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(Unknown Source) >> > >> > I have set the PHP_FCGI_MAX_REQUESTS env. var., but made no difference. >> > >> > What am I doing wrong? Thanks in advance, >> > >> > Shash >> > >> >> ------------------------------------------------------------------------------ >> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, >> CA >> -OSBC tackles the biggest issue in open source: Open Sourcing the >> Enterprise >> -Strategies to boost innovation and cut costs with open source >> participation >> -Receive a $600 discount off the registration fee with the source code: >> SFAD >> http://p.sf.net/sfu/XcvMzF8H >> _______________________________________________ >> php-java-bridge-users mailing list >> php...@li... >> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users >> >------------------------------------------------------------------------------ >Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA >-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise >-Strategies to boost innovation and cut costs with open source participation >-Receive a $600 discount off the registration fee with the source code: SFAD >http://p.sf.net/sfu/XcvMzF8H >_______________________________________________ >php-java-bridge-users mailing list >php...@li... >https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
|
From: <php...@li...> - 2009-03-06 16:33:56
|
If you can't load any php-extensions this is not a problem with the php java bridge. first try to figure that one out.. probably there are some problems with your path. next, have you looked at the stack trace, especially the "have you started php-cgi with the environment setting PHP_FCGI_MAX_REQUESTS=5000? " part? have you set the environment variable? the php-java bridge works by invoking either a servlet on the java server side if you want to use java from within php or certain php-scripts on the php server side if you want to use php from within java. it looks like you want to use php from within java, but the php-process on the server side died (or you have not started the php-webserver) and because of this you get the connection-error/IOException.. regards, dominik 2009/3/6 <php...@li...> > BTW, I wanted to mention, I have already tried some of the possible > solutions I have found on the mailing-list archives here. > > - I have unset PHPRC and removed C:\PHP from windows Path, restarted Tomcat > - no effect > - I have changed prefer_system_php_exec to Off in web.xml, restarted Tomcat > - no effect > - C:\PHP\php-cgi -i does not crash > > On Fri, Mar 6, 2009 at 8:25 AM, Sasvata Chatterjee < > sas...@gm...> wrote: > > > Hi, > > > > I am trying to use the bridge to run PHP5 under Tomcat on Windows XP. I > > have started with the JavaBridge.war in webapps, and I can run > > http://localhost:8080/JavaBridge/test.php fine. I was having trouble > > loading the MySQL extension, and thought it was a problem with > > communications to MySQL. But, I have finally figured out that I can't > load > > any PHP extensions at all, so I'll stick to mentioning php_bz2.dll. In > the > > Windows path, C:\PHP is included. > > > > The versions I have: > > Tomcat-6.0.18 > > PHP-5.2.6 > > JavaBridge-5.4.3.3 > > JDK-1.6.0_12 > > > > I have tried setting the registry to use C:\PHP\php.ini since my > > command-line php executable loads the .ini and extensions, but it made no > > difference under JavaBridge. For now, I am using WEB-INF\cgi\php.ini, as > > confirmed by the output from test.php. From the default php.ini that came > > with JavaBridge.war, all I have done is change the following: > > > > extensions="C:\PHP\ext\" > > extension=php_bz2.dll > > > > and I get (if I restore those two lines, restart Tomcat, and access > > test.php, everything works): > > HTTP Status 500 - > > ------------------------------ > > > > *type* Exception report > > > > *message* > > > > *description* *The server encountered an internal error () that prevented > > it from fulfilling this request.* > > > > *exception* > > > > javax.servlet.ServletException: PHP FastCGI instance failed. > > > php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.execute(FastCGIServlet.java:395) > > php.java.servlet.CGIServlet.handle(CGIServlet.java:401) > > > > php.java.servlet.PhpCGIServlet.handle(PhpCGIServlet.java:350) > > php.java.servlet.CGIServlet.doGet(CGIServlet.java:471) > > javax.servlet.http.HttpServlet.service(HttpServlet.java:617) > > javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > > > > *root cause* > > > > php.java.servlet.fastcgi.ConnectionException > > > php.java.servlet.fastcgi.FastCGIInputStream.read(FastCGIInputStream.java:55) > > > php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.parseBody(FastCGIServlet.java:451) > > > > > php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.doExecute(FastCGIServlet.java:374) > > > php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.execute(FastCGIServlet.java:382) > > php.java.servlet.CGIServlet.handle(CGIServlet.java:401) > > > > php.java.servlet.PhpCGIServlet.handle(PhpCGIServlet.java:350) > > php.java.servlet.CGIServlet.doGet(CGIServlet.java:471) > > javax.servlet.http.HttpServlet.service(HttpServlet.java:617) > > javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > > > > *root cause* > > > > java.io.IOException: Protocol error > > > php.java.servlet.fastcgi.FastCGIInputStream.doRead(FastCGIInputStream.java:64) > > > php.java.servlet.fastcgi.FastCGIInputStream.read(FastCGIInputStream.java:51) > > > > > php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.parseBody(FastCGIServlet.java:451) > > > php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.doExecute(FastCGIServlet.java:374) > > > php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.execute(FastCGIServlet.java:382) > > > > php.java.servlet.CGIServlet.handle(CGIServlet.java:401) > > php.java.servlet.PhpCGIServlet.handle(PhpCGIServlet.java:350) > > php.java.servlet.CGIServlet.doGet(CGIServlet.java:471) > > javax.servlet.http.HttpServlet.service(HttpServlet.java:617) > > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > > > > *note* *The full stack trace of the root cause is available in the Apache > > Tomcat/6.0.18 logs.* > > In the Tomcat logs, I get: > > > > Mar 6, 2009 8:19:29 AM 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 > > Mar 6, 2009 8:19:29 AM 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:471) > > 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(Unknown Source) > > > > I have set the PHP_FCGI_MAX_REQUESTS env. var., but made no difference. > > > > What am I doing wrong? Thanks in advance, > > > > Shash > > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, > CA > -OSBC tackles the biggest issue in open source: Open Sourcing the > Enterprise > -Strategies to boost innovation and cut costs with open source > participation > -Receive a $600 discount off the registration fee with the source code: > SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |
|
From: <php...@li...> - 2009-03-06 16:22:08
|
BTW, I wanted to mention, I have already tried some of the possible solutions I have found on the mailing-list archives here. - I have unset PHPRC and removed C:\PHP from windows Path, restarted Tomcat - no effect - I have changed prefer_system_php_exec to Off in web.xml, restarted Tomcat - no effect - C:\PHP\php-cgi -i does not crash On Fri, Mar 6, 2009 at 8:25 AM, Sasvata Chatterjee < sas...@gm...> wrote: > Hi, > > I am trying to use the bridge to run PHP5 under Tomcat on Windows XP. I > have started with the JavaBridge.war in webapps, and I can run > http://localhost:8080/JavaBridge/test.php fine. I was having trouble > loading the MySQL extension, and thought it was a problem with > communications to MySQL. But, I have finally figured out that I can't load > any PHP extensions at all, so I'll stick to mentioning php_bz2.dll. In the > Windows path, C:\PHP is included. > > The versions I have: > Tomcat-6.0.18 > PHP-5.2.6 > JavaBridge-5.4.3.3 > JDK-1.6.0_12 > > I have tried setting the registry to use C:\PHP\php.ini since my > command-line php executable loads the .ini and extensions, but it made no > difference under JavaBridge. For now, I am using WEB-INF\cgi\php.ini, as > confirmed by the output from test.php. From the default php.ini that came > with JavaBridge.war, all I have done is change the following: > > extensions="C:\PHP\ext\" > extension=php_bz2.dll > > and I get (if I restore those two lines, restart Tomcat, and access > test.php, everything works): > HTTP Status 500 - > ------------------------------ > > *type* Exception report > > *message* > > *description* *The server encountered an internal error () that prevented > it from fulfilling this request.* > > *exception* > > javax.servlet.ServletException: PHP FastCGI instance failed. > php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.execute(FastCGIServlet.java:395) > php.java.servlet.CGIServlet.handle(CGIServlet.java:401) > > php.java.servlet.PhpCGIServlet.handle(PhpCGIServlet.java:350) > php.java.servlet.CGIServlet.doGet(CGIServlet.java:471) > javax.servlet.http.HttpServlet.service(HttpServlet.java:617) > javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > > *root cause* > > php.java.servlet.fastcgi.ConnectionException > php.java.servlet.fastcgi.FastCGIInputStream.read(FastCGIInputStream.java:55) > php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.parseBody(FastCGIServlet.java:451) > > php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.doExecute(FastCGIServlet.java:374) > php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.execute(FastCGIServlet.java:382) > php.java.servlet.CGIServlet.handle(CGIServlet.java:401) > > php.java.servlet.PhpCGIServlet.handle(PhpCGIServlet.java:350) > php.java.servlet.CGIServlet.doGet(CGIServlet.java:471) > javax.servlet.http.HttpServlet.service(HttpServlet.java:617) > javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > > *root cause* > > java.io.IOException: Protocol error > php.java.servlet.fastcgi.FastCGIInputStream.doRead(FastCGIInputStream.java:64) > php.java.servlet.fastcgi.FastCGIInputStream.read(FastCGIInputStream.java:51) > > php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.parseBody(FastCGIServlet.java:451) > php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.doExecute(FastCGIServlet.java:374) > php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.execute(FastCGIServlet.java:382) > > php.java.servlet.CGIServlet.handle(CGIServlet.java:401) > php.java.servlet.PhpCGIServlet.handle(PhpCGIServlet.java:350) > php.java.servlet.CGIServlet.doGet(CGIServlet.java:471) > javax.servlet.http.HttpServlet.service(HttpServlet.java:617) > > javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > > *note* *The full stack trace of the root cause is available in the Apache > Tomcat/6.0.18 logs.* > In the Tomcat logs, I get: > > Mar 6, 2009 8:19:29 AM 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 > Mar 6, 2009 8:19:29 AM 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:471) > 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(Unknown Source) > > I have set the PHP_FCGI_MAX_REQUESTS env. var., but made no difference. > > What am I doing wrong? Thanks in advance, > > Shash > |
|
From: <php...@li...> - 2009-03-06 14:25:20
|
Hi,
I am trying to use the bridge to run PHP5 under Tomcat on Windows XP. I
have started with the JavaBridge.war in webapps, and I can run
http://localhost:8080/JavaBridge/test.php fine. I was having trouble
loading the MySQL extension, and thought it was a problem with
communications to MySQL. But, I have finally figured out that I can't load
any PHP extensions at all, so I'll stick to mentioning php_bz2.dll. In the
Windows path, C:\PHP is included.
The versions I have:
Tomcat-6.0.18
PHP-5.2.6
JavaBridge-5.4.3.3
JDK-1.6.0_12
I have tried setting the registry to use C:\PHP\php.ini since my
command-line php executable loads the .ini and extensions, but it made no
difference under JavaBridge. For now, I am using WEB-INF\cgi\php.ini, as
confirmed by the output from test.php. From the default php.ini that came
with JavaBridge.war, all I have done is change the following:
extensions="C:\PHP\ext\"
extension=php_bz2.dll
and I get (if I restore those two lines, restart Tomcat, and access
test.php, everything works):
HTTP Status 500 -
------------------------------
*type* Exception report
*message*
*description* *The server encountered an internal error () that prevented it
from fulfilling this request.*
*exception*
javax.servlet.ServletException: PHP FastCGI instance failed.
php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.execute(FastCGIServlet.java:395)
php.java.servlet.CGIServlet.handle(CGIServlet.java:401)
php.java.servlet.PhpCGIServlet.handle(PhpCGIServlet.java:350)
php.java.servlet.CGIServlet.doGet(CGIServlet.java:471)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
*root cause*
php.java.servlet.fastcgi.ConnectionException
php.java.servlet.fastcgi.FastCGIInputStream.read(FastCGIInputStream.java:55)
php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.parseBody(FastCGIServlet.java:451)
php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.doExecute(FastCGIServlet.java:374)
php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.execute(FastCGIServlet.java:382)
php.java.servlet.CGIServlet.handle(CGIServlet.java:401)
php.java.servlet.PhpCGIServlet.handle(PhpCGIServlet.java:350)
php.java.servlet.CGIServlet.doGet(CGIServlet.java:471)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
*root cause*
java.io.IOException: Protocol error
php.java.servlet.fastcgi.FastCGIInputStream.doRead(FastCGIInputStream.java:64)
php.java.servlet.fastcgi.FastCGIInputStream.read(FastCGIInputStream.java:51)
php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.parseBody(FastCGIServlet.java:451)
php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.doExecute(FastCGIServlet.java:374)
php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.execute(FastCGIServlet.java:382)
php.java.servlet.CGIServlet.handle(CGIServlet.java:401)
php.java.servlet.PhpCGIServlet.handle(PhpCGIServlet.java:350)
php.java.servlet.CGIServlet.doGet(CGIServlet.java:471)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
*note* *The full stack trace of the root cause is available in the Apache
Tomcat/6.0.18 logs.*
In the Tomcat logs, I get:
Mar 6, 2009 8:19:29 AM 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
Mar 6, 2009 8:19:29 AM 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:471)
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(Unknown Source)
I have set the PHP_FCGI_MAX_REQUESTS env. var., but made no difference.
What am I doing wrong? Thanks in advance,
Shash
|
|
From: <php...@li...> - 2009-03-03 16:47:24
|
Hi Andre,
5.4.3.3 uses the same code base as 5.4.3.2, except that I've hacked the Makefile.am and CVS_RELEASE to produce a documentation- and a template war file.
I will clean up the code and commit it this weekend.
Regards,
Jost Boekemeier
|
|
From: <php...@li...> - 2009-03-02 19:27:08
|
Thanks Jason, On 2 Mar 2009, at 16:08, php...@li... wrote: > > We also have an updated version using 2.3.1 here: > > at http://www.birt-exchange.com/devshare/deploying-birt-reports/743-calling-birt-from-php/ > That's fixed it. Dermot. |
|
From: <php...@li...> - 2009-03-02 18:10:23
|
Try,
try{
$report = $birtReportEngine->openReportDesign("${here}/TopNPercent.rptdesign");
$task = $birtReportEngine->createRunAndRenderTask($report);
$taskOptions = new java("org.eclipse.birt.report.engine.api.PDFRenderOption");
$outputStream = new java("java.io.ByteArrayOutputStream");
$taskOptions->setOutputStream($outputStream);
$taskOptions->setOutputFormat("pdf");
$task->setRenderOption( $taskOptions );
$task->run();
$task->close();
} catch (JavaException $e) {
echo $e; //"Error Calling BIRT";
}
//echo $outputStream;
echo java_values($outputStream->toByteArray());
?>
We also have an updated version using 2.3.1 here:
at http://www.birt-exchange.com/devshare/deploying-birt-reports/743-calling-birt-from-php/
Jason
________________________________
From: php...@li... [mailto:php...@li...]
Sent: Mon 3/2/2009 8:20 AM
To: php...@li...
Subject: [Php-java-bridge-users] Birt generating blank PDF reports
I'm having a problem generating reports in PDF format using the new
BIRT reporting in 5.4.3.2.
The report generates perfectly in html, but when I change the output
format to pdf, I get a blank pdf file (it appears to be a valid file,
it just contains no text). No errors showing up anywhere that I can
see (even with logging set to debug).
The problem is easily reproduced, just change
$options->setOutputFormat($options->OUTPUT_FORMAT_HTML);
to
$options->setOutputFormat($options->OUTPUT_FORMAT_PDF);
in the bundled report.php example file, and change the content-type to
application/pdf.
JavaBridge is running in a 1.6 jvm under tomcat.
Any pointers as to how I should proceed?
Thanks,
Bricky
(I originally posted this from a non-list account, but it doesn't seem
to have come through to the list. Apologies in advance if this leads
to any duplication)
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|
|
From: <php...@li...> - 2009-03-02 16:47:34
|
I'm having a problem generating reports in PDF format using the new BIRT reporting in 5.4.3.2. The report generates perfectly in html, but when I change the output format to pdf, I get a blank pdf file (it appears to be a valid file, it just contains no text). No errors showing up anywhere that I can see (even with logging set to debug). The problem is easily reproduced, just change $options->setOutputFormat($options->OUTPUT_FORMAT_HTML); to $options->setOutputFormat($options->OUTPUT_FORMAT_PDF); in the bundled report.php example file, and change the content-type to application/pdf. JavaBridge is running in a 1.6 jvm under tomcat. Any pointers as to how I should proceed? Thanks, Bricky (I originally posted this from a non-list account, but it doesn't seem to have come through to the list. Apologies in advance if this leads to any duplication) |
|
From: <php...@li...> - 2009-03-02 14:07:56
|
Hello, I was trying to compile debian packages in Lenny and saw that the newest php-java-bridge 5.4.3.3 is not at cvs repository. Could you commit it? Regards. Andre Felipe Machado -- http://www.techforce.com.br A Debian user never dies. Issues a last command: #shutdown -h now |
|
From: <php...@li...> - 2009-02-20 15:20:34
|
Hi,
> i'm getting errors such as "Could not evaluate
> script:
> http://127.0.0.1:80/JavaBridge/java/JavaProxy.php "
this message means that tomcat could not connect back to apache. Unless you want to run JSR223 script engine within tomcat, this functionality is not needed. Your provider probably denies tomcat to call other services, which is very good.
> and lots of 404 not found errors. i'm guessing
Can you please be more specific? A 404 simply means "file not found".
> wrong with the ports or the proxy between the two versions?
No, I think this is just a misunderstanding.
> just making
> the tomcat more of the root directory if you know what i
What do you mean with this? You cannot and should not run Java as root, as Java cannot drop privileges. This means that Java cannot listen on port 80.
> disregarding the apache frontend part if it makes it work.
What's wrong with Apache? I think an apache front and and Java/J2EE back end makes very much sense.
Regards,
Jost Boekemeier
|
|
From: <php...@li...> - 2009-02-20 15:20:28
|
Hi, please see the PHP/Java Bridge install instructions for details: http://php-java-bridge.sourceforge.net/pjb/installation.php Regards, Jost Boekemeier |
|
From: <php...@li...> - 2009-02-19 15:54:48
|
Actually you're not completly correct. If you want to access Java from php you'll have to start the javabridge by either starting the javabridge.jar or by putting the war file into a servlet container like tomcat. what works with your setup is accessing php from inside of java. 2009/2/19 <php...@li...> > Hi all, > > I presume that the php-java-bridge can be installed in a machine where > apache is running with php installed. Also jdk needs to be installed. > > Now I am trying this out on a windows machine and all the above are > present. > Apache *(ver. 2.2.6) *& PHP*(ver. 5.2.5)* are available through WAMP > server. > JDK*1.6.0_07* installed. > > Now to the important part of installing the bridge. Downloaded & extracted > 'php-java-bridge_5.4.3.2_j2ee.zip'. > My belief is that two files are enough for the bridge to work. They are - > * > php-java-bridge_5.4.3.2_j2ee\JAVA.STANDALONE\JavaBridge.jar > php-java-bridge_5.4.3.2_j2ee\JAVA.STANDALONE\java\Java.inc* > > Java.inc, I believe, is the actual bridge between PHP and Java. * > JavaBridge.jar*, I* *presume helps* *Java.inc*.* > > Now for PHP to locate the JavaBridge.jar. This needs to register as an > extension and hence we place this in the PHP extension directory. To > register it as a module we change the php.ini file. > > Am I correct in the above steps? If I am, I am still not sure what to set > in > the php.ini. I donot have a ".dll" file in the package to install a module > in PHP :(. > > Please guide me. > > Thanks, > Srini > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, > CA > -OSBC tackles the biggest issue in open source: Open Sourcing the > Enterprise > -Strategies to boost innovation and cut costs with open source > participation > -Receive a $600 discount off the registration fee with the source code: > SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |
|
From: <php...@li...> - 2009-02-19 15:40:52
|
Hi all, I presume that the php-java-bridge can be installed in a machine where apache is running with php installed. Also jdk needs to be installed. Now I am trying this out on a windows machine and all the above are present. Apache *(ver. 2.2.6) *& PHP*(ver. 5.2.5)* are available through WAMP server. JDK*1.6.0_07* installed. Now to the important part of installing the bridge. Downloaded & extracted 'php-java-bridge_5.4.3.2_j2ee.zip'. My belief is that two files are enough for the bridge to work. They are - * php-java-bridge_5.4.3.2_j2ee\JAVA.STANDALONE\JavaBridge.jar php-java-bridge_5.4.3.2_j2ee\JAVA.STANDALONE\java\Java.inc* Java.inc, I believe, is the actual bridge between PHP and Java. * JavaBridge.jar*, I* *presume helps* *Java.inc*.* Now for PHP to locate the JavaBridge.jar. This needs to register as an extension and hence we place this in the PHP extension directory. To register it as a module we change the php.ini file. Am I correct in the above steps? If I am, I am still not sure what to set in the php.ini. I donot have a ".dll" file in the package to install a module in PHP :(. Please guide me. Thanks, Srini |
|
From: <php...@li...> - 2009-02-18 09:28:17
|
hi there, wouldn't normally do this but i'm really stuck on trying to get javabridge working on this server. i have an app that exports to a powerpoint using the javabridge, and works perfectly on my local computer using tomcat. i've signed up for a tomcat hosted website and placed the javabridge folder in both the 'tomcat5/webapps' directory, and in their 'mainwebsite_html' directory. one seems to be more tomcat, the latter is more standard apache??? sorry i'm really not a server whiz. anyway be great if you could take a look at the sample scripts on the setup page here and let me know what you think is happening: http://www.myoutdoorcampaign.co.nz/JavaBridge/ i'm getting errors such as "Could not evaluate script: http://127.0.0.1:80/JavaBridge/java/JavaProxy.php " and lots of 404 not found errors. i'm guessing there's something going wrong with the ports or the proxy between the two versions? any help *much* appreciated. at this point i'd be happy just making the tomcat more of the root directory if you know what i mean and disregarding the apache frontend part if it makes it work. thanks, luke |
|
From: <php...@li...> - 2009-02-16 22:20:28
|
Hi, PHP/Java Bridge version 5.4.3.2 is now available: http://downloads.sourceforge.net/php-java-bridge/php-java-bridge_5.4.3.2_j2ee.zip?use_mirror= It contains bindings for the Eclipse BIRT reporting engine, contributed by Jason Weathersby. Reports can be rendered from the console, from Apache or within a J2EE server. For example: php -d allow_url_include=On report.php >output.html An example report.php is contained in the JavaBridge.war "binary download". The changes in detail (from the NEWS file): * A shutdown hook can now be used to automatically shut down libraries when the (servlet-) context is destroyed. * Invocable script engines are automatically destroyed when the (servlet-) context is destroyed. * Invocable script engines are no longer automatically destroyed at the end of the request, as users may want to store them in the application store for example. Use ((Closeable)engine).close() to destroy a script engine explicitly. * The convenience procedures getHttpServletResponse(), getHttpServletRequest(), getServlet(), getServletConfig(), getServletContext(), getRealPath() have been added to the the java_context(). * On Solaris the directory /tmp is used instead of /dev/shm for the named pipe communication channel. * An Eclipse BIRT report example is included. Regards, Jost Bökemeier |
|
From: <php...@li...> - 2009-02-13 17:00:59
|
Hello!
I have some questions regarding PDO. Would it be possible to use PDO with the
Java Bridge? For example:
$pdo = new PDO("jdbc:mysql://localhost/test", "user",
"pass");
Do you want to use PDO or do you want to use a JDBC connection pool? Example above is not standard and doesn't work with PHP. See here: http://php.net/manual/en/book.pdo.php
But if you want to use pooled connections within tomcat, see here: http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html
Peter
|
|
From: <php...@li...> - 2009-02-12 20:56:40
|
Hello!
please give me the steps (screenshot) ..
I do not know about a WAMP server, but I've contributed a screencast for the Tomcat server. The EchoServer service example should work in any J2EE server, but the install procedure might be different.
Hope it helps.
Peter
|
|
From: <php...@li...> - 2009-02-12 14:09:07
|
hai Please give me the details how i con configure php java bridge in WAMP Sever , is require any java server? please spesify the version of java bridge... please give me the steps (screenshot) .. plese ...... |
Hi, > HTTP tunnel not available in a distributable web application. Please either enable the PIPE oder SOCKET channel. Sending all requests through HTTP PUT requests is not and will not be implemented. The "VM Bridge" protocol is meant to be used for client-server communication within an intranet, it cannot and should not be used to connect a client with a server through the internet. If you want that, use SOAP instead. Please see my other message for details: http://sourceforge.net/mailarchive/forum.php?thread_name=579145.35346.qm%40web27005.mail.ukl.yahoo.com&forum_name=php-java-bridge-users Regards, Jost Boekemeier |
|
From: <php...@li...> - 2009-02-12 12:59:14
|
Hi,
> I have some questions regarding PDO. Would it be possible
> to use PDO with the Java Bridge?
You don't need the PHP/Java Bridge if all you want is to access databases through PHP PDO.
However, if you have a PDO library written in pure Java, you can access this library through the PHP/Java Bridge.
> Also, is it possible to use the Bridge to call JNDI
> directly via PDO, such as (this works in Quercus):
>
> $pdo = new PDO("java:comp/env/jdbc/TestDB");
Just copy the Java .jar file which exports the PDO API (quercus.jar probably) to your WEB-INF/lib and use the class as usual:
$pdo = new java("com.caucho.xxx.pdo", "java:comp/env/jdbc/TestDB");
There's a test in the tests.php5 folder which accesses quercus from PHP through the PHP/Java Bridge, so this should work.
However, why do you want to use PHP PDO if you can use the pure Java JDBC API?
Regards,
Jost Boekemeier
|
|
From: <php...@li...> - 2009-02-12 12:47:23
|
Hi,
> no Pipe- or SocketContextServer available.'
in order to communicate with the back end efficiently the client and server negotiate the fastest communication channel available during the first request.
If you have switched off the PIPE communication channel (for example by setting the PROMISCUOUS option) and a local SOCKET communication channel isn't available either (for example if a Java policy denies socket accept), the PHP client must continue to send HTTP PUT requests, which is incredibly slow and not implemented. So the PHP client gives up and throws the above exception.
Please either enable the PIPE communication channel (unset the PROMISCUOUS option, if necessary, and set the option JAVA_PIPE_DIR="/tmp" before including Java.inc) or edit your security policy to allow local socket communication.
Regards,
Jost Boekemeier
|