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
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
1
|
2
(4) |
3
(1) |
4
|
5
|
6
(17) |
7
(1) |
8
(1) |
9
|
10
|
11
|
12
(1) |
13
(3) |
14
|
15
(1) |
16
|
17
|
18
|
19
(1) |
20
(3) |
21
|
22
|
23
|
24
|
25
(2) |
26
(5) |
27
(5) |
28
(4) |
29
|
30
|
31
|
|
|
|
|
From: <php...@li...> - 2009-03-28 08:48:18
|
Hi, the 32/64 bit cpu/jvm issue you observed was one of the reasons for the switch. The bridge runs with any servlet engine out there, it even works with the simple http server build into JavaBride.jar: java -jar JavaBridge.jar. But for features like hot deployment, persistent connections, module managemant, etc. you'll need tomcat or some other j2ee ontainer anyway. On RedHat/Fedora or compatibles just do a yum -y install tomcat php rpmbuild -tb php-java-bridge*.tar.gz rpm -i php-java-bridge*.rpm Regards, Jost Boekemeier Mrz 28, 2009 9:22 vorm. schrieb am < php...@li...>: Ok. So is it possible to use the 4.x version of the bridge to make this thing work? But when I compiled v4.3.2, I still get the same error. ---- PHP Warning: php_mod_java(105) system error: Could not execute backend: JAVA_HOME=/usr/java/j2sdk1.... /usr/lib64/php/modules/RunJavaBridge /usr/java/j2sdk1.4.2_19/bin/java -Djava.library.path=/usr/lib64... And again, running the command -- /usr/lib64/php/modules/RunJavaBridge /usr/java/j2sdk1.4.2_19/bin/java -Djava.library.path=/usr/lib64... -- does not give any error. So now, nobody has any suggestion to solve this, I'll have to try running Tomcat or some other servlet runner. Have anyone used winstone http://winstone.sourceforge.net/ to run the bridge? I'm just trying to stay lightweight. Any other recommendations are welcome of course. btw, I did try, at one time, running the war file with winstone, but ended up getting an internal server error whenever the server is accessed at port 8080. So if there is no other option, I'll go with tomcat. Thank you for the support, Jost. I appreciate it. ------ We used to use a binary protocol in 1.x. It has since been replaced by a faster XML protocol mechani... On Fri, Mar 27, 2009 at 2:54 PM, Thangaraj (www.bootcd.us) < tha...@gm...> wrote: > Hi Jost... www.ishafoundation.org www.projectgreenhands.org www.bootcd.us www.ecobuddy.in ---------------------... php-java-bridge-users mailing list php...@li... https://lists.sourcef... |
From: <php...@li...> - 2009-03-28 08:21:54
|
Ok. So is it possible to use the 4.x version of the bridge to make this thing work? But when I compiled v4.3.2, I still get the same error. ---- PHP Warning: php_mod_java(105) system error: Could not execute backend: JAVA_HOME=/usr/java/j2sdk1.4.2_19 LD_LIBRARY_PATH=/usr/lib64/php/modules:/usr/lib64/php/modules: /usr/lib64/php/modules/RunJavaBridge /usr/java/j2sdk1.4.2_19/bin/java -Djava.library.path=/usr/lib64/php/modules -Djava.class.path=/usr/lib64/php/modules/JavaBridge.jar -Djava.awt.headless=true -Dphp.java.bridge.base=/usr/lib64/php/modules php.java.bridge.Standalone INET_LOCAL:0 4 /var/log/php-java-bridge.log : Permission denied in Unknown on line 0 ---- And again, running the command -- /usr/lib64/php/modules/RunJavaBridge /usr/java/j2sdk1.4.2_19/bin/java -Djava.library.path=/usr/lib64/php/modules -Djava.class.path=/usr/lib64/php/modules/JavaBridge.jar -Djava.awt.headless=true -Dphp.java.bridge.base=/usr/lib64/php/modules php.java.bridge.Standalone INET_LOCAL:0 4 /var/log/php-java-bridge.log -- does not give any error. So now, nobody has any suggestion to solve this, I'll have to try running Tomcat or some other servlet runner. Have anyone used winstone http://winstone.sourceforge.net/ to run the bridge? I'm just trying to stay lightweight. Any other recommendations are welcome of course. btw, I did try, at one time, running the war file with winstone, but ended up getting an internal server error whenever the server is accessed at port 8080. So if there is no other option, I'll go with tomcat. Thank you for the support, Jost. I appreciate it. ------ We used to use a binary protocol in 1.x. It has since been replaced by a faster XML protocol mechanism. We have deprecated (4.x) and then removed (v5.x) all native code so that the bridge runs on any cpu, php or java version. You need a PHP "Java" class, yes. Either this one http://php-java-bridge.sourceforge.net/pjb/java/Java.inc or the simple PHP code from our FAQ. Regards, Jost Boekemeier On Fri, Mar 27, 2009 at 2:54 PM, Thangaraj (www.bootcd.us) < tha...@gm...> wrote: > Hi Jost, > > I see this in my java.ini (which was autoinstalled): > ------- > ;; If you want to start the default JVM automatically when the HTTP > ;; server starts, disable java.hosts, java.servlet and > ;; java.socketname, set java.java_home=<VM_HOME> and > ;; java.java=<VM_EXE>, for example: > ------- > And I've been successfully using this 'method' on a different server using > v4.x of the php java bridge. That server does not run any servlet engine > excepting that which is autostarted by the java bridge. Does anyone else use > this 'method' for lightweight java access? > > Another thing is, in the example that you had given, > > http://php-java-bridge.sourceforge.net/pjb/examples/source.php?source=startJava.php > it includes this line: > require_once("java/Java.inc"); > Do I just extract and place this Java.inc in the required directory > manually? Is that the way to do it? > > Warm Regards, > Thangaraj > > > ------------- > Hi, > > The bridge cannot "autostart". Basically you write or include() PHP code to > connect to a Java back end and then use the provided VM bridge protocol to > invoke java and/or php code. > > If you want to manage a java back end from PHP, use PHP exec() and > java("java.lang.System")->exit(), please see this example for details: > > http://php-java-bridge.sourceforge.net/pjb/examples/source.php?source=startJava.php > > Please remove all php "java.so" and "php_java.dll" you can find and then > follow the install instructions on > http://php-java-bridge.sourceforge.net/pjb/installation.php > > Regards, > Jost Boekemeier > -- www.ishafoundation.org www.projectgreenhands.org www.bootcd.us www.ecobuddy.in |
From: <php...@li...> - 2009-03-27 09:59:42
|
We used to use a binary protocol in 1.x. It has since been replaced by a faster XML protocol mechanism. We have deprecated (4.x) and then removed (v5.x) all native code so that the bridge runs on any cpu, php or java version. You need a PHP "Java" class, yes. Either this one http://php-java-bridge.sourceforge.net/pjb/java/Java.inc or the simple PHP code from our FAQ. Regards, Jost Boekemeier Mrz 27, 2009 10:28 vorm. schrieb am < php...@li...>: Hi Jost, I see this in my java.ini (which was autoinstalled): ------- ;; If you want to start the default JVM automatically when the HTTP ;; server starts, disable java.hosts, java.servlet and ;; java.socketname, set java.java_home=<VM_HOME> and ;; java.java=<VM_EXE>, for example: ------- And I've been successfully using this 'method' on a different server using v4.x of the php java bridge. That server does not run any servlet engine excepting that which is autostarted by the java bridge. Does anyone else use this 'method' for lightweight java access? Another thing is, in the example that you had given, http://php-java-bridge.sourceforge.net/pjb/examples/source.php?source=startJava.php it includes this line: require_once("java/Java.inc"); Do I just extract and place this Java.inc in the required directory manually? Is that the way to do it? Warm Regards, Thangaraj ------------- Hi, The bridge cannot "autostart". Basically you write or include() PHP code to connect to a Java b... ------------------------------------------------------------------------------ _____________________... |
From: <php...@li...> - 2009-03-27 09:25:09
|
Hi Jost, I see this in my java.ini (which was autoinstalled): ------- ;; If you want to start the default JVM automatically when the HTTP ;; server starts, disable java.hosts, java.servlet and ;; java.socketname, set java.java_home=<VM_HOME> and ;; java.java=<VM_EXE>, for example: ------- And I've been successfully using this 'method' on a different server using v4.x of the php java bridge. That server does not run any servlet engine excepting that which is autostarted by the java bridge. Does anyone else use this 'method' for lightweight java access? Another thing is, in the example that you had given, http://php-java-bridge.sourceforge.net/pjb/examples/source.php?source=startJava.php it includes this line: require_once("java/Java.inc"); Do I just extract and place this Java.inc in the required directory manually? Is that the way to do it? Warm Regards, Thangaraj ------------- Hi, The bridge cannot "autostart". Basically you write or include() PHP code to connect to a Java back end and then use the provided VM bridge protocol to invoke java and/or php code. If you want to manage a java back end from PHP, use PHP exec() and java("java.lang.System")->exit(), please see this example for details: http://php-java-bridge.sourceforge.net/pjb/examples/source.php?source=startJava.php Please remove all php "java.so" and "php_java.dll" you can find and then follow the install instructions on http://php-java-bridge.sourceforge.net/pjb/installation.php Regards, Jost Boekemeier |
From: <php...@li...> - 2009-03-27 09:01:32
|
Hi, The bridge cannot "autostart". Basically you write or include() PHP code to connect to a Java back end and then use the provided VM bridge protocol to invoke java and/or php code. If you want to manage a java back end from PHP, use PHP exec() and java("java.lang.System")->exit(), please see this example for details: http://php-java-bridge.sourceforge.net/pjb/examples/source.php?source=startJava.php Please remove all php "java.so" and "php_java.dll" you can find and then follow the install instructions on http://php-java-bridge.sourceforge.net/pjb/installation.php Regards, Jost Boekemeier Mrz 27, 2009 7:48 vorm. schrieb am < php...@li...>: Hi all, We've been having trouble getting the java bridge to autostart. In the apache logs, I get --- PHP Warning: php_mod_java(105) system error: Could not execute backend: JAVA_HOME=/usr/java/j2sdk1.4.2_19 LD_LIBRARY_PATH=/usr/lib64/php/modules:/usr/lib64/php/modules:/usr/java/jdk1.6.0_12/jre/lib/amd64 /usr/lib64/php/modules/RunJavaBridge /usr/java/j2sdk1.4.2_19/bin/java -Djava.library.path=/usr/lib64/php/modules -Djava.class.path=/usr/lib64/php/modules/JavaBridge.jar -Djava.awt.headless=true -Dphp.java.bridge.base=/usr/lib64/php/modules php.java.bridge.Standalone INET_LOCAL:0 4 /var/log/php-java-bridge.log : Permission denied in Unknown on line 0 ---- However, if I run, --- /usr/lib64/php/modules/RunJavaBridge /usr/java/j2sdk1.4.2_19/bin/java -Djava.library.path=/usr/lib64/php/modules -Djava.class.path=/usr/lib64/php/modules/JavaBridge.jar -Djava.awt.headless=true -Dphp.java.bridge.base=/usr/lib64/php/modules php.java.bridge.Standalone INET_LOCAL:0 4 /var/log/php-java-bridge.log --- directly in the command line, I am able to start the bridge without any errors. We don't need to have the extra overhead of running tomcat for what we need here, so can someone help me fix this issue? This is CentOS 5.1, I'll give the relevant phpinfo output here: PHP Version 5.2.6, apache 2.2.3 java java support Enabled java bridge 5.2.2.4 java.java_home/usr/java/j2sdk1.4.2_19java.java/usr/java/j2sdk1.4.2_19/bin/javajava.log_file/var/log/php-java-bridge.logjava.log_level4java.security_policyOffjava commandJAVA_HOME=/usr/java/j2sdk1.4.2_19 LD_LIBRARY_PATH=/usr/lib64/php/modules:/usr/java/jdk1.6.0_12/jre/lib/amd64 /usr/java/j2sdk1.4.2_19/bin/java -Djava.library.path=/usr/lib64/php/modules -Djava.class.path=/usr/lib64/php/modules/JavaBridge.jar -Djava.awt.headless=true -Dphp.java.bridge.base=/usr/lib64/php/modules php.java.bridge.Standalone INET_LOCAL:0 4 /var/log/php-java-bridge.log java server localhost java status not running If needed, I can share the phpinfo page url. btw, what should the LD_LIBRARY_PATH be? and how can I make that be remembered across reboots for the bridge. my java.ini contents: --- extension = java.so [java] java.java_home = /usr/java/j2sdk1.4.2_19 java.java = /usr/java/j2sdk1.4.2_19/bin/java java.log_level = 4 java.log_file = /var/log/php-java-bridge.log --- Thangaraj Isha Foundation -- www.ishafoundation.org www.projectgreenhands.org www.bootcd.us www.ecobuddy.in ------------------------------------------------------------------------------ _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
From: <php...@li...> - 2009-03-27 08:50:47
|
Hi, Simply remove the php java.so or php_java.dll. On solaris or linux the PHP code within Java.inc may still create a "named pipe" communication channel, if you don't set the PHP define JAVA_PIPE_DIR to null. Regards, Jost Boekemeier Mrz 27, 2009 7:49 vorm. schrieb am < php...@li...>: Does anyone knows why javabridge creates an folder in /tmp like '.php_java_bridgeWawFX1' ? how can i disable this? -- Gilbert Groenendijk __________________________________________________ ------------------------------------------------------------------------------ _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
From: <php...@li...> - 2009-03-27 06:37:44
|
Hi all, We've been having trouble getting the java bridge to autostart. In the apache logs, I get --- PHP Warning: php_mod_java(105) system error: Could not execute backend: JAVA_HOME=/usr/java/j2sdk1.4.2_19 LD_LIBRARY_PATH=/usr/lib64/php/modules:/usr/lib64/php/modules:/usr/java/jdk1.6.0_12/jre/lib/amd64 /usr/lib64/php/modules/RunJavaBridge /usr/java/j2sdk1.4.2_19/bin/java -Djava.library.path=/usr/lib64/php/modules -Djava.class.path=/usr/lib64/php/modules/JavaBridge.jar -Djava.awt.headless=true -Dphp.java.bridge.base=/usr/lib64/php/modules php.java.bridge.Standalone INET_LOCAL:0 4 /var/log/php-java-bridge.log : Permission denied in Unknown on line 0 ---- However, if I run, --- /usr/lib64/php/modules/RunJavaBridge /usr/java/j2sdk1.4.2_19/bin/java -Djava.library.path=/usr/lib64/php/modules -Djava.class.path=/usr/lib64/php/modules/JavaBridge.jar -Djava.awt.headless=true -Dphp.java.bridge.base=/usr/lib64/php/modules php.java.bridge.Standalone INET_LOCAL:0 4 /var/log/php-java-bridge.log --- directly in the command line, I am able to start the bridge without any errors. We don't need to have the extra overhead of running tomcat for what we need here, so can someone help me fix this issue? This is CentOS 5.1, I'll give the relevant phpinfo output here: PHP Version 5.2.6, apache 2.2.3 java java support Enabled java bridge 5.2.2.4 java.java_home/usr/java/j2sdk1.4.2_19java.java/usr/java/j2sdk1.4.2_19/bin/javajava.log_file/var/log/php-java-bridge.logjava.log_level4java.security_policyOffjava commandJAVA_HOME=/usr/java/j2sdk1.4.2_19 LD_LIBRARY_PATH=/usr/lib64/php/modules:/usr/java/jdk1.6.0_12/jre/lib/amd64 /usr/java/j2sdk1.4.2_19/bin/java -Djava.library.path=/usr/lib64/php/modules -Djava.class.path=/usr/lib64/php/modules/JavaBridge.jar -Djava.awt.headless=true -Dphp.java.bridge.base=/usr/lib64/php/modules php.java.bridge.Standalone INET_LOCAL:0 4 /var/log/php-java-bridge.log java server localhost java status not running If needed, I can share the phpinfo page url. btw, what should the LD_LIBRARY_PATH be? and how can I make that be remembered across reboots for the bridge. my java.ini contents: --- extension = java.so [java] java.java_home = /usr/java/j2sdk1.4.2_19 java.java = /usr/java/j2sdk1.4.2_19/bin/java java.log_level = 4 java.log_file = /var/log/php-java-bridge.log --- Thangaraj Isha Foundation -- www.ishafoundation.org www.projectgreenhands.org www.bootcd.us www.ecobuddy.in |
From: <php...@li...> - 2009-03-26 16:20:39
|
Does anyone knows why javabridge creates an folder in /tmp like '.php_java_bridgeWawFX1' ? how can i disable this? -- Gilbert Groenendijk __________________________________________________ |
From: <php...@li...> - 2009-03-26 15:46:39
|
Hey jost, Thanks for your swift reply. I am able to get it going. It was quite a long journey. On Thu, Mar 26, 2009 at 5:25 AM, < php...@li...> wrote: > Hi again, > > I saw that you've included your full address, so i've excluded it from the > archives. > > I saw that you already send an input stream, so w/o a stack trace it is > hard to guess what went wrong. Some problem with an external jni library > maybe. > > The second problem is probably caused by a false string to data conversion > (ascii instead of utf8). > > Regards, > Jost Boekemeier > > > ------------------------------------------------------------------------------ > > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > > -- ---------------------------------------------------- Huy Tran Systems Analyst The Civil Service Superannuation Board 1200-444 St. Mary Avenue Winnipeg MB R3C 3T1 P: 204.946.3247 E: ht...@cs... |
From: <php...@li...> - 2009-03-26 14:21:18
|
Hi all. I'm trying to order by score and then price field. Ordering by fields is fine but by score throws an error. *Code:* $sort = new org_apache_lucene_search_Sort( new java('org.apache.lucene.search.SortField', java('org.apache.lucene.search.SortField')->FIELD_SCORE, 'price' ) ); *Error:* Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: Invoke failed: [[o:IndexSearcher]]->search((o:Query)[o:BooleanQuery], (o:Sort)[o:Sort]). Cause: java.lang.RuntimeException: field "<score>" does not appear to be indexed VM: 1.6.0@http://java.sun.com/" at: #-21 org.apache.lucene.search.ExtendedFieldCacheImpl$5.createValue(ExtendedFieldCacheImpl.java:173) #-20 org.apache.lucene.search.FieldCacheImpl$Cache.get(FieldCacheImpl.java:71) #-19 org.apache.lucene.search.ExtendedFieldCacheImpl.getAuto(ExtendedFieldCacheImpl.java:127) #0 /usr/share/php/Java.inc(335): java_ThrowExceptionProxyFactory->getProxy(10, 'org.apache.luce...', 'field "<score>"...', true) #1 /usr/share/php/Java.inc(492): java_Arg->getResult(true) #2 /usr/share/php/Java.inc(498): java_Client->getWrappedResult(true) #3 /usr/share/php/Java.inc(702): java_Client->getResult() #4 /usr/share/php/Java.inc(1893): java_Client->invokeMethod(2, 'search', Array) #5 /usr/share/php/Java.inc(2011): java_JavaProxy->__call('search', Array) #6 /usr/share/php/Java.inc(218 in /usr/share/php/Java.inc on line 298 Can anyone help with this or point me in the right direction? -- Thanks Darren Moore |
From: <php...@li...> - 2009-03-26 10:25:34
|
Hi again, I saw that you've included your full address, so i've excluded it from the archives. I saw that you already send an input stream, so w/o a stack trace it is hard to guess what went wrong. Some problem with an external jni library maybe. The second problem is probably caused by a false string to data conversion (ascii instead of utf8). Regards, Jost Boekemeier |
From: <php...@li...> - 2009-03-20 07:19:59
|
Hi, The php-cgi demo shipped with the documentation download has been compiled w/o anything. To use PECL extensions please install php-cgi. php...@li... schrieb: >Dear Friends, > I have deployed JavaBridge 5.4.4 on jboss-4.0.5.GA in RHEL 4. test.php is working fine . But when i install phpESP(which requires pcre) on JavaBridge, i am geting the following error : > >------------------------------------------------------------------------------------------------ > >Fatal error: Call to undefined function preg_replace() in /usr/local/phpesp/jboss-4.0.5.GA/server/default/deploy/JavaBridge.war/phpESP/admin/include/lib/espi18n.inc on line 66 > >------------------------------------------------------------------------------------------------ > > In the phpinfo page of JavaBridge on Linux, i found no reference to pcre. But when i checked with phpinfo page of JavaBridge on a Windows Machine, i have pcre and also phpESP is working fine without any issue. > > Please kindly help me in resolving this issue. > >Thank You >With Regards >Santhanam > >--------------------------------------------------- >Amrita Institute of Medical Sciences, Cochin, India > > > > >------------------------------------------------------------------------------ >Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are >powering Web 2.0 with engaging, cross-platform capabilities. Quickly and >easily build your RIAs with Flex Builder, the Eclipse(TM)based development >software that enables intelligent coding and step-through debugging. >Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com >_______________________________________________ >php-java-bridge-users mailing list >php...@li... >https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
From: <php...@li...> - 2009-03-20 06:21:35
|
Dear Friends, I have deployed JavaBridge 5.4.4 on jboss-4.0.5.GA in RHEL 4. test.php is working fine . But when i install phpESP(which requires pcre) on JavaBridge, i am geting the following error : ------------------------------------------------------------------------------------------------ Fatal error: Call to undefined function preg_replace() in /usr/local/phpesp/jboss-4.0.5.GA/server/default/deploy/JavaBridge.war/phpESP/admin/include/lib/espi18n.inc on line 66 ------------------------------------------------------------------------------------------------ In the phpinfo page of JavaBridge on Linux, i found no reference to pcre. But when i checked with phpinfo page of JavaBridge on a Windows Machine, i have pcre and also phpESP is working fine without any issue. Please kindly help me in resolving this issue. Thank You With Regards Santhanam --------------------------------------------------- Amrita Institute of Medical Sciences, Cochin, India |
From: <php...@li...> - 2009-03-20 06:03:17
|
Dear Friends, I have deployed JavaBridge 5.4.4 on jboss-4.0.5.GA in RHEL 4. test.php is working fine . But when i install phpESP(which requires pcre) on JavaBridge, i am geting the following error : --------------------------------------------------------------------------------------- Fatal error: Call to undefined function preg_replace() in /usr/local/phpesp/jboss-4.0.5.GA/server/default/deploy/JavaBridge.war/phpESP/admin/include/lib/espi18n.inc on line 66 ---------------------------------------------------------------------------------------- In the phpinfo page of JavaBridge on Linux, i found no reference to pcre. But when i checked with phpinfo page of JavaBridge on a Windows Machine, i have pcre and also phpESP is working fine without any issue. Please kindly help me in resolving this issue. Thank You With Regards Santhanam --------------------------------------------------- Amrita Institute of Medical Sciences, Cochin, India |
From: <php...@li...> - 2009-03-19 16:24:02
|
Hello, I'd like to chat with a lead developer off-list to setup an interview/podcast/article. You can use the contact form at http://www.nyphp.org/contact.php to avoid spamming of my email address. Thanks, --- Hans Zaunere / Managing Member / New York PHP www.nyphp.org / www.nyphp.com |
From: <php...@li...> - 2009-03-15 14:42:12
|
Hi, the code is in the CVS head. A binary is available from: => http://downloads.sourceforge.net/php-java-bridge/JavaBridgeTemplate5441rc.war?use_mirror=osdn I have tested it on Tomcat only. >From the NEWS file: Version 5.4.4.1 * Remote PHP scripts can now be accessed as usual. The code: <%@page import="java.io.*" %> <%@page import="javax.script.*" %> <%@page import="php.java.script.servlet.EngineFactory" %> <% ScriptEngine e = EngineFactory.getInvocablePhpScriptEngine (this, application, request, response, new java.net.URI("http://foo:80/myApp/JavaProxy.php")); String result = (String)((Invocable)e).invokeFunction("phpversion", new Object[]{}); ((Closeable)e).close(); out.println("yourApp running PHP version:" + result); %> Will eval "phpversion()" on the server foo and return the result. There must not be a firewall in between, the servlet thread pool must not be limited or twice the size of the PHP container's pool size, the PHP option "allow_url_include" and the Java <code>WEB-INF/web.xml</code> "promiscuous" option must be enabled. Both components should be behind a firewall. Regards, Jost Bökemeier |
From: <php...@li...> - 2009-03-13 20:29:59
|
Jost, Yes, you're understanding correctly. Thanks for the insight, and the enhancement...conceptually, this should work quite nicely. -----Original Message----- From: php...@li... [mailto:php...@li...] Sent: Friday, March 13, 2009 1:30 PM To: php...@li... Subject: Re: [Php-java-bridge-users] Weblogic to PHP help needed Hi, if I understand you correctly, you need to call PHP procedures running in a remote PHP "AS" container. For localhost you can use the engine factory, please see the jsp+php2.jsp example for details. An API to access remote scripts is currently missing. But I will add an URI parameter to getInvocablePhpScriptEngine() so that you can pass a full URI. When implemented, you can access remote php procedures as usual, provided that you enable url_include in your php.ini file (that's the php equivalent of the web_inf/web.xml "promiscuous" flag). Regards, Jost Bökemeier php...@li... schrieb: >Good Day, > >I'm trying to utilize an existing suite of PHP tools to access Active Directory, that will be called by a Weblogic Server running on a separate piece of hardware. (separate from the PHP application server) The PHP server will be accessed by multiple customers running Weblogic on separate pieces of hardware....the goal is one central Active Directory code toolbox running PHP. > >The code is called as part of the login steps. The user accesses a Flex login page running on a Weblogic server (8.1.3). The code will need to run some Java that will access the remote PHP code, that will return an array of attributes related to password expiration date, account status, email address, ldap bind failure/success, etc. > >We've been working for a day or two on this, and haven't had any of success. Also haven't been able to find many examples of this scenario...it looks like most people want to run Java from within PHP...are needs are actually the opposite. > >Also, since the version of Weblogic we have to use is rather old, (we have to run Java 1.4 to make it work with other tools), this also presents some challenges. > >I'm able to do this using AMFPHP and a Remote Object definition within the Flex code, but I can't allow the browser client to talk directly to the PHP server...the server can't be internet facing...only the Weblogic server. > >Any suggestions will be greatly appreciated...thank you in advance! > > >----------------------------------------------------------------------- >------- Apps built with the Adobe(R) Flex(R) framework and Flex >Builder(TM) are powering Web 2.0 with engaging, cross-platform >capabilities. Quickly and easily build your RIAs with Flex Builder, the >Eclipse(TM)based development software that enables intelligent coding >and step-through debugging. >Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com >_______________________________________________ >php-java-bridge-users mailing list >php...@li... >https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
From: <php...@li...> - 2009-03-13 17:29:49
|
Hi, if I understand you correctly, you need to call PHP procedures running in a remote PHP "AS" container. For localhost you can use the engine factory, please see the jsp+php2.jsp example for details. An API to access remote scripts is currently missing. But I will add an URI parameter to getInvocablePhpScriptEngine() so that you can pass a full URI. When implemented, you can access remote php procedures as usual, provided that you enable url_include in your php.ini file (that's the php equivalent of the web_inf/web.xml "promiscuous" flag). Regards, Jost Bökemeier php...@li... schrieb: >Good Day, > >I'm trying to utilize an existing suite of PHP tools to access Active Directory, that will be called by a Weblogic Server running on a separate piece of hardware. (separate from the PHP application server) The PHP server will be accessed by multiple customers running Weblogic on separate pieces of hardware....the goal is one central Active Directory code toolbox running PHP. > >The code is called as part of the login steps. The user accesses a Flex login page running on a Weblogic server (8.1.3). The code will need to run some Java that will access the remote PHP code, that will return an array of attributes related to password expiration date, account status, email address, ldap bind failure/success, etc. > >We've been working for a day or two on this, and haven't had any of success. Also haven't been able to find many examples of this scenario...it looks like most people want to run Java from within PHP...are needs are actually the opposite. > >Also, since the version of Weblogic we have to use is rather old, (we have to run Java 1.4 to make it work with other tools), this also presents some challenges. > >I'm able to do this using AMFPHP and a Remote Object definition within the Flex code, but I can't allow the browser client to talk directly to the PHP server...the server can't be internet facing...only the Weblogic server. > >Any suggestions will be greatly appreciated...thank you in advance! > > >------------------------------------------------------------------------------ >Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are >powering Web 2.0 with engaging, cross-platform capabilities. Quickly and >easily build your RIAs with Flex Builder, the Eclipse(TM)based development >software that enables intelligent coding and step-through debugging. >Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com >_______________________________________________ >php-java-bridge-users mailing list >php...@li... >https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
From: <php...@li...> - 2009-03-13 12:57:10
|
Good Day, I'm trying to utilize an existing suite of PHP tools to access Active Directory, that will be called by a Weblogic Server running on a separate piece of hardware. (separate from the PHP application server) The PHP server will be accessed by multiple customers running Weblogic on separate pieces of hardware....the goal is one central Active Directory code toolbox running PHP. The code is called as part of the login steps. The user accesses a Flex login page running on a Weblogic server (8.1.3). The code will need to run some Java that will access the remote PHP code, that will return an array of attributes related to password expiration date, account status, email address, ldap bind failure/success, etc. We've been working for a day or two on this, and haven't had any of success. Also haven't been able to find many examples of this scenario...it looks like most people want to run Java from within PHP...are needs are actually the opposite. Also, since the version of Weblogic we have to use is rather old, (we have to run Java 1.4 to make it work with other tools), this also presents some challenges. I'm able to do this using AMFPHP and a Remote Object definition within the Flex code, but I can't allow the browser client to talk directly to the PHP server...the server can't be internet facing...only the Weblogic server. Any suggestions will be greatly appreciated...thank you in advance! |
From: <php...@li...> - 2009-03-08 18:11:33
|
Hi, > I will clean up the code and commit it this weekend. it is tagged as Release-5-4-4. Regards, Jost Boekemeier |
From: <php...@li...> - 2009-03-07 15:25:44
|
Hi, [I assume this issue has been solved] > The bridge starts php-cgi.exe from the %PATH%. Actually the bridge starts a PHP binary from c:\Program Files\PHP\php-cgi.exe or /usr/bin/php. The bridge could search a php-cgi.exe from the path, if that helps to avoid such confusion. Regards, Jost Boekemeier |
From: <php...@li...> - 2009-03-06 22:18:14
|
SUCCESS!!! With MySQL extension at that :-) I copied C:/PHP to C:/Program Files/PHP, since that path is built in to either launcher or the servlet. Seems like I saw somewhere that you can actually provide a path to php-cgi as an init-parameter to the servlet. Summary: 1) JavaBridge.war (demo) has incorrect php-cgi binary, and uses php.ini from cgi directory. 2) JavaBridgeTemplate5433.war works better, but on Windows PHP must be installed in C:/Program Files/PHP (C:/PHP does not work, unless somehow init-parmas are changed in web.xml), extensions in C:/Program Files/PHP/ext. 3) Windows installation requires php.ini to be in C:\WINDOWS, unless you use the following registry key to put it somewhere else: HKEY_LOCAL_MACHINE\SOFTWARE\PHP\IniFilePath. 4) Just for completeness, not a JavaBridge issue: Don't use PHP installer for Windows, doesn't provide everything. Instead get the binary distribution and unzip manually into C:/Program Files/PHP, add C:/Program Files/PHP into Windows Path, add PHPRC=C:/Program Files/PHP env var. Modify php.ini to change extensions_dir=C:/Program Files/PHP/ext Thanks all for the help, and HTH others! Shash On Fri, Mar 6, 2009 at 4:03 PM, Sasvata Chatterjee < sas...@gm...> wrote: > There maybe two problems. I deleted the .....\Tomcat-6.0\temp directory > just for the heck of it to see if the error message changed. Lo and behold, > I get an error message trying to find php-cgi. I have checked using both > Cygwin and the Command Prompt, that php.exe and php-cgi.exe is in the path. > But looks like launcher.exe is looking for an explicit path to php-cgi.exe: > > type Exception report > > message > > description The server encountered an internal error () that prevented it > from fulfilling this request. > > exception > > javax.servlet.ServletException: An IO exception occured. Probably php was > not installed as "/usr/bin/php-cgi" or "c:/Program Files/PHP/php-cgi.exe" > or > "C:\ASF\Tomcat-6.0\webapps\JavaBridgeTemplate5433\WEB-INF\cgi\php-cgi-x86-windows[.sh]|[.exe]". > Please see "php_exec" in your WEB-INF/web.xml and WEB-INF/cgi/README for > details. > php.java.servlet.PhpCGIServlet.handle(PhpCGIServlet.java:361) > 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: Cannot run program "php-cgi" (in directory > "C:\Documents and Settings\sasvatac"): CreateProcess error=2, The system > cannot find the file specified > java.lang.ProcessBuilder.start(Unknown Source) > java.lang.Runtime.exec(Unknown Source) > php.java.bridge.Util$Process.start(Util.java:903) > php.java.bridge.Util$ProcessWithErrorHandler.start(Util.java:1005) > php.java.bridge.Util$ProcessWithErrorHandler.start(Util.java:1060) > > php.java.servlet.PhpCGIServlet$CGIRunner.execute(PhpCGIServlet.java:248) > 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: CreateProcess error=2, The system cannot find the file > specified > java.lang.ProcessImpl.create(Native Method) > java.lang.ProcessImpl.<init>(Unknown Source) > java.lang.ProcessImpl.start(Unknown Source) > java.lang.ProcessBuilder.start(Unknown Source) > java.lang.Runtime.exec(Unknown Source) > php.java.bridge.Util$Process.start(Util.java:903) > php.java.bridge.Util$ProcessWithErrorHandler.start(Util.java:1005) > php.java.bridge.Util$ProcessWithErrorHandler.start(Util.java:1060) > > php.java.servlet.PhpCGIServlet$CGIRunner.execute(PhpCGIServlet.java:248) > 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. > Apache Tomcat/6.0.18 > > On Fri, Mar 6, 2009 at 3:52 PM, Sasvata Chatterjee < > sas...@gm...> wrote: > >> Thanks guys for the help (sorry, if you don't type your name in the >> message, I see the sender as "php-java-bridge-user" :-). So far still not >> much luck. >> >> Brad, I tried copying the php_bz2.dll into the cgi directory and changing >> "extension_dir=.". No go. >> >> I deleted JavaBridge, and put JavaBridgeTemplate5433.war and tried it. I >> get the following error, the pipe is not found: >> >> java.io.FileNotFoundException: \\.\pipe\C:\ASF\Tomcat-6.0\temp\JavaBridge5440005472872131044.socket (All pipe instances are busy) >> >> >> *type* Exception report >> >> *message* >> >> *description* *The server encountered an internal error () that prevented >> it from fulfilling this request.* >> >> *exception* >> >> javax.servlet.ServletException: PHP FastCGI server failed, switching off FastCGI SAPI. >> >> php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.execute(FastCGIServlet.java:389) >> 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.ConnectException >> php.java.servlet.fastcgi.NPChannelName.doConnect(NPChannelName.java:50) >> >> >> php.java.servlet.fastcgi.NPChannelName.connect(NPChannelName.java:54) >> php.java.servlet.fastcgi.FastCGIServlet$1.connect(FastCGIServlet.java:152) >> php.java.servlet.fastcgi.ConnectionPool$Connection.reopen(ConnectionPool.java:101) >> >> >> php.java.servlet.fastcgi.ConnectionPool.openConnection(ConnectionPool.java:200) >> php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.parseBody(FastCGIServlet.java:421) >> 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.FileNotFoundException: \\.\pipe\C:\ASF\Tomcat-6.0\temp\JavaBridge5440005472872131044.socket (All pipe instances are busy) >> >> >> java.io.RandomAccessFile.open(Native Method) >> java.io.RandomAccessFile.<init>(Unknown Source) >> java.io.RandomAccessFile.<init>(Unknown Source) >> php.java.servlet.fastcgi.NPChannelName.doConnect(NPChannelName.java:48) >> >> >> php.java.servlet.fastcgi.NPChannelName.connect(NPChannelName.java:54) >> php.java.servlet.fastcgi.FastCGIServlet$1.connect(FastCGIServlet.java:152) >> php.java.servlet.fastcgi.ConnectionPool$Connection.reopen(ConnectionPool.java:101) >> >> >> php.java.servlet.fastcgi.ConnectionPool.openConnection(ConnectionPool.java:200) >> php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.parseBody(FastCGIServlet.java:421) >> 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) >> >> >> >> On Fri, Mar 6, 2009 at 1:04 PM, < >> php...@li...> wrote: >> >>> Only binaries located in web-inf/cgi use that path. >>> >>> System executables are launched from home dir as cwd and w/o any special >>> path or setting. >>> >>> >>> >>> php...@li... wrote: >>> >>> >>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" >>> > >>> >Is there a simple setting to make the launcher use the other php.ini? >>> >Please post your ultimate solution if/when you figure this out and get >>> it >>> >working. >>> >thx, -Brad- >>> >>> >------------------------------------------------------------------------------ >>> >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 22:04:14
|
There maybe two problems. I deleted the .....\Tomcat-6.0\temp directory just for the heck of it to see if the error message changed. Lo and behold, I get an error message trying to find php-cgi. I have checked using both Cygwin and the Command Prompt, that php.exe and php-cgi.exe is in the path. But looks like launcher.exe is looking for an explicit path to php-cgi.exe: type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: An IO exception occured. Probably php was not installed as "/usr/bin/php-cgi" or "c:/Program Files/PHP/php-cgi.exe" or "C:\ASF\Tomcat-6.0\webapps\JavaBridgeTemplate5433\WEB-INF\cgi\php-cgi-x86-windows[.sh]|[.exe]". Please see "php_exec" in your WEB-INF/web.xml and WEB-INF/cgi/README for details. php.java.servlet.PhpCGIServlet.handle(PhpCGIServlet.java:361) 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: Cannot run program "php-cgi" (in directory "C:\Documents and Settings\sasvatac"): CreateProcess error=2, The system cannot find the file specified java.lang.ProcessBuilder.start(Unknown Source) java.lang.Runtime.exec(Unknown Source) php.java.bridge.Util$Process.start(Util.java:903) php.java.bridge.Util$ProcessWithErrorHandler.start(Util.java:1005) php.java.bridge.Util$ProcessWithErrorHandler.start(Util.java:1060) php.java.servlet.PhpCGIServlet$CGIRunner.execute(PhpCGIServlet.java:248) 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: CreateProcess error=2, The system cannot find the file specified java.lang.ProcessImpl.create(Native Method) java.lang.ProcessImpl.<init>(Unknown Source) java.lang.ProcessImpl.start(Unknown Source) java.lang.ProcessBuilder.start(Unknown Source) java.lang.Runtime.exec(Unknown Source) php.java.bridge.Util$Process.start(Util.java:903) php.java.bridge.Util$ProcessWithErrorHandler.start(Util.java:1005) php.java.bridge.Util$ProcessWithErrorHandler.start(Util.java:1060) php.java.servlet.PhpCGIServlet$CGIRunner.execute(PhpCGIServlet.java:248) 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. Apache Tomcat/6.0.18 On Fri, Mar 6, 2009 at 3:52 PM, Sasvata Chatterjee < sas...@gm...> wrote: > Thanks guys for the help (sorry, if you don't type your name in the > message, I see the sender as "php-java-bridge-user" :-). So far still not > much luck. > > Brad, I tried copying the php_bz2.dll into the cgi directory and changing > "extension_dir=.". No go. > > I deleted JavaBridge, and put JavaBridgeTemplate5433.war and tried it. I > get the following error, the pipe is not found: > > java.io.FileNotFoundException: \\.\pipe\C:\ASF\Tomcat-6.0\temp\JavaBridge5440005472872131044.socket (All pipe instances are busy) > > > *type* Exception report > > *message* > > *description* *The server encountered an internal error () that prevented > it from fulfilling this request.* > > *exception* > > javax.servlet.ServletException: PHP FastCGI server failed, switching off FastCGI SAPI. > > php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.execute(FastCGIServlet.java:389) > 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.ConnectException > php.java.servlet.fastcgi.NPChannelName.doConnect(NPChannelName.java:50) > > php.java.servlet.fastcgi.NPChannelName.connect(NPChannelName.java:54) > php.java.servlet.fastcgi.FastCGIServlet$1.connect(FastCGIServlet.java:152) > php.java.servlet.fastcgi.ConnectionPool$Connection.reopen(ConnectionPool.java:101) > > php.java.servlet.fastcgi.ConnectionPool.openConnection(ConnectionPool.java:200) > php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.parseBody(FastCGIServlet.java:421) > 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.FileNotFoundException: \\.\pipe\C:\ASF\Tomcat-6.0\temp\JavaBridge5440005472872131044.socket (All pipe instances are busy) > > java.io.RandomAccessFile.open(Native Method) > java.io.RandomAccessFile.<init>(Unknown Source) > java.io.RandomAccessFile.<init>(Unknown Source) > php.java.servlet.fastcgi.NPChannelName.doConnect(NPChannelName.java:48) > > php.java.servlet.fastcgi.NPChannelName.connect(NPChannelName.java:54) > php.java.servlet.fastcgi.FastCGIServlet$1.connect(FastCGIServlet.java:152) > php.java.servlet.fastcgi.ConnectionPool$Connection.reopen(ConnectionPool.java:101) > > php.java.servlet.fastcgi.ConnectionPool.openConnection(ConnectionPool.java:200) > php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.parseBody(FastCGIServlet.java:421) > 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) > > > > On Fri, Mar 6, 2009 at 1:04 PM, < > php...@li...> wrote: > >> Only binaries located in web-inf/cgi use that path. >> >> System executables are launched from home dir as cwd and w/o any special >> path or setting. >> >> >> >> php...@li... wrote: >> >> >>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" >> > >> >Is there a simple setting to make the launcher use the other php.ini? >> >Please post your ultimate solution if/when you figure this out and get it >> >working. >> >thx, -Brad- >> >> >------------------------------------------------------------------------------ >> >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 21:53:05
|
Thanks guys for the help (sorry, if you don't type your name in the message, I see the sender as "php-java-bridge-user" :-). So far still not much luck. Brad, I tried copying the php_bz2.dll into the cgi directory and changing "extension_dir=.". No go. I deleted JavaBridge, and put JavaBridgeTemplate5433.war and tried it. I get the following error, the pipe is not found: java.io.FileNotFoundException: \\.\pipe\C:\ASF\Tomcat-6.0\temp\JavaBridge5440005472872131044.socket (All pipe instances are busy) *type* Exception report *message* *description* *The server encountered an internal error () that prevented it from fulfilling this request.* *exception* javax.servlet.ServletException: PHP FastCGI server failed, switching off FastCGI SAPI. php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.execute(FastCGIServlet.java:389) 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.ConnectException php.java.servlet.fastcgi.NPChannelName.doConnect(NPChannelName.java:50) php.java.servlet.fastcgi.NPChannelName.connect(NPChannelName.java:54) php.java.servlet.fastcgi.FastCGIServlet$1.connect(FastCGIServlet.java:152) php.java.servlet.fastcgi.ConnectionPool$Connection.reopen(ConnectionPool.java:101) php.java.servlet.fastcgi.ConnectionPool.openConnection(ConnectionPool.java:200) php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.parseBody(FastCGIServlet.java:421) 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.FileNotFoundException: \\.\pipe\C:\ASF\Tomcat-6.0\temp\JavaBridge5440005472872131044.socket (All pipe instances are busy) java.io.RandomAccessFile.open(Native Method) java.io.RandomAccessFile.<init>(Unknown Source) java.io.RandomAccessFile.<init>(Unknown Source) php.java.servlet.fastcgi.NPChannelName.doConnect(NPChannelName.java:48) php.java.servlet.fastcgi.NPChannelName.connect(NPChannelName.java:54) php.java.servlet.fastcgi.FastCGIServlet$1.connect(FastCGIServlet.java:152) php.java.servlet.fastcgi.ConnectionPool$Connection.reopen(ConnectionPool.java:101) php.java.servlet.fastcgi.ConnectionPool.openConnection(ConnectionPool.java:200) php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.parseBody(FastCGIServlet.java:421) 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) On Fri, Mar 6, 2009 at 1:04 PM, <php...@li... > wrote: > Only binaries located in web-inf/cgi use that path. > > System executables are launched from home dir as cwd and w/o any special > path or setting. > > > > php...@li... wrote: > > >>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" > > > >Is there a simple setting to make the launcher use the other php.ini? > >Please post your ultimate solution if/when you figure this out and get it > >working. > >thx, -Brad- > > >------------------------------------------------------------------------------ > >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 19:04:54
|
Only binaries located in web-inf/cgi use that path. System executables are launched from home dir as cwd and w/o any special path or setting. php...@li... wrote: >>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" > >Is there a simple setting to make the launcher use the other php.ini? >Please post your ultimate solution if/when you figure this out and get it >working. >thx, -Brad- >------------------------------------------------------------------------------ >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 |