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
(3) |
2
|
3
(2) |
4
|
5
|
6
|
7
(2) |
8
(6) |
9
|
10
|
11
|
12
|
13
|
14
|
15
|
16
(2) |
17
|
18
|
19
|
20
|
21
|
22
|
23
(7) |
24
|
25
|
26
|
27
(1) |
28
(1) |
29
|
30
(1) |
|
From: <php...@li...> - 2007-11-30 12:29:15
|
Hi, > The bridge supports the JSR223 API. Which means that you could do the following (in pseudo > code): the following code works with the pure Java implementation (PHP/Java Bridge version 4): <% out.print("hello from JSP"); javax.script.ScriptEngineManager m = new javax.script.ScriptEngineManager (); javax.script.ScriptEngine e = m.getEngineByName ("php"); javax.script.ScriptContext c = e.getContext (); java.io.Writer w=new java.io.FilterWriter(out){public void close()throws java.io.IOException{flush();}}; c.setWriter (w); e.eval ("<?php echo java_inspect(java_context());?>"); e.eval ("<?php $w=java_context()->getWriter(); $w->write(\"hello from PHP\"); $w->close();?>"); e.eval ("<?php phpinfo(); ?>"); %> Note the FilterWriter above. It is needed because some versions close the output stream at the end of the script. Regards, Jost Boekemeier __________________________________ Ihr erstes Baby? Holen Sie sich Tipps von anderen Eltern. www.yahoo.de/clever |
From: <php...@li...> - 2007-11-28 08:34:40
|
Hi, if I understand the jk_mount directive, you now forward all requests to the oracle application server. > Is there any way I can include PHP code in JSP pages? The bridge supports the JSR223 API. Which means that you could do the following (in pseudo code): <% javax.script.ScriptEngineManager m = new javax.script.ScriptEngineManager(); javax.script.ScriptEngine e = m.getEngineByName("php"); e.setOutputStream (out); e.eval ("<?php echo 1+2 ?>"); %> However, isn't it possible to run PHP on the Apache web server and to use the PHP/Java Bridge protocol to connect to the Java back end? Regards, Jost Boekemeier Jetzt Mails schnell in einem Vorschaufenster überfliegen. Dies und viel mehr bietet das neue Yahoo! Mail - www.yahoo.de/mail |
From: <php...@li...> - 2007-11-27 19:11:48
|
Hello again, I downloaded the OAS 90MB download, installed it in a VM, followed your = instructions and everything worked for me there as well. Unfortunately, = it still didn't work in my application. Anyway, after a lot more of trials and errors, and just as I was about = to give up, it turns out that what I had to do to make it work in my = application was to inlclude the following line in the mod_oc4j.conf file = (included at the end of the Oracle/Apache httpd.conf): <IfModule mod_oc4j.c> ... Oc4jMount /JavaBridge home Oc4jMount /JavaBridge/* home </IfModule> This made everything work (along with a change to the default J2EE port, = which in my case was set differently). Another difference I noticed in my case was that the protocol specified = in the <web-site> directive was not "http", but "ajp13". I don't know if = this made any difference. Now, I only have one more question which is probably unrelated to the = bridge, but nevertheless I would appreciate it if anyone could answer. Is there any way I can include PHP code in JSP pages? I realize I = probably cannot put <?php ?> tags in a JSP page and expect them to be = parsed by PHP, but I tried including an external PHP file with <%@ = include file "/myscript.php"%> and <jsp:include page=3D"/myscript.php"/> = but it didn't work. I also tried <c:import url=3D"/myscript.php"/> but = it somehow didn't seem to be interpreted by Java (I got it back = literally in the html) which makes me think maybe my JSTL .jar file may = be out of date or something. Anyway, thanks again for going to great lengths to help Jost! :-) ----- Original Message -----=20 From: <php...@li...> To: <php...@li...> Sent: Friday, November 23, 2007 6:25 PM Subject: Re: [Php-java-bridge-users] Oracle Application Server problem > Hi >=20 >> 07/11/23 16:07:21 Oracle Application Server Containers for J2EE 10g = (9.0.4.0.0) >=20 > I have just tested the bridge against Oracle AS 9.0.4 and I could not = reproduce these problems. >=20 >=20 > 1. downloaded/extracted oracle web containers for java (the 90MB = download) >=20 > 2. copied home/config to home/config-new >=20 > 3. changed home/config-new/application.xml so that it contains > ... > <web-module id=3D"dms" path=3D"../../home/applications/dms.war"/> > <web-module id=3D"JavaBridge" = path=3D"../../home/applications/JavaBridge.war"/> >=20 > 4. changed home/config-new/http-web-site.xml so that it contains > ... > <web-app application=3D"default" name=3D"admin_web" = root=3D"/adminoc4j"/> > <web-app application=3D"default" name=3D"JavaBridge" = root=3D"/JavaBridge"/> >=20 > 5. changed the server port in home/config-new/http-web-site.xml to = 8899: > ... > <web-site port=3D"8899"=20 > ... >=20 > 6. Copied JavaBridge.war (from the version 3.2.1 j2ee download) to = home/applications >=20 > 7. Started the Oracle J2EE server so that it runs with the new = configuration: >=20 > java -jar = '/home/jostb/Desktop/oc4j_extended.zip_FILES/j2ee/home/oc4j.jar'=20 > -config = '/home/jostb/Desktop/oc4j_extended.zip_FILES/j2ee/home/config-new/server.= xml'=20 >=20 > 8. http://localhost:8899/JavaBridge/test.php renders the test PHP = page. >=20 >=20 > If the problem persists, please open a problem report and attach your = configuration > at the end of the ticket (please use the following link > = http://sourceforge.net/tracker/?func=3Dadd&group_id=3D117793&atid=3D67923= 3). >=20 >=20 > Regards, > Jost Boekemeier >=20 >=20 > Machen Sie Yahoo! zu Ihrer Startseite. Los geht's:=20 > http://de.yahoo.com/set >=20 > = -------------------------------------------------------------------------= > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
From: <php...@li...> - 2007-11-23 17:25:24
|
Hi > 07/11/23 16:07:21 Oracle Application Server Containers for J2EE 10g (9.0.4.0.0) I have just tested the bridge against Oracle AS 9.0.4 and I could not reproduce these problems. 1. downloaded/extracted oracle web containers for java (the 90MB download) 2. copied home/config to home/config-new 3. changed home/config-new/application.xml so that it contains ... <web-module id="dms" path="../../home/applications/dms.war"/> <web-module id="JavaBridge" path="../../home/applications/JavaBridge.war"/> 4. changed home/config-new/http-web-site.xml so that it contains ... <web-app application="default" name="admin_web" root="/adminoc4j"/> <web-app application="default" name="JavaBridge" root="/JavaBridge"/> 5. changed the server port in home/config-new/http-web-site.xml to 8899: ... <web-site port="8899" ... 6. Copied JavaBridge.war (from the version 3.2.1 j2ee download) to home/applications 7. Started the Oracle J2EE server so that it runs with the new configuration: java -jar '/home/jostb/Desktop/oc4j_extended.zip_FILES/j2ee/home/oc4j.jar' -config '/home/jostb/Desktop/oc4j_extended.zip_FILES/j2ee/home/config-new/server.xml' 8. http://localhost:8899/JavaBridge/test.php renders the test PHP page. If the problem persists, please open a problem report and attach your configuration at the end of the ticket (please use the following link http://sourceforge.net/tracker/?func=add&group_id=117793&atid=679233). Regards, Jost Boekemeier Machen Sie Yahoo! zu Ihrer Startseite. Los geht's: http://de.yahoo.com/set |
From: <php...@li...> - 2007-11-23 15:18:30
|
Hi, I am not criticising OAS in general, but the way this particular application was implemented, it is really a mess and with my limited experience in Java/J2EE I can tell that a lot of things were not done in a standard way. Anyway, I tried to run the command as you suggested while all services were running and I got the following error: 07/11/23 16:07:19 Auto-deploying file:/D:/oracle/oraMtier/j2ee/home/applications /JavaBridge/ (New server version detected)... 07/11/23 16:07:20 Error starting HTTP-Server: Address already in use: JVM_Bind 07/11/23 16:07:21 Oracle Application Server Containers for J2EE 10g (9.0.4.0.0) initialized Do I need to shut down one of the services before I run this command? I tried shutting down the HTTP server and then running the command again, but got the same message minus the "Auto-deploying" stuff. In both cases the url test.php does not work (404). Thank you so much for replying, and I apologize if my questions seem a little stupid, like I said, I don't have much experience in Java/J2EE. On Nov 23, 2007 4:02 PM, <php...@li...> wrote: > Hi, > > the Oracle AS is (or was) actually a very good AS, please see: > http://php-java-bridge.cvs.sourceforge.net/php-java-bridge/php-java-bridge/INSTALL.ORACLE?view=markup > > > Can you please start the server with the command: > > cd $J2EE_HOME > java -jar oc4j.jar > > and then run the test.php: > > http://localhost:8888/JavaBridge/test.php > > Which error message do you get? > > > Regards, > Jost Boekemeier > > > > Machen Sie Yahoo! zu Ihrer Startseite. Los geht's: > http://de.yahoo.com/set > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |
From: <php...@li...> - 2007-11-23 15:02:56
|
Hi, the Oracle AS is (or was) actually a very good AS, please see: http://php-java-bridge.cvs.sourceforge.net/php-java-bridge/php-java-bridge/INSTALL.ORACLE?view=markup Can you please start the server with the command: cd $J2EE_HOME java -jar oc4j.jar and then run the test.php: http://localhost:8888/JavaBridge/test.php Which error message do you get? Regards, Jost Boekemeier Machen Sie Yahoo! zu Ihrer Startseite. Los geht's: http://de.yahoo.com/set |
From: <php...@li...> - 2007-11-23 14:51:20
|
Hi, unfortunately for me this doesn't work. I'm pretty sure something's messed up in the configuration of this particular OAS, because although in the http-we-site.xml the port mentioned is 8888, there appears to be no J2EE listener on that port. I've also installed the JavaBridge.war as described in the install.oracle file and I can see it is being expanded at runtime. However, I cannot access the http://localhost:8888/JavaBridge/test.php url. Could it be that the whole site is only accessible through HTTPS? Thanks for replying anyway :-) On Nov 23, 2007 3:09 PM, <php...@li...> wrote: > Hi, > > I had the same problem running Tomcat and Apache - once you have the > backend up and running, restart Apache - it worked for me. > > > Regards, > > -- > Jamie Saunders > Interactive Developer > > Featurecreep Ltd. > http://www.featurecreep.com > 14 Orchard Street, Bristol, BS1 5EH > +44 (0)117 905 5047 > > > On 23 Nov 2007, at 14:04, php...@li... > wrote: > > > > Hi, > > > > I'm working on an application that we took over from some other > > company, and > > it's based on Oracle Application Server (on Windows 2003 Server). In > > general, it's a mess in many ways, and on top of that we don't have > > a lot of > > experience in Java/J2EE, so we're trying to combine PHP with the > > existing > > codebase in order to leverage our PHP know-how. > > So, to make a long story short, we've managed to successfully > > install the > > PHP-Java Bridge v.3.2.1 with PHP 5.1.6 and the Oracle HTTP server > > (Apache > > 1.3) to the point where we can see the "java status" parameter as > > "running". > > However, all our tests immediately return the following error: > > > > Fatal error: php_mod_java(98): Call object is null: The connection > > to the > > current back end doesn't exist anymore; probably the current back > > end has > > been restarted w/o restarting the front end. in d:\www > > \javatest01.php on > > line 8 > > > > We assume this has to do with connecting to the wrong host/port, > > but we are > > at a loss in finding the right port. Attached is the report of > > ports in use > > by the Oracle Application Server. The "running" status cannot be > > obtained > > from 127.0.0.1:8888 or 127.0.0.1:7777. It usually works with ports > > 3701-4, > > but then we always get the error above. Any ideas? > > > > Thanks in advance > > ---------------------------------------------------------------------- > > --- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2005. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > php-java-bridge-users mailing list > > php...@li... > > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |
From: <php...@li...> - 2007-11-23 14:09:29
|
Hi, I had the same problem running Tomcat and Apache - once you have the backend up and running, restart Apache - it worked for me. Regards, -- Jamie Saunders Interactive Developer Featurecreep Ltd. http://www.featurecreep.com 14 Orchard Street, Bristol, BS1 5EH +44 (0)117 905 5047 On 23 Nov 2007, at 14:04, php...@li... wrote: > Hi, > > I'm working on an application that we took over from some other > company, and > it's based on Oracle Application Server (on Windows 2003 Server). In > general, it's a mess in many ways, and on top of that we don't have > a lot of > experience in Java/J2EE, so we're trying to combine PHP with the > existing > codebase in order to leverage our PHP know-how. > So, to make a long story short, we've managed to successfully > install the > PHP-Java Bridge v.3.2.1 with PHP 5.1.6 and the Oracle HTTP server > (Apache > 1.3) to the point where we can see the "java status" parameter as > "running". > However, all our tests immediately return the following error: > > Fatal error: php_mod_java(98): Call object is null: The connection > to the > current back end doesn't exist anymore; probably the current back > end has > been restarted w/o restarting the front end. in d:\www > \javatest01.php on > line 8 > > We assume this has to do with connecting to the wrong host/port, > but we are > at a loss in finding the right port. Attached is the report of > ports in use > by the Oracle Application Server. The "running" status cannot be > obtained > from 127.0.0.1:8888 or 127.0.0.1:7777. It usually works with ports > 3701-4, > but then we always get the error above. Any ideas? > > Thanks in advance > ---------------------------------------------------------------------- > --- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
From: <php...@li...> - 2007-11-23 14:08:11
|
Hi, Thanks for the advice. I finally got it working by using Tomcat as the back-end and compiling the java.so module using the --disable- backend option: ./configure --disable-backend --with-java=<JAVA_HOME> Regards, -- Jamie Saunders Interactive Developer Featurecreep Ltd. http://www.featurecreep.com 14 Orchard Street, Bristol, BS1 5EH +44 (0)117 905 5047 On 16 Nov 2007, at 17:23, php...@li... wrote: > Hi, > > the Linux C code is only supported on Debian or RedHat Linux. > Please see the DEB and RPM > documentation for more information how to create a Debian or RedHat > Linux package. (The C code > will compile on any operating system with the required autoconf > installation, but we don't support > it) > > > Please use the pure Java implementation and the Java.inc instead. > Please see the INSTALL.J2EE or > INSTALL.STANDALONE or INSTALL.J2SE documents and the README for > details. > > > Regards, > Jost Boekemeier > > > > Machen Sie Yahoo! zu Ihrer Startseite. Los geht's: > http://de.yahoo.com/set > > ---------------------------------------------------------------------- > --- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
From: <php...@li...> - 2007-11-23 14:04:15
|
Hi, I'm working on an application that we took over from some other company, and it's based on Oracle Application Server (on Windows 2003 Server). In general, it's a mess in many ways, and on top of that we don't have a lot of experience in Java/J2EE, so we're trying to combine PHP with the existing codebase in order to leverage our PHP know-how. So, to make a long story short, we've managed to successfully install the PHP-Java Bridge v.3.2.1 with PHP 5.1.6 and the Oracle HTTP server (Apache 1.3) to the point where we can see the "java status" parameter as "running". However, all our tests immediately return the following error: Fatal error: php_mod_java(98): Call object is null: The connection to the current back end doesn't exist anymore; probably the current back end has been restarted w/o restarting the front end. in d:\www\javatest01.php on line 8 We assume this has to do with connecting to the wrong host/port, but we are at a loss in finding the right port. Attached is the report of ports in use by the Oracle Application Server. The "running" status cannot be obtained from 127.0.0.1:8888 or 127.0.0.1:7777. It usually works with ports 3701-4, but then we always get the error above. Any ideas? Thanks in advance |
From: <php...@li...> - 2007-11-16 17:23:02
|
Hi, the Linux C code is only supported on Debian or RedHat Linux. Please see the DEB and RPM documentation for more information how to create a Debian or RedHat Linux package. (The C code will compile on any operating system with the required autoconf installation, but we don't support it) Please use the pure Java implementation and the Java.inc instead. Please see the INSTALL.J2EE or INSTALL.STANDALONE or INSTALL.J2SE documents and the README for details. Regards, Jost Boekemeier Machen Sie Yahoo! zu Ihrer Startseite. Los geht's: http://de.yahoo.com/set |
From: <php...@li...> - 2007-11-16 16:06:34
|
Hi, I have a problem compiling the php-java bridge and keep getting the following: configure: error: host_alias is not set. Make sure to run config.guess Back-end configuration failed. Please install the recommended autoconf, libtool and automake versions or disable back-end configuration and use the pre-compiled J2EE back- end: ./configure --disable-backend --with-java=<JAVA_HOME> configure: error: ./configure.gnu failed for server Here is the output of config.guess (I am running Fedora Core 7): x86_64-unknown-linux-gnu Here is the command I am issuing: phpize && ./configure --with-java=/usr/local/src/j2sdk1.4.2_15 && make I have checked that I have all the correct versions of the tools including autoconf, automake and libtool. I've tried the exact versions required and the latest versions but with no success. I'd really appreciate any advice as I have been trying to sort out this problem for over a day now! Many thanks, -- Jamie Saunders Interactive Developer Featurecreep Ltd. http://www.featurecreep.com 14 Orchard Street, Bristol, BS1 5EH +44 (0)117 905 5047 |
From: <php...@li...> - 2007-11-08 16:01:44
|
I will be out of the office starting 06/11/2007 and will not return until 03/12/2007. I will respond to your message when I return. |
From: <php...@li...> - 2007-11-08 15:57:50
|
Hi Jost, Your last comment solved my problem! i found a lucene.jar in '/srv/www/tomcat5/base/webapps/JavaBridge/WEB-INF/lib'. After i removed this and reloaded tomcat it worked fine! Thank you very, very much! On Nov 8, 2007 3:44 PM, <php...@li...> wrote: > Hi, > > > Even unpacked the jar > > that might be part of the problem. You have multiple versions of your > libraries in your > classpath(s) (e.g. web-inf/lib, web-inf/classes, /usr/share/java, > $HOME/lib, > /usr/java/packages/lib/ext, the global $CLASSPATH, ...) > > Debugging this is hard, especially if no common code repository exists (or > no convention where to > store Java libraries). > > > Regards, > Jost Boekemeier > > > > Machen Sie Yahoo! zu Ihrer Startseite. Los geht's: > http://de.yahoo.com/set > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |
From: <php...@li...> - 2007-11-08 14:44:13
|
Hi, > Even unpacked the jar that might be part of the problem. You have multiple versions of your libraries in your classpath(s) (e.g. web-inf/lib, web-inf/classes, /usr/share/java, $HOME/lib, /usr/java/packages/lib/ext, the global $CLASSPATH, ...) Debugging this is hard, especially if no common code repository exists (or no convention where to store Java libraries). Regards, Jost Boekemeier Machen Sie Yahoo! zu Ihrer Startseite. Los geht's: http://de.yahoo.com/set |
From: <php...@li...> - 2007-11-08 14:09:19
|
Hi Jost, Thank you for your explanation. I double checked that i use the right library jar file, i load it with $aJarFiles[] = _JAVA_PATH.'lucene'._DIR_SEP.'lucene-core-2.2.0.jar'; $aJarFiles[] = _JAVA_PATH.'lucene'._DIR_SEP.'contrib'._DIR_SEP.'highlighter'._DIR_SEP.' lucene-highlighter-2.2.0.jar'; $aJarFiles[] = _JAVA_PATH.'lucene'._DIR_SEP.'contrib'._DIR_SEP.'spellchecker'._DIR_SEP.' lucene-spellchecker-2.2.0.jar'; $aJarFiles[] = _JAVA_PATH.'lucene'._DIR_SEP.'contrib'._DIR_SEP.'similarity'._DIR_SEP.' lucene-similarity-2.2.0.jar'; $aJarFiles[] = _JAVA_PATH.'lucene'._DIR_SEP.'contrib'._DIR_SEP.'analyzers'._DIR_SEP.' lucene-analyzers-2.2.0.jar'; java_require(implode(";",$aJarFiles)); Which give me no errors so the files will be included like they should. Even unpacked the jar, read through the compile .java file to find the method en it is there but it isn't listed on the java_inspect function. How would that be possible? The documentation says it is a public method. Greets, Gilbert On Nov 8, 2007 2:03 PM, <php...@li...> wrote: > Hi, > > > indexwriter with a document. Everything works untill it reaches the > update > > document. it gives me : > > > > Uncaught [[o:Exception]:"java.lang.Exception: Invoke failed: > > [[o:IndexWriter]]->updateDocument([o:Term], [o:Document]). Cause: > > java.lang.NoSuchMethodException: updateDocument([o:Term], [o:Document]). > > Candidates: [] > > You can use > > echo java_inspect ($indexWriter); > > to see the list of public methods exported by your version of the index > writer. > > > > It says NoSuchMethodException but i'm pretty sure it is there (checked > the > > src files). > > Source files are irrelevant. It depends on which version of the library. > > If you use the dynamic class loader, the loader automatically uses the > latest version of your > software (assuming that you name your java libraries appropriately, see > the README for details). > > > > Regards, > Jost Boekemeier > > > > Heute schon einen Blick in die Zukunft von E-Mails wagen? > www.yahoo.de/mail > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |
From: <php...@li...> - 2007-11-08 13:03:06
|
Hi, > indexwriter with a document. Everything works untill it reaches the update > document. it gives me : > > Uncaught [[o:Exception]:"java.lang.Exception: Invoke failed: > [[o:IndexWriter]]->updateDocument([o:Term], [o:Document]). Cause: > java.lang.NoSuchMethodException: updateDocument([o:Term], [o:Document]). > Candidates: [] You can use echo java_inspect ($indexWriter); to see the list of public methods exported by your version of the index writer. > It says NoSuchMethodException but i'm pretty sure it is there (checked the > src files). Source files are irrelevant. It depends on which version of the library. If you use the dynamic class loader, the loader automatically uses the latest version of your software (assuming that you name your java libraries appropriately, see the README for details). Regards, Jost Boekemeier Heute schon einen Blick in die Zukunft von E-Mails wagen? www.yahoo.de/mail |
From: <php...@li...> - 2007-11-08 12:46:55
|
I have the following problem, i updated my lucene java libraries to lucene-core-2.2.0.jar. the API docs tell me i could do an update on the indexwriter with a document. Everything works untill it reaches the update document. it gives me : Uncaught [[o:Exception]:"java.lang.Exception: Invoke failed: [[o:IndexWriter]]->updateDocument([o:Term], [o:Document]). Cause: java.lang.NoSuchMethodException: updateDocument([o:Term], [o:Document]). Candidates: [] It says NoSuchMethodException but i'm pretty sure it is there (checked the src files). API Page: http://lucene.zones.apache.org:8080/hudson/job/Lucene-Nightly/javadoc/org/apache/lucene/index/IndexWriter.html snippit code: $oLuceneAnalyzer = luceneAnalyzer::getStandardAnalyzer(); $oLuceneWriter = new Java('org.apache.lucene.index.IndexWriter', '/srv/www/myindex',$oLuceneAnalyzer,false); for ($i = $this->nStart; $i < $this->nEnd; $i++) { $objDocument = $this->oLuceneHits->doc($i); $FieldStore = new JavaClass( 'org.apache.lucene.document.Field$Store' ); $FieldIndex = new JavaClass( 'org.apache.lucene.document.Field$Index' ); $FieldTermVector = new JavaClass( ' org.apache.lucene.document.Field$TermVector' ); $objDocument->add(new Java('org.apache.lucene.document.Field', 'sectionPublished', '2:14', $FieldStore->YES, $FieldIndex->UN_TOKENIZED, $FieldTermVector->YES )); $term = new java('org.apache.lucene.index.Term ','documentid',$this->oLuceneHits->doc($i)->get('documentid')); $oLuceneWriter->updateDocument($term,$objDocument); } $oLuceneWriter->close(); I tried to set logging in my php.ini settings but that doesn't seem to work, it just won't write a log file, php.in settings: java support Enabled java bridge 4.0.8a java.log_level 4 java.hosts 127.0.0.1:8080 java.servlet http://127.0.0.1:8080//JavaBridge/JavaBridge.phpjavabridge java.persistent_connections On java command JAVA_HOME=/usr/lib/jre LD_LIBRARY_PATH=/usr/local/Zend/Core/lib/php/20060613: /usr/lib/jre/bin/java -Djava.library.path=/usr/local/Zend/Core/lib/php/20060613 - Djava.class.path=/usr/local/Zend/Core/lib/php/20060613/JavaBridge.jar - Djava.awt.headless=true - Dphp.java.bridge.base=/usr/local/Zend/Core/lib/php/20060613 php.java.bridge.Standalone LOCAL:@java-bridge-3a61 4 /tmp/php- java-bridge.log java status running java server 127.0.0.1:8080 anyone got an idea how to fix this? Thanks in advance! -- Gilbert |
From: <php...@li...> - 2007-11-07 12:35:16
|
Hi, > I've installed tomcat and using JavaBridge against it. It looks fine > now. But I don't like the idea of including remote file "Java.inc". Is > there some way to get things working without this? Just copy Java.inc into the PHP "include_path". > I'm still not absolutely sure WHAT produces this problem. The java.so (or php_java.dll) starts a Java process as a Apache- or IIS sub process. Some development versions of PHP do not call mshutdown(), so that Apache waits for the sub process forever. The PHP developers usually detect these problems before each PHP release. However, it is a good idea to start Java outside of the HTTP domain, anyway. Regards, Jost Boekemeier Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s mit dem neuen Yahoo! Mail. www.yahoo.de/mail |
From: <php...@li...> - 2007-11-07 11:49:19
|
Hi, > as a workaround please do not use the java.so. > > Please use the pure Java implementation and "Java.inc" instead. It is about 30% faster if > the PHP accelerator is enabled. I've installed tomcat and using JavaBridge against it. It looks fine now. But I don't like the idea of including remote file "Java.inc". Is there some way to get things working without this? > Can you please open a problem report (please use > http://sourceforge.net/tracker/?func=add&group_id=117793&atid=679233)? Please attach a test case > which allows us to reproduce this problem with the java.so. I'm still not absolutely sure WHAT produces this problem. May be it's problem with some patch used in Gentoo distribution. I'll try this on pure vanilla apache + php system this weekend and let you know. -- Martin Filip e-mail: ne...@sm... jabber: ne...@sm... www: http://www.smoula.net ______________________________________ / BOFH Excuse #262: Our POP server was \ \ kidnapped by a weasel. / -------------------------------------- \ ,__, \ (oo)____ (__) )\ ||--|| * |
From: <php...@li...> - 2007-11-03 17:37:39
|
Hi, I am sorry, but I could not reproduce this problem on RedHat Fedora or Ubuntu/Debian Linux. [PHP mshutdown() procedure not called on a non-standard PHP installation] > Gentoo linux > PHP 5.2.4_p20070914-r2 If you use a non-standard PHP installation, please use the pure Java implementation and the Java.inc instead. Or please report these problems to your OS vendor. Regards, Jost Boekemeier __________________________________ Ihre erste Baustelle? Wissenswertes für Bastler und Hobby Handwerker. www.yahoo.de/clever |
From: <php...@li...> - 2007-11-03 17:28:19
|
Hi, I am sorry, but I could not reproduce this problem. Can you please attach a test case to the ticket #1824173 (http://sourceforge.net/tracker/index.php?func=detail&aid=1824173&group_id=117793&atid=679233)? > However, this raised a LinkageException on the JVM, claiming that > Class B already was loaded by the classloader. Yes, that's the expected behaviour when the same class is loaded twice by two different class loaders. > If "$clazz = new JavaClass("org.test.B");" was performed before > "$bean->getA();" everything worked out fine I don't think so. If you compare B@beanClassLoader with B@dynamicJavaBridgeClassLoader, you will see that both classes are assignment incompatible. > something was buggy in the dynamic classloading scheme. There may be a bug in the dynamic class loader. But I fail to see it. > I've attached a patch to the DynamicJavaBridgeClassLoader which > addresses this, by checking findLoadedClass(name) before The patch is incorrect. An attempt to load the same class twice must throw an exception. Otherwise we will get ClassCastExceptions later on. The problem, as I understand it, is, that you load the same class from two different locations. Regards, Jost Boekemeier Machen Sie Yahoo! zu Ihrer Startseite. Los geht's: http://de.yahoo.com/set |
From: <php...@li...> - 2007-11-01 21:12:31
|
php...@li... wrote: > Hi, > > this sounds like a bug to me. > > Presumably java_instanceof() has never been tested with the DynamicClassLoader. Please see > ticket#1824173 > (=>http://sourceforge.net/tracker/index.php?func=detail&aid=1824173&group_id=117793&atid=679233) > for details. > > I haven't received your attachment, but I think we are able to reproduce this problem. > > > Regards, > Jost Boekemeier > > > > __________________________________ Ihr erstes Baby? Holen Sie sich Tipps von anderen Eltern. www.yahoo.de/clever > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > > Ok, I will monitor bug #1824173 then. In the meantime, here's the small patch I wrote: --- DynamicJavaBridgeClassLoader.java 2007-09-26 09:51:30.000000000 +0200 +++ php-java-bridge-4.1.8/server/php/java/bridge/DynamicJavaBridgeClassLoader.java 2007-09-26 09:52:26.000000000 +0200 @@ -36,7 +36,6 @@ import java.util.Set; import java.util.jar.JarFile; import java.util.jar.Manifest; - /** * The bridge class loader which uses the DynamicClassLoader when possible. * @author jostb @@ -217,12 +216,14 @@ if (c != null) return (Class) c; try { - result = doLoadClass(name); + result = findLoadedClass(name); + if (result == null) + result = doLoadClass(name); cache.put(name, result); return result; } catch (ClassNotFoundException cnfe) { cache.put(name, nf); - } + } } throw new ClassNotFoundException(name); } ~ Thanks a lot, P-a Bäckström |
From: <php...@li...> - 2007-11-01 17:02:17
|
Hi, this sounds like a bug to me. Presumably java_instanceof() has never been tested with the DynamicClassLoader. Please see ticket#1824173 (=>http://sourceforge.net/tracker/index.php?func=detail&aid=1824173&group_id=117793&atid=679233) for details. I haven't received your attachment, but I think we are able to reproduce this problem. Regards, Jost Boekemeier __________________________________ Ihr erstes Baby? Holen Sie sich Tipps von anderen Eltern. www.yahoo.de/clever |
From: <php...@li...> - 2007-11-01 15:33:38
|
Hi there! Running (the otherwise excellent) php-java-bridge-4.1.8 I encountered a bug= . I had the following java-class structure Class A Class B extends A >From php I referenced a remote EJB and called a method with the following signature: public A getA(); Where the method in fact returns an instance of class B. In php I then tried to figure out whether it was an instance of Class A or B by using java_instance_of: $obj =3D $bean->getA(); $clazz =3D new JavaClass("org.test.B"); if ($clazz instanceof Java && java_instanceof($address, $clazz)){ //... } else { //... } However, this raised a LinkageException on the JVM, claiming that Class B already was loaded by the classloader. If "$clazz =3D new JavaClass("org.test.B");" was performed before "$bean->getA();" everything worked out fine, so I figured that something was buggy in the dynamic classloading scheme. I've attached a patch to the DynamicJavaBridgeClassLoader which addresses this, by checking findLoadedClass(name) before doLoadClass(name) but after verifying that it isn't in the cache. /Sincerely P-a B=E4ckstr=F6m Sweden |