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
|
3
(1) |
4
|
5
|
6
(4) |
7
(1) |
8
(1) |
9
(2) |
10
(3) |
11
(1) |
12
(1) |
13
(5) |
14
(4) |
15
(1) |
16
(4) |
17
(3) |
18
(2) |
19
(2) |
20
|
21
|
22
|
23
|
24
|
25
|
26
|
27
|
28
(2) |
29
|
30
|
31
|
|
|
|
|
From: <php...@li...> - 2006-10-28 18:37:50
|
Hi, please excuse the delay. > Looking back at the docs for the Bridge, it says > that if you get a > "NoClassDefFound" error it means there is another > class that the > current class is trying to reference or call that is > missing (so the > Client->runTransaction is missing something). Yes. There are proposals to add a SML style "module system" to Java and/or to add a global repository for Java classes (similar to the global assembly cache used by .NET). Until this is implemented I suggest to use the JavaBridge.war as a back end and to store all necessary java libraries to the WEB-INF/lib/ folder within the JavaBridge.war file. > Does this mean that the four java_require statements The classes loaded by one java_require statement cannot see the classes loaded by the other java_require statements, see http://php-java-bridge.sourceforge.net/documentation/PHP-API/html/java_8c.html#doc23. Merging the 4 statements into one may solve the problem. > If it means that there is some other JAR I need a > java_require for, > how do I go about finding what JAR I should > include??? Good question. From the README (http://php-java-bridge.sourceforge.net/README): Sun java platform issues ------------------------ The sun java platform does not support java "modules". This causes certain problems when running java programs. When you compile a class foo which references a class bar and ship the class foo without providing bar, the sun java platform will not complain unless the user accidentally calls a method which references the non-existing class. If this happens, a "NoClassDefFound" error is thrown. This error may not(!) indicate which class is missing and it certainly does not indicate which external library is missing. The tests.php4 folder contains two tests, noClassDefFound.php and noClassDefFound2.php which demonstrate this. To avoid this problem please document *exactly* (including the version number) which external libraries (.jar files) your software needs. If you have written software where certain methods require an optional library, please document this in the method header. If receive this error when using a Java library, this may mean the following: * an old or different JDK than expected by the library is used, for example GNU Java instead of SUN or IBM Java. * java_require("foo.jar"); java_require("bar.jar"); was used instead of java_require("foo.jar;bar.jar"); to load two interconnected libraries. * the library is simply broken or it expects certain parameters in its environment (applet parameter or system property or property file). * the library may only work within a J2EE environment from a certain vendor, for example the WebSphere Application server or the Sun Java Application server. Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2006-10-28 18:16:20
|
Hi, please excuse the delay. > I've just downloaded and installed > php-java-bridge-3.1.8-1.FC5.i386.rpm > and added java.log_level = 3 in /etc/php.d/Java.ini, It is /etc/php.d/java.ini. The Linux file system is case sensitive. However, > java.lang.NullPointerException > at php.java.bridge.GlobalRef.get (java) no idea, sorry. -- The above null pointer exception means that the referenced element has been unreferenced before (which indicates a bug in the Zend engine). But the code example you've given cannot cause this problem, and it is neither a problem with php 5.1.4 nor with the Java VM. Please set the log level to 5 and report this as a bug (please use http://sourceforge.net/tracker/?func=add&group_id=117793&atid=679233). Regards, Jost Boekemeier ___________________________________________________________ Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de |
From: <php...@li...> - 2006-10-19 12:27:02
|
Hi all, I've just downloaded and installed php-java-bridge-3.1.8-1.FC5.i386.rpm and added java.log_level = 3 in /etc/php.d/Java.ini, but it doesn't seem to work. ** my code ** <?php $s = new Java("java.lang.String", "Hello World!"); echo $s->toString(); ?> ** results ** Oct 19 21:12:32 JavaBridge INFO : JavaBridge version : 3.1.8 Oct 19 21:12:32 JavaBridge INFO : JavaBridge logFile : Oct 19 21:12:32 JavaBridge INFO : JavaBridge default logLevel: 3 Oct 19 21:12:32 JavaBridge INFO : JavaBridge socket : LOCAL:@java-bridge-814 Oct 19 21:12:32 JavaBridge INFO : JavaBridge thread pool size: 20 Oct 19 21:12:32 JavaBridge ERROR: An exception occured: java.lang.NullPointerException java.lang.NullPointerException at php.java.bridge.GlobalRef.get (java) at php.java.bridge.Request.getGlobalRef (java) at php.java.bridge.Request.begin (java) at php.java.bridge.Parser.CALL_BEGIN (java) at php.java.bridge.Parser.parse (java) at php.java.bridge.Request.handleRequest (java) at php.java.bridge.Request.handleRequests (java) at php.java.bridge.JavaBridge.run (java) at php.java.bridge.BaseThreadPool$Delegate.run (java) Oct 19 21:12:32 JavaBridge ERROR: An exception occured: java.lang.NullPointerException java.lang.NullPointerException at php.java.bridge.GlobalRef.get (java) at php.java.bridge.Request.getGlobalRef (java) at php.java.bridge.Request.begin (java) at php.java.bridge.Parser.CALL_BEGIN (java) at php.java.bridge.Parser.parse (java) at php.java.bridge.Request.handleRequest (java) at php.java.bridge.Request.handleRequests (java) at php.java.bridge.JavaBridge.run (java) at php.java.bridge.BaseThreadPool$Delegate.run (java) I'm running Fedora Core 5(2.6.15-1.2054_FC5) Apache 2.2.2 PHP 5.1.4 and any help and advice would really be appreciated. -tsunoda |
From: <php...@li...> - 2006-10-19 05:04:31
|
Winner Thanks for your patience and help in getting thru this issue |
From: <php...@li...> - 2006-10-18 17:36:38
|
Hi, > >>If you want to embed java statements into your php > pages, you must > >>install the PECL extension from sourceforge. > > Couldn't find a PECL extension on sourceforge - do > you have a > URL/instructions? I use PEAR but am not familiar > with PECL It is called php-4-java-x86-windows.dll and is stored in the WEB-INF/cgi folder within the JavaBridge.war. The README contained in the same folder has some information how to set it up. Basically you need to rename the above dll to php_java.dll, copy it to your php extension_dir and add a extension=php_java.dll [java] to your php.ini. Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2006-10-18 10:01:16
|
Hi - Well I now have my logging working - in Jboss deploying an EAR! :) These are the steps I took. 1. Created an extension to the php bridge PhpJavaServlet and using the Util.setLogger parsing an instance of the the Log4JLogger. (just this on it's own gave me the following exception: ERROR: invalid console appender config detected, console stream is looping). Moving the Log4J jar into my ear then gave me the following: 16:04:29,676 ERROR [STDERR] log4j:ERROR A "org.jboss.logging.util.OnlyOnceErrorHandler" object is not assignable to a "org.apache.log4j.spi.ErrorHandler" var So I: 2. Created a Servlet that creates an instance my Log4jRepositorySelector. 3. Created Log4jRepositorySelector. see http://wiki.jboss.org/wiki/Wiki.jsp?page=Log4jRepositorySelector for details. php...@li... wrote: Hi Jost, Thanks for your reply. Regarding my loss of logging and the my console freezing - I am using Tomcat within Jboss. I have tried adding the log4j.jar to the classpath in my Jboss startup script - this didn't solve the problem. I have also extended the PhpJavaServlet and set the logger to FileLogger (I assume the default is the Chainsaw?) and modified the php.ini to use various combinations (although I am not sure if this matters for my configuration) and these didn't sort my problem out either. I can, however, make calls to my EJB3 stateless session bean using the bridge - I just loose all logging which isn't desirable...I have done this by deploying my EAR with a WAR that only has the JavaBridge.jar and the php-servlet.jar from the original WAR (although I have used the original and get the same problem). As far as my problem with the connection abort error (see below) - this may well have something to do with Jboss not starting properly but this only happens when I use the bridge, is it possible that I have a port conflict? php...@li... wrote: Hi, > I am however, having a little problem with logging - > as soon as my EAR is deployed (or the original WAR) > my console locks up. Do you use tomcat as the web container? There is an open bug report connected with log4j. The tomcat people suggest to copy the log4j library to the global classpath. > I sometimes get the following exception also - on a > deployment (things still appear to work okay though) > > 2006-10-14 17:03:44,626 DEBUG > [org.jboss.invocation.pooled.server.ServerThread] > beginning dorun > 2006-10-14 17:03:44,636 ERROR > [org.jboss.invocation.pooled.server.ServerThread] > Failed to initialize > java.net.SocketException: Software caused connection > abort: recv failed > at java.net.SocketInputStream.socketRead0(Native > Method) > at > java.net.SocketInputStream.read(SocketInputStream.java:129) > at > java.io.BufferedInputStream.fill(BufferedInputStream.java:218) > at > java.io.BufferedInputStream.read1(BufferedInputStream.java:256) > at > java.io.BufferedInputStream.read(BufferedInputStream.java:313) > at > java.io.ObjectInputStream$PeekInputStream.read(ObjectInputStream.java:2222) > at > java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2235) > at > java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2703) > at > java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:760) > at > java.io.ObjectInputStream.(ObjectInputStream.java:278) > at > org.jboss.invocation.pooled.interfaces.OptimizedObjectInputStream.(OptimizedObjectInputStream.java:131) > at > org.jboss.invocation.pooled.server.ServerThread.dorun(ServerThread.java:265) > at > org.jboss.invocation.pooled.server.ServerThread.run(ServerThread.java:156) I don't think this is a PHP/Java Bridge issue. It sounds as if some jboss internal service failed to start correctly. Regards, Jost Boekemeier --------------------------------- Yahoo! Messenger - with free PC-PC calling and photo sharing.------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642_______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users Send instant messages to your online friends http://uk.messenger.yahoo.com |
From: <php...@li...> - 2006-10-17 17:42:47
|
Hi, > When I make a call to my EJB SLSB for the first time > after I have restarted Jboss I get the following > error: > > 'Fatal error: php_mod_java(98): Call object is > null, check back-end log file(s). in...' the java.persistent_connections option is responsible for this. The php instances keep a connection to the back end until they detect that the connection is broken, in which case you'll receive the above message and the php instance which has detected the failure resets its internal state. When using persistent connections to the back-end please make sure that you restart both, the front end (usually Apache or IIS) and the back end. Regards, Jost Boekemeier ___________________________________________________________ Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de |
From: <php...@li...> - 2006-10-17 16:21:40
|
When I make a call to my EJB SLSB for the first time after I have restarted Jboss I get the following error: 'Fatal error: php_mod_java(98): Call object is null, check back-end log file(s). in...' If I refresh the page I get the expected result - any ideas on why this is happening? --------------------------------- Yahoo! Messenger - with free PC-PC calling and photo sharing. |
From: <php...@li...> - 2006-10-17 16:18:43
|
Hi Jost, Thanks for your reply. Regarding my loss of logging and the my console freezing - I am using Tomcat within Jboss. I have tried adding the log4j.jar to the classpath in my Jboss startup script - this didn't solve the problem. I have also extended the PhpJavaServlet and set the logger to FileLogger (I assume the default is the Chainsaw?) and modified the php.ini to use various combinations (although I am not sure if this matters for my configuration) and these didn't sort my problem out either. I can, however, make calls to my EJB3 stateless session bean using the bridge - I just loose all logging which isn't desirable...I have done this by deploying my EAR with a WAR that only has the JavaBridge.jar and the php-servlet.jar from the original WAR (although I have used the original and get the same problem). As far as my problem with the connection abort error (see below) - this may well have something to do with Jboss not starting properly but this only happens when I use the bridge, is it possible that I have a port conflict? php...@li... wrote: Hi, > I am however, having a little problem with logging - > as soon as my EAR is deployed (or the original WAR) > my console locks up. Do you use tomcat as the web container? There is an open bug report connected with log4j. The tomcat people suggest to copy the log4j library to the global classpath. > I sometimes get the following exception also - on a > deployment (things still appear to work okay though) > > 2006-10-14 17:03:44,626 DEBUG > [org.jboss.invocation.pooled.server.ServerThread] > beginning dorun > 2006-10-14 17:03:44,636 ERROR > [org.jboss.invocation.pooled.server.ServerThread] > Failed to initialize > java.net.SocketException: Software caused connection > abort: recv failed > at java.net.SocketInputStream.socketRead0(Native > Method) > at > java.net.SocketInputStream.read(SocketInputStream.java:129) > at > java.io.BufferedInputStream.fill(BufferedInputStream.java:218) > at > java.io.BufferedInputStream.read1(BufferedInputStream.java:256) > at > java.io.BufferedInputStream.read(BufferedInputStream.java:313) > at > java.io.ObjectInputStream$PeekInputStream.read(ObjectInputStream.java:2222) > at > java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2235) > at > java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2703) > at > java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:760) > at > java.io.ObjectInputStream.(ObjectInputStream.java:278) > at > org.jboss.invocation.pooled.interfaces.OptimizedObjectInputStream.(OptimizedObjectInputStream.java:131) > at > org.jboss.invocation.pooled.server.ServerThread.dorun(ServerThread.java:265) > at > org.jboss.invocation.pooled.server.ServerThread.run(ServerThread.java:156) I don't think this is a PHP/Java Bridge issue. It sounds as if some jboss internal service failed to start correctly. Regards, Jost Boekemeier --------------------------------- Yahoo! Messenger - with free PC-PC calling and photo sharing. |
From: <php...@li...> - 2006-10-16 23:34:45
|
Figured out the disconnect and why it wasn't "working" for me... Turns out that it seems I had the configuration correct at one point, the browser reporting back the message re: PECL required, along with your note about PECL "If you want to embed java statements into your php pages, you must install the PECL extension from sourceforge." turned out to be the final clue for me and in hindsight was actually working at that time. I had assumed, based on the browser output of the phpinfo()-like information, that the test.php file contained only one line and that line had phpinfo() on it. A bad assumption in hindsight. I opened the test.php file and saw calls to java includes and then made up a .php file that had the phpinfo() function as the only line in the file. Viola, I had 4.4.4, and even 4.4.2 when I pointed the bridge to use my old version of php. So the disconnect was that the test.php file didn't run off the bat, yet php support was enabled. Next step is to enable support for 4.4.x so that I can call java servlets and capture return values in my php pages >>If you want to embed java statements into your php pages, you must >>install the PECL extension from sourceforge. Couldn't find a PECL extension on sourceforge - do you have a URL/instructions? I use PEAR but am not familiar with PECL |
From: <php...@li...> - 2006-10-16 17:38:18
|
Hi, > I am however, having a little problem with logging - > as soon as my EAR is deployed (or the original WAR) > my console locks up. Do you use tomcat as the web container? There is an open bug report connected with log4j. The tomcat people suggest to copy the log4j library to the global classpath. > I sometimes get the following exception also - on a > deployment (things still appear to work okay though) > > 2006-10-14 17:03:44,626 DEBUG > [org.jboss.invocation.pooled.server.ServerThread] > beginning dorun > 2006-10-14 17:03:44,636 ERROR > [org.jboss.invocation.pooled.server.ServerThread] > Failed to initialize > java.net.SocketException: Software caused connection > abort: recv failed > at java.net.SocketInputStream.socketRead0(Native > Method) > at > java.net.SocketInputStream.read(SocketInputStream.java:129) > at > java.io.BufferedInputStream.fill(BufferedInputStream.java:218) > at > java.io.BufferedInputStream.read1(BufferedInputStream.java:256) > at > java.io.BufferedInputStream.read(BufferedInputStream.java:313) > at > java.io.ObjectInputStream$PeekInputStream.read(ObjectInputStream.java:2222) > at > java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2235) > at > java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2703) > at > java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:760) > at > java.io.ObjectInputStream.<init>(ObjectInputStream.java:278) > at > org.jboss.invocation.pooled.interfaces.OptimizedObjectInputStream.<init>(OptimizedObjectInputStream.java:131) > at > org.jboss.invocation.pooled.server.ServerThread.dorun(ServerThread.java:265) > at > org.jboss.invocation.pooled.server.ServerThread.run(ServerThread.java:156) I don't think this is a PHP/Java Bridge issue. It sounds as if some jboss internal service failed to start correctly. > p.s. Why is there such restrictions on posts to this > forum Because 90% of all messages posted to this list are spam. So we cannot allow anonymous posts or posts from non-members anymore. Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2006-10-16 17:32:28
|
Hi, [please excuse the delay] > I am wanting to use your php-java-bridge to share > httpsession data between a php application and a > j2ee application and also for the php applicaton to > communicate with some java session facades as an > alternative to SOAP based calls. > > I have had mixed success with the various > configurations described in the documentation and > would appreciate comments on the most optimal > solution. I am finding the documentation a little > confusing :( I agree that the documentation is currently in a horrible state. But unfortunately we don't have any time to update or to rewrite it at the moment. > >From what I have read the c-based extension seems > to be an obvious choice and running PHP using the > Apache module rather than the embedded J2EE AS > option seems the safest. Not necessarily. Running PHP within a J2EE AS is faster than the Apache prefork MPM. The only problem with this setup is that java cannot drop privileges (due to posix constraints), so you need a native wrapper which forwards the request from the HTTP or HTTPS port to the unprivileged 8080 or 8443 ports. In most cases this "native wrapper" is either Apache with mod_jk or Apache with PHP and the PHP/Java Bridge. > Anyway, I am not sure if the above configuration is > correct/desirable Certainly. Your setup is described in fig. #3 in the README. > We are using Apache to server static content like > images and html, we are also using it to serve PHP. > We have the following rules for a virtual host: > > # Dynamic content > JkMount _/* worker > > # Static content > JkUnMount _/*.gif worker > (more like the above - including _/*.php) > > I am not really sure if I need the JkAutoAlias > also.. I can't comment on this one because I have not much experience with mod_jk. We usually set the Apache DocumentRoot to the J2EE AS webapps directory and set up a .htaccess file. Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2006-10-16 16:46:25
|
Hi again. I am replying to my own question post since a friend of mine helped me track down my NoClassDefFound problem (thanks Russell). The error is in the java_require's at the beginning of my code. I needed to use the format java_require(JAR1;JAR2;JAR3;JAR4); instead of separating the requires. There is cross calling in the classes in the 4 libraries I use so they must all be brought into the same memory space. See the following reference for full details: http://php-java-bridge.sourceforge.net/documentation/PHP-API/html/ java_8c.html#doc23 I read this before, but it didn't rally gel in my brain until I was reminded of how libraries are cached by the back-end loader. Jon On Oct 15, 2006, at 4:49 PM, php-java-bridge- us...@li... wrote: > Hullo all. > > Well I am slowly getting closer to converting a sample java class > from our processing companies API (for credit card transactions) > into a woring PHP script using php-java bridge. Thanks for all the > helpful tips I received so far. > > I am currently stuck with an error when calling a particular method > of a class from the JAR file I included at the top of my script. > > MY CODE > ========= > java_require("/Library/WebServer/Documents/cj/simapi-java-5.0.0/lib/ > cybsclients15.jar"); > java_require("/Library/WebServer/Documents/cj/simapi-java-5.0.0/lib/ > cybssecurity.jar"); > java_require("/Library/WebServer/Documents/cj/simapi-java-5.0.0/lib/ > xercesImpl.jar"); > java_require("/Library/WebServer/Documents/cj/simapi-java-5.0.0/lib/ > xml-apis.jar"); > > // Set up var with the class for generating the charge request > $reply_class = new JavaClass("com.cybersource.ws.client.Client"); > // create new hashmap variable to use for results > $reply = new JavaClass("java.util.HashMap"); > $reply = java_util_hashMap(); > $reply = $reply_class->runTransaction($request, $props); > > RESULTS > ======== > [o(Exception):"java.lang.Exception: Invoke failed: [c(Client)]- > >runTransaction((Map)o(HashMap), (Properties)o(Properties)). Cause: > java.lang.ClassNotFoundException: Unresolved external reference: > java.lang.NoClassDefFoundError: com/cybersource/security/exception/ > SecuritySystemException. -- Unable to call the method, see the > README section "Java platform issues" for details. Responsible VM: > 1.5.0_06@http://apple.com/" at: #-6 > php.java.bridge.JavaBridge.getUnresolvedExternalReferenceException > (JavaBridge.java:481) #-5 php.java.bridge.JavaBridge.Invoke > (JavaBridge.java:1084) #-4 php.java.bridge.Request.handleRequest > (Request.java:499) #0 [internal function]: Java->__call > ('runTransaction', Array) #1 /Library/WebServer/Documents/cj/simapi- > java-5.0.0/samples/nvp/AuthCaptureSample.php(114): JavaClass- > >runTransaction(Object(JavaArray), Object(JavaArray)) #2 {main}] > > > Looking back at the docs for the Bridge, it says that if you get a > "NoClassDefFound" error it means there is another class that the > current class is trying to reference or call that is missing (so > the Client->runTransaction is missing something). > > Does this mean that the four java_require statements at the top of > my PHP script do not contain the missing class? These are all the > JAR files that were provided as part of this API package from our > card processing company. > > If it means that there is some other JAR I need a java_require for, > how do I go about finding what JAR I should include??? > > Thanks, > > Jon > ---------------------------------------------------------------------- > --- > Using Tomcat but need to do more? Need to support web services, > security? > Get stuff done quickly with pre-integrated technology to make your > job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel? > cmd=lnk&kid=120709&bid=263057&dat=121642______________________________ > _________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
From: <php...@li...> - 2006-10-15 23:49:16
|
Hullo all. Well I am slowly getting closer to converting a sample java class from our processing companies API (for credit card transactions) into a woring PHP script using php-java bridge. Thanks for all the helpful tips I received so far. I am currently stuck with an error when calling a particular method of a class from the JAR file I included at the top of my script. MY CODE ========= java_require("/Library/WebServer/Documents/cj/simapi-java-5.0.0/lib/ cybsclients15.jar"); java_require("/Library/WebServer/Documents/cj/simapi-java-5.0.0/lib/ cybssecurity.jar"); java_require("/Library/WebServer/Documents/cj/simapi-java-5.0.0/lib/ xercesImpl.jar"); java_require("/Library/WebServer/Documents/cj/simapi-java-5.0.0/lib/ xml-apis.jar"); // Set up var with the class for generating the charge request $reply_class = new JavaClass("com.cybersource.ws.client.Client"); // create new hashmap variable to use for results $reply = new JavaClass("java.util.HashMap"); $reply = java_util_hashMap(); $reply = $reply_class->runTransaction($request, $props); RESULTS ======== [o(Exception):"java.lang.Exception: Invoke failed: [c(Client)]- >runTransaction((Map)o(HashMap), (Properties)o(Properties)). Cause: java.lang.ClassNotFoundException: Unresolved external reference: java.lang.NoClassDefFoundError: com/cybersource/security/exception/ SecuritySystemException. -- Unable to call the method, see the README section "Java platform issues" for details. Responsible VM: 1.5.0_06@http://apple.com/" at: #-6 php.java.bridge.JavaBridge.getUnresolvedExternalReferenceException (JavaBridge.java:481) #-5 php.java.bridge.JavaBridge.Invoke (JavaBridge.java:1084) #-4 php.java.bridge.Request.handleRequest (Request.java:499) #0 [internal function]: Java->__call ('runTransaction', Array) #1 /Library/WebServer/Documents/cj/simapi- java-5.0.0/samples/nvp/AuthCaptureSample.php(114): JavaClass- >runTransaction(Object(JavaArray), Object(JavaArray)) #2 {main}] Looking back at the docs for the Bridge, it says that if you get a "NoClassDefFound" error it means there is another class that the current class is trying to reference or call that is missing (so the Client->runTransaction is missing something). Does this mean that the four java_require statements at the top of my PHP script do not contain the missing class? These are all the JAR files that were provided as part of this API package from our card processing company. If it means that there is some other JAR I need a java_require for, how do I go about finding what JAR I should include??? Thanks, Jon |
From: <php...@li...> - 2006-10-14 16:37:19
|
am able to deploy an EAR into Jboss 4.0.4GA (ejb3 install) and can call an EJB3 Stateless Session. I am however, having a little problem with logging - as soon as my EAR is deployed (or the original WAR) my console locks up. I have managed to connect to the log4j output using Chainsaw so I know things are still working. Why is my console and normal logging disappearing. I sometimes get the following exception also - on a deployment (things still appear to work okay though) 2006-10-14 17:03:44,626 DEBUG [org.jboss.invocation.pooled.server.ServerThread] beginning dorun 2006-10-14 17:03:44,636 ERROR [org.jboss.invocation.pooled.server.ServerThread] Failed to initialize java.net.SocketException: Software caused connection abort: recv failed at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:129) at java.io.BufferedInputStream.fill(BufferedInputStream.java:218) at java.io.BufferedInputStream.read1(BufferedInputStream.java:256) at java.io.BufferedInputStream.read(BufferedInputStream.java:313) at java.io.ObjectInputStream$PeekInputStream.read(ObjectInputStream.java:2222) at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2235) at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2703) at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:760) at java.io.ObjectInputStream.<init>(ObjectInputStream.java:278) at org.jboss.invocation.pooled.interfaces.OptimizedObjectInputStream.<init>(OptimizedObjectInputStream.java:131) at org.jboss.invocation.pooled.server.ServerThread.dorun(ServerThread.java:265) at org.jboss.invocation.pooled.server.ServerThread.run(ServerThread.java:156) p.s. Why is there such restrictions on posts to this forum - seems a little over censored in my opinion. I have been writing software for many years, I admit to having no PHP experience, but I have had a few problems which I think had to do with the documentation not being particularly clear, are you afraid of a bit of constructive criticism? --------------------------------- Try the all-new Yahoo! Mail . "The New Version is radically easier to use" The Wall Street Journal |
From: <php...@li...> - 2006-10-14 15:32:22
|
Hi, > So I guess I just don't understand what these php > stubs are for? Can > anyone explain? They aren't ready yet. They will be used in the Eclipse IDE and debugger. One problem with these stubs is that PHP currently handles some method names like exit(), put() etc specially. This might change in PHP6. > Also, is there an official BBS > style forum anywhere > for posting help -- the mailing list seems outdated? We can set it up, if someone is willing to maintain it. Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2006-10-14 15:26:05
|
Hi, [please excuse the delay] > The title of the email says it all! I know PHP like > the back of my > hand, but know little to nothing about Java. you don't need java knowledge to invoke methods from Java libraries. In fact you don't even need Java to call out to Java libraries, if you have a recent version of gcc installed (Linux only). > 1) What are the standard "include" files I need at > the top of each of > my PHP scripts to utilize the Bridge? require_once("java/Java.php") is enough. > 2) How do I gain access to certain Java methods in > my PHP scripts? with require_once("java/Java.php"); java_require("/path/to/myLib.jar;...); $myClass = new Java("myLib.myClass"); ... > For example if I want to convert a string read from > a file into an > array of values I think I would use > $array_var->toCharArray > ($string_var). I believe I need the > "java.lang.string" library/class > thing (found this in the Java API docs at Sun.com) > but I cannot > figure out how to enable this class or method in my > PHP scripts? The low-level interface is: require_once("java/Java.php"); $string = new java("java.lang.String", "hello"); $ar = java_values($string->toCharArray()); The high-level interface: require_once("java/java_lang_String"); $string = new java_lang_String("hello"); $ar = java_values($string->toCharArray()); > errors). So how do I call or access the classes in > that file? For > example, there is a class called "Utility" which in > turn has a method > called "read") in the JAR file. I tried the > following: > > <?php > java_require("/Library/WebServer/Documents/cj/simapi-java-5.0.0/lib/ > > cybsclients15.jar"); > $handle = new Java("Utility"); > $props = $handle->read("config.properties"); > ?> You must use the full qualified name. For example: $handle = new Java("com.foo.something.Utility"); You can see the name by opening the .jar file with winzip for example. Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2006-10-14 15:06:49
|
Hi, [please excuse the delay] I am sorry, but I could not reproduce this problem with php 4. I have installed the latest tomcat version (http://ftp.uni-erlangen.de/pub/mirrors/apache/tomcat/tomcat-5/v5.5.20/bin/apache-tomcat-5.5.20.exe) and downloaded and copied the current PHP/Java Bridge ("JavaBridge.war") into C:\Programme\Apache Software Foundation\Tomcat 5.5\webapps downloaded and extracted the current PHP4 version to c:\php and changed C:\Programme\Apache Software Foundation\Tomcat 5.5\webapps\JavaBridge\WEB-INF\web.xml to <init-param> <param-name>php_exec</param-name> <param-value>C:\php\php.exe</param-value> </init-param> After that I was able to run PHP4 applications within tomcat. The only problem I see is that the documentation shows forward slashes, which is something that doesn't work on windows. But this is a minor problem, imho. > Now I'm fishing around abit to see if I can stumble > across a solution, I > try 'php-4-java-x86-windows.dll' in place of > php-cgi-x86-windows.exe in > the web.xml param-name value. Restart TC and get: You don't need a php_java.dll to run php from java. The PECL extension is only necessary for PHP4 and only if you want to embed java statements into your PHP pages. > So I try c:\php\php.exe in web.xml and get "Fatal: > The loaded java > extension is not the PHP/Java Bridge" That's okay, see above. You probably use an old version of the PECL extension. > PHP 4.4.2 too old. > For PHP versions < 5.1.4 install the PECL extension, Yes, the pure PHP implementation currently only works with php 5.1.4 or above. If you want to embed java statements into your php pages, you must install the PECL extension from sourceforge. > Try the url in the error msg above and search it for > PECL without luck The PECL extension is packaged within the JavaBridge.war. > tried copying php_java.dll and php_java.jar These versions are 4 years old and don't work anymore. Don't use them. Please use the most recent versions of the PHP/Java Bridge and the PECL extension. Regards, Jost Boekemeier ___________________________________________________________ Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de |
From: <php...@li...> - 2006-10-13 23:27:38
|
What are the purpose of the PEAR style php stub classes that I created during the install of PHP-Java Bridge? For example, if I do the following in a HP script: $request = new Java("java.util.HashMap"); I can then use the "put" method to stick keys and values into this special Java Style array. $request->put( "key", "value" ); But, I can also do the following: require_once('classes/java_util_HashMap.php'); $request = java_util_hashMap(); But cannot do the "put" method to get values into the variable. $request->put( "key", "value" ); This gives me a "NoSuchMethodException" error? So I guess I just don't understand what these php stubs are for? Can anyone explain? Also, is there an official BBS style forum anywhere for posting help -- the mailing list seems outdated? Thanks, Jon |
From: <php...@li...> - 2006-10-13 17:49:18
|
Thanks for your reply. I now have successfully called an EJB3 Stateless Session Bean using this fantastic bridge in Jboss 4.0.4.GA (ejb3 install). I am however, having a little problem with logging - as soon as my EAR with a modified WAR (i removed all the files not necessary for my deployment) is deployed my console locks up. I have managed to connect to the log4j output using Chainsaw so I know things are still working. Has anyone else had similar problems? Found any solutions - I think it's probably a property I haven't passed over when starting Jboss for a port or something... Paul php...@li... wrote: Hi, just a quick reply, I haven't read your messages yet; > files, I just needed to remove the line: > > require_once("java/Java.php"); > > from the top of the sample pages... We should probably encapsulate them, for example with if(!extension_loaded('java')) require_once("java/Java.php"); > I am, however, getting a > javax.naming.NameNotFoundException when I try the > document example. It should work; I have tested the sample against the current jboss release. There's a FAQ entry for it. > BTW - Has anybody had any success with using this > bridge with Spring beans (in Java) if so, how do I > go about accessing these? Code example will be > great. Please see the JSF examples for more information how to use IOC (Fowler calls it "dependency injection"). I think Spring directly supports JSF beans, so that should be pretty easy. Regards, Jost Boekemeier ___________________________________________________________ Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users --------------------------------- All new Yahoo! Mail "The new Interface is stunning in its simplicity and ease of use." - PC Magazine |
From: <php...@li...> - 2006-10-13 17:11:51
|
Hi, just a quick reply, I haven't read your messages yet; > files, I just needed to remove the line: > > require_once("java/Java.php"); > > from the top of the sample pages... We should probably encapsulate them, for example with if(!extension_loaded('java')) require_once("java/Java.php"); > I am, however, getting a > javax.naming.NameNotFoundException when I try the > document example. It should work; I have tested the sample against the current jboss release. There's a FAQ entry for it. > BTW - Has anybody had any success with using this > bridge with Spring beans (in Java) if so, how do I > go about accessing these? Code example will be > great. Please see the JSF examples for more information how to use IOC (Fowler calls it "dependency injection"). I think Spring directly supports JSF beans, so that should be pretty easy. Regards, Jost Boekemeier ___________________________________________________________ Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de |
From: <php...@li...> - 2006-10-13 07:19:54
|
HI am such an idiot - I don't need the java/*.php files, I just needed to remove the line: require_once("java/Java.php"); from the top of the sample pages... So now I know I am using the c-based extension and I can run the most of the examples. I am, however, getting a javax.naming.NameNotFoundException when I try the document example. I am running with Jboss. BTW - Has anybody had any success with using this bridge with Spring beans (in Java) if so, how do I go about accessing these? Code example will be great. Thanks php...@li... wrote: Hi, I am wanting to use your php-java-bridge to share httpsession data between a php application and a j2ee application and also for the php applicaton to communicate with some java session facades as an alternative to SOAP based calls. I have had mixed success with the various configurations described in the documentation and would appreciate comments on the most optimal solution. I am finding the documentation a little confusing :( >From what I have read the c-based extension seems to be an obvious choice and running PHP using the Apache module rather than the embedded J2EE AS option seems the safest. Like I said, I have played around - the solution that seemed to work best was when I had the .php files removed from the JavaBridge.war and placed into my Apache doc_root. I had also copied the java directory from the war to the doc_root (I had to update the php.ini include_directory) and I removed the cgi directory from WEB-INF (I wanted to make sure the PHP pages were being served by Apache). With this I was able to run the sessionSharing example - the RMI/IIOP example failed but I have seen a few posts here regarding this... Anyway, I am not sure if the above configuration is correct/desirable - I am sure that now I am using the pure php php/java bridge implementation, I think this because with the java directory (with the php files) things don't work. I have the following configuration: Apache 2.0.59 PHP 5.1.6 mod_jk 1.2.19 Jboss 4.0.4 Java 1.5 We are using Apache to server static content like images and html, we are also using it to serve PHP. We have the following rules for a virtual host: # Dynamic content JkMount _/* worker # Static content JkUnMount _/*.gif worker (more like the above - including _/*.php) I am not really sure if I need the JkAutoAlias also.. Any help/comments most welcome. Send instant messages to your online friends http://uk.messenger.yahoo.com ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642_______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users Send instant messages to your online friends http://uk.messenger.yahoo.com |
From: <php...@li...> - 2006-10-13 01:43:40
|
Hi all. The title of the email says it all! I know PHP like the back of my hand, but know little to nothing about Java. I was able to compile and test the bridge for OS X Server, but I am running into a brick wall trying to understand how to create calls to Java objects (libraries, JAR's, or whatever they are called) and could use a little help from you experts. Hopefully some of you can answer a few questions for me to get me started (ill try to be brief): 1) What are the standard "include" files I need at the top of each of my PHP scripts to utilize the Bridge? 2) How do I gain access to certain Java methods in my PHP scripts? For example if I want to convert a string read from a file into an array of values I think I would use $array_var->toCharArray ($string_var). I believe I need the "java.lang.string" library/class thing (found this in the Java API docs at Sun.com) but I cannot figure out how to enable this class or method in my PHP scripts? 3) I cannot figure out how to instantiate a new class or object. For example a Java API we need to access has a file called "cybsclients15.jar". I used a "java_require ('......cybclients15.jar')" which seems to work (I didn't get any errors). So how do I call or access the classes in that file? For example, there is a class called "Utility" which in turn has a method called "read") in the JAR file. I tried the following: <?php java_require("/Library/WebServer/Documents/cj/simapi-java-5.0.0/lib/ cybsclients15.jar"); $handle = new Java("Utility"); $props = $handle->read("config.properties"); ?> This is supposed to create a handle to the class called "Utility" and then let me use the "read" method to read a configuration file into an array. All I get is the following error that seems to tell me the class does not exist: Fatal error: Uncaught [o(Exception):"java.lang.Exception: CreateInstance failed: new Utility. Cause: java.lang.ClassNotFoundException: Could not find Utility in java_require() path. Please check the path and the SEL and File permissions. Responsible VM: 1.5.0_06@http://apple.com/" at: #-7 php.java.bridge.DynamicJavaBridgeClassLoader.loadClass (DynamicJavaBridgeClassLoader.java:408) #-6 php.java.bridge.SimpleJavaBridgeClassLoader.forName (SimpleJavaBridgeClassLoader.java:162) #-5 php.java.bridge.JavaBridge.CreateObject(JavaBridge.java:499) #0 / Library/WebServer/Documents/cj/simapi-java-5.0.0/samples/nvp/ AuthCaptureSample.php(18): Java::__construct('Utility') #1 {main}] thrown in /Library/WebServer/Documents/cj/simapi-java-5.0.0/samples/ nvp/AuthCaptureSample.php on line 18 Thanks for the help. -- Jon |
From: <php...@li...> - 2006-10-12 16:16:45
|
Hi, I am wanting to use your php-java-bridge to share httpsession data between a php application and a j2ee application and also for the php applicaton to communicate with some java session facades as an alternative to SOAP based calls. I have had mixed success with the various configurations described in the documentation and would appreciate comments on the most optimal solution. I am finding the documentation a little confusing :( >From what I have read the c-based extension seems to be an obvious choice and running PHP using the Apache module rather than the embedded J2EE AS option seems the safest. Like I said, I have played around - the solution that seemed to work best was when I had the .php files removed from the JavaBridge.war and placed into my Apache doc_root. I had also copied the java directory from the war to the doc_root (I had to update the php.ini include_directory) and I removed the cgi directory from WEB-INF (I wanted to make sure the PHP pages were being served by Apache). With this I was able to run the sessionSharing example - the RMI/IIOP example failed but I have seen a few posts here regarding this... Anyway, I am not sure if the above configuration is correct/desirable - I am sure that now I am using the pure php php/java bridge implementation, I think this because with the java directory (with the php files) things don't work. I have the following configuration: Apache 2.0.59 PHP 5.1.6 mod_jk 1.2.19 Jboss 4.0.4 Java 1.5 We are using Apache to server static content like images and html, we are also using it to serve PHP. We have the following rules for a virtual host: # Dynamic content JkMount _/* worker # Static content JkUnMount _/*.gif worker (more like the above - including _/*.php) I am not really sure if I need the JkAutoAlias also.. Any help/comments most welcome. Send instant messages to your online friends http://uk.messenger.yahoo.com |
From: <php...@li...> - 2006-10-11 19:27:40
|
On the forward slashes, turns out you might have been on to something there. Chgd web.xml to use back slashes and got some different results When set to: <init-param> <param-name>php_exec</param-name> <param-value>C:\Apache\Tomcat\webapps\JavaBridge\WEB-INF\cgi\php-cgi-x86 -windows.exe</param-value> </init-param> I get a phpinfo page with "PHP Version 5.1.3-dev" in the header, and 21 instances of 'php-cgi-x86-windows' (no .exe or .dll extension listed..) running in in my task manager window. If I shut TC down then they terminate correctly as well. This is progress Now I'm fishing around abit to see if I can stumble across a solution, I try 'php-4-java-x86-windows.dll' in place of php-cgi-x86-windows.exe in the web.xml param-name value. Restart TC and get: javax.servlet.ServletException: An IO exception occured. Probably php was not installed as "/usr/bin/php-cgi" or "c:/php/php-cgi.exe" or "C:\Apache\Tomcat\webapps\JavaBridge\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.doGet(PhpCGIServlet.java:546) javax.servlet.http.HttpServlet.service(HttpServlet.java:689) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) Makes sense, it seems to need an executable of some sort. The only other .exe file that I have in the cgi dir is the launcher.exe file that I copied in from the IBM link you provided. Changing web.xml to use that results in the test.php page hanging with out reloading and 52 instances of php.exe running and visible in the task manager window. Stopping TC does not terminate the 52 instances of php.exe So I try c:\php\php.exe in web.xml and get "Fatal: The loaded java extension is not the PHP/Java Bridge" with 20 instances of php.exe running. Stopping TC terminates the php.exe instances correctly Copy php.exe from c:\php to the cgi subdir and repath the web.xml file and I get: PHP 4.4.2 too old. For PHP versions < 5.1.4 install the PECL extension, see INSTALL document from http://php-java-bridge.sourceforge.net/INSTALL. Or set the path to the PHP executable, see php_exec in the WEB-INF/web.xml Hmm, running php.exe from 4.4.4 Try the url in the error msg above and search it for PECL without luck, tried copying php_java.dll and php_java.jar into the cgi subdir alongside php.exe, but the only way to get something that is close to working is to set the param-name value to php-cgi-x86-windows.exe, but it reports 5.1.3 Hope this helps Mike |