You can subscribe to this list here.
2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(6) |
Oct
(6) |
Nov
(8) |
Dec
(2) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
(19) |
Feb
(15) |
Mar
(10) |
Apr
(8) |
May
(7) |
Jun
(9) |
Jul
(13) |
Aug
(31) |
Sep
(111) |
Oct
(52) |
Nov
(72) |
Dec
(42) |
2006 |
Jan
(21) |
Feb
(32) |
Mar
(33) |
Apr
(24) |
May
(15) |
Jun
(40) |
Jul
(32) |
Aug
(19) |
Sep
(38) |
Oct
(37) |
Nov
(63) |
Dec
(37) |
2007 |
Jan
(18) |
Feb
(39) |
Mar
(69) |
Apr
(49) |
May
(71) |
Jun
(59) |
Jul
(71) |
Aug
(85) |
Sep
(46) |
Oct
(14) |
Nov
(25) |
Dec
(56) |
2008 |
Jan
(24) |
Feb
(77) |
Mar
(104) |
Apr
(44) |
May
(41) |
Jun
(11) |
Jul
(31) |
Aug
(59) |
Sep
(44) |
Oct
(86) |
Nov
(66) |
Dec
(93) |
2009 |
Jan
(88) |
Feb
(41) |
Mar
(49) |
Apr
(135) |
May
(22) |
Jun
(31) |
Jul
(60) |
Aug
(71) |
Sep
(76) |
Oct
(18) |
Nov
(52) |
Dec
(20) |
2010 |
Jan
(8) |
Feb
(50) |
Mar
(35) |
Apr
(48) |
May
(46) |
Jun
(84) |
Jul
(38) |
Aug
(61) |
Sep
(51) |
Oct
(31) |
Nov
(17) |
Dec
(18) |
2011 |
Jan
(51) |
Feb
(14) |
Mar
(17) |
Apr
(23) |
May
(15) |
Jun
(11) |
Jul
(5) |
Aug
(5) |
Sep
(15) |
Oct
(8) |
Nov
(5) |
Dec
(25) |
2012 |
Jan
(2) |
Feb
(4) |
Mar
(6) |
Apr
(9) |
May
(27) |
Jun
(32) |
Jul
(36) |
Aug
(10) |
Sep
(16) |
Oct
(3) |
Nov
(13) |
Dec
(7) |
2013 |
Jan
(1) |
Feb
(4) |
Mar
|
Apr
(1) |
May
|
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(4) |
Oct
(2) |
Nov
(1) |
Dec
|
2014 |
Jan
|
Feb
|
Mar
(2) |
Apr
(1) |
May
(2) |
Jun
(9) |
Jul
(5) |
Aug
(2) |
Sep
(4) |
Oct
|
Nov
|
Dec
|
2015 |
Jan
(3) |
Feb
(2) |
Mar
(4) |
Apr
(3) |
May
(1) |
Jun
(2) |
Jul
|
Aug
(2) |
Sep
(5) |
Oct
(1) |
Nov
|
Dec
|
2016 |
Jan
|
Feb
(5) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(5) |
Sep
(3) |
Oct
|
Nov
|
Dec
|
2017 |
Jan
(6) |
Feb
|
Mar
|
Apr
(10) |
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(1) |
Dec
|
2018 |
Jan
(2) |
Feb
(5) |
Mar
|
Apr
|
May
(1) |
Jun
(3) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2020 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
2021 |
Jan
(5) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2023 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <php...@li...> - 2006-04-11 20:33:15
|
php...@li... wrote: > I suspect the problem is in the java.so, probably the > mknod failed or has different semantics compared to > Solaris or Linux. Which operating system do you use? This is on XP. > strace ./php-cgi-ARCH-OS -b:9667 2>error.log So I don't have strace available. :\ I literally took the .war out of the distro and deployed it unmodified. Then I browsed over to http://localhost:8080/JavaBridge/test.php Is there anything else I can do to help get to the root of this? Thanks, Matt |
From: <php...@li...> - 2006-04-11 20:11:13
|
php...@li... wrote: > On Linux the segfault shouldn't happen, unless you > have compiled PHP with ZTS. I have tested against the > PHP 5.1.2 binary that ships with RedHat FedoraCore 5, > which doesn't show the problem. The build is non-ZTS. > Please open a problem report (use > http://sourceforge.net/tracker/?func=add&group_id=117793&atid=679233) > and append the configure options you have used to > compile your php binary and the above httpd.log Please see http://sourceforge.net/tracker/index.php?func=detail&aid=1468821&group_id=117793&atid=679233 Thanks, Matt |
From: <php...@li...> - 2006-04-11 19:46:20
|
Hi, > The bridge (v 3.0.8) segfaults when used as a module > to php 5.1.2. The php 5.1.2 on windows segfaults, yes (if I remember correctly it's the leak detector). That problem has been fixed in 5.1.3, which you can find in the JavaBridge.war. On Windows please use the latest stable PHP5 version, which is 5.0.5. Or please upgrade to PHP5.1.3, when it becomes available. -- The memory leak which caused the detector to crash is still in php 5.1.3, but it isn't fatal anymore.[1] On Linux the segfault shouldn't happen, unless you have compiled PHP with ZTS. I have tested against the PHP 5.1.2 binary that ships with RedHat FedoraCore 5, which doesn't show the problem. To reproduce the problem on Linux please stop your apache http server and start it as follows: strace -s1024 /usr/sbin/httpd -X 2>httpd.log and re-run the test. Please open a problem report (use http://sourceforge.net/tracker/?func=add&group_id=117793&atid=679233) and append the configure options you have used to compile your php binary and the above httpd.log Thank you very much for this bug report. Regards, Jost Boekemeier [1] They've fixed the leak, too, but forgot to bump the API version, so we're still forced to use the old API for backwards compatibility. ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2006-04-11 19:31:02
|
Hi, thank you very much for the feedback. > seems to work fine. (See trace below) I notice that > an empty null.i > file appears in my JBoss bin directory. Sounds as if the PipeContextServer failed because the front-end (the java.so) has sent garbage. The failure doesn't affect the operation of the bridge because the SocketContextServer takes over, if the PipeContextServer fails. I suspect the problem is in the java.so, probably the mknod failed or has different semantics compared to Solaris or Linux. Which operating system do you use? Can you please open a ticked and append the following information: Please start the standalone PHP server with the command: export X_JAVABRIDGE_OVERRIDE_HOSTS=/ cd to the JavaBridge/WEB-INF/cgi directory strace ./php-cgi-ARCH-OS -b:9667 2>error.log (Please see the README for details how to start a standalone PHP FastCGI server) On BSD or Solaris please use truss instead of strace. Then please re-start your application server and re-run the test. Please append the above error.log at the end of the ticket (please use http://sourceforge.net/tracker/?func=add&group_id=117793&atid=679233) Thank you very much for this bug report. Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2006-04-11 18:30:03
|
The bridge (v 3.0.8) segfaults when used as a module to php 5.1.2. I get this behavior reproducibly on both windows and linux (RH ES 4). The linux install was from source (phpize; configure --with-java=/usr/java/jdk; make; make install). The windows install used java-x86-windows.dll renamed to php_java.dll. Has anyone gotten this combination to work? Thanks, Matt |
From: <php...@li...> - 2006-04-11 17:59:09
|
Hello, I have deployed the 3.0.8 JavaBridge.war on JBoss 4.0.3SP1. I then run some of the samples, like test.php. I find that any time I access a php resource I get a FileNotFoundException in the log, although everything seems to work fine. (See trace below) I notice that an empty null.i file appears in my JBoss bin directory. Does anyone have an idea as to why this would happen? Thanks, Matt 13:52:02,060 ERROR [[/JavaBridge]] JavaBridge Exception: java.io.FileNotFoundException: null.o (The system cannot find the file specified ) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:106) at php.java.bridge.http.PipeContextServer$Channel.getInputStream(PipeCon textServer.java:46) at php.java.bridge.http.ContextRunner.<init>(ContextRunner.java:32) at php.java.bridge.http.PipeContextServer.start(PipeContextServer.java:7 5) at php.java.bridge.http.ContextServer.start(ContextServer.java:70) at php.java.servlet.PhpJavaServlet.handleSocketConnection(PhpJavaServlet .java:444) at php.java.servlet.PhpJavaServlet.doPut(PhpJavaServlet.java:471) at javax.servlet.http.HttpServlet.service(HttpServlet.java:720) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:252) |
From: <php...@li...> - 2006-04-11 09:15:44
|
Hi all, I need to call a java function from php that need a java.lang.Collection<MY_OBJECT> as a parameter. Looking at the doc I don't found anything useful about use of generics. Anyone knows if it's possible to use generics in the bridge? Thank you Paolo |
From: <php...@li...> - 2006-04-10 20:39:31
|
Hi, > Call to undefined function java_get_server_name() If you get the above message it is likely that the php_java.dll is there but doesn't export the java_get_server_name() function. Which operating system do you use? The test.php checks for java_get_server_name() to make sure that our php_java.dll is used. For windows there are several outdated php_java.dll files floating around (see http://pecl4win.php.net/list.php/5_1). They are unmaintained and don't work anymore since php >=5.0. > I have followed the install instructions pretty > close and I can't get past > the above error. Can someone help with this? I think the easiest way to test this is to install the web application, which contains all needed components: * Click on: http://apache.dns4.com/tomcat/tomcat-5/v5.5.16/bin/apache-tomcat-5.5.16.exe * Download the J2EE binary and copy JavaBridge.war to the tomcat webapps directory * Wait 15 seconds and visit http://localhost:8080/JavaBridge After that please compare the file size of your php_java.dll and the java-x86-windows.dll from the webapps\JavaBridge\WEB-INF\cgi folder. > I am configuring this for Apache2 and PHP5. I think it should be sufficient to copy the java-x86-windows.dll (or the php5java-x86-windows.dll, if you use php 5.0.x) and the JavaBridge.jar from the webapps\JavaBridge\WEB-INF to your extension_dir and to change your php.ini file from extension=php_java.dll to extension=java-x86-windows.dll I hope it helps. Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2006-04-10 07:27:14
|
Call to undefined function java_get_server_name() I have followed the install instructions pretty close and I can't get past the above error. Can someone help with this? I am configuring this for Apache2 and PHP5. Thanks, Dave |
From: <php...@li...> - 2006-04-04 17:27:49
|
Hi Brian, > I'm using gcj, Suse > 9.1, php-java-bridge 3.x first of all thank you very much for this bug report. I have created a ticket for this, please see PR1464354 (http://sourceforge.net/tracker/index.php?func=detail&aid=1464354&group_id=117793&atid=679233) Dynamic class loading and especially error reporting is something that will improve in 3.1.x. -- My plan is to add a set of standard PHP bindings (generated during configure) which hide the Java(...) calls internally. Together with the improved error reporing this should help users to resolve such problems within their eclipse IDE. I don't know what causes this problem, but I know that older versions of gcj "GNU Java" throw a null pointer exception while resolving some urls. The NP is then wrapped by a NoClassDefFoundError which in turn is wrapped by a ClassNotFoundException. Or it might be that gcj could not read some meta-information (text, property files) after it has compiled the .jar files to native code. We'll check this, please see the PR1464354 for details. > Is there anything I've overlooked or perhaps > something in the log file that > could help me address this? You could set the log level to 5 or a higher log level and check the "trying to load ..." messages. Unfortunately some older versions of gcj do not print a stack trace unless c++filt is in the PATH, so you might need to use strace to see the original error message from the kernel. Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2006-04-04 00:58:37
|
So if anyone has this problem, I solved it. Gcj was causing problems = with ClassNotFound and no matter what I did, nothing would solve the missing libraries/classpath issue. After switching to Sun's JDK/SDK package and tinkering around with a few tweaks in php.ini, it works as expected. =20 Make sure your test.php is showing everything (including backend) as = running properly. Regards, Brian ________________________________________ From: Brian Lucas [mailto:blu...@gm...]=20 Sent: Monday, April 03, 2006 2:32 PM To: 'php...@li...' Subject: lucene, gcj & ClassNotFoundException problems Hello.=A0 I=92ve been banging my head for the last day or two trying to = get Lucene to work with the bridge. It works successfully from command line. =A0However, in the bridge I continuously get the ClassNotFoundException. I=92ve done most everything listed in the INSTALL -- created and moved = jars into /usr/share/java, the php-ext directory, even the current directory = of the .php script -- and still get ClassNotFoundException. I=92ve also set the java.classpath in php.ini to include the = lucene-core.jar files without luck. --- error ---- Fatal error: Uncaught [o(Exception):"java.lang.Exception: CreateInstance failed: new searcher. Cause: java.lang.ClassNotFoundException: = Unresolved external reference: java.lang.NoClassDefFoundError: while resolving = class: searcher. -Unable to call constructor because it or one of its = parameters refer to the mentioned external class which is not available in the = current "java_require()" path. --- end error ---- new JavaClass(=91searcher=92) doesn=92t error, but new = Java(=91searcher=92) responds with the error above. Is there anything I=92ve overlooked or perhaps something in the log file = that could help me address this?=A0 I=92m using gcj, Suse 9.1, = php-java-bridge 3.x Thanks, Brian |
From: <php...@li...> - 2006-04-03 20:32:23
|
Hello. I've been banging my head for the last day or two trying to get Lucene to work with the bridge. It works successfully from command line. However, in the bridge I continuously get the ClassNotFoundException. I've done most everything listed in the INSTALL -- created and moved jars into /usr/share/java, the php-ext directory, even the current directory of the .php script -- and still get ClassNotFoundException. I've also set the java.classpath in php.ini to include the lucene-core.jar files without luck. --- error ---- Fatal error: Uncaught [o(Exception):"java.lang.Exception: CreateInstance failed: new searcher. Cause: java.lang.ClassNotFoundException: Unresolved external reference: java.lang.NoClassDefFoundError: while resolving class: searcher. -Unable to call constructor because it or one of its parameters refer to the mentioned external class which is not available in the current "java_require()" path. --- end error ---- new JavaClass('searcher') doesn't error, but new Java('searcher') responds with the error above. Is there anything I've overlooked or perhaps something in the log file that could help me address this? I'm using gcj, Suse 9.1, php-java-bridge 3.x Thanks, Brian |
From: <php...@li...> - 2006-04-02 19:31:46
|
Hi, > >ln -s /usr/opt/tomcat/webapps/app2 /var/www/html/ > I couldn't get these to work either. > > I did get it to work by adding the Alias to a > different virtual host, which > is ok for now becaue I use javascript to open > another window. > > Alias / /usr/opt/tomcat/webapps/phpBB2/ I'm not familier with the virtual hosts settings and aliases, but as I understood it, one must add a <Directory> entry for the DocumentRoot. I have tested this with 3.0.8rc3: ------(apache frontend, tomcat backend setting)--- the following example is for Apache 2. Edit e.g. /etc/httpd/conf/httpd.conf as follows: # documents. By default, all requests are taken from this directory, but # symbolic links and aliases may be used to point to other locations. # -DocumentRoot "/var/www/html" +DocumentRoot "/var/lib/tomcat5/webapps" # # Each directory to which Apache has access can be configured with respect # # This should be changed to whatever you set DocumentRoot to. # -<Directory "/var/www/html"> +<Directory "/var/lib/tomcat5/webapps"> Edit the php.ini or add a file php-tomcat.ini to the directory which contains the php module descriptions (usually /etc/php.d/), so that it contains: [java] java.hosts = 127.0.0.1:8080 java.servlet = On -------end proposed FAQ entry----------------------- But I am not sure if that works in a virtual host environment. Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2006-03-31 18:53:59
|
>From: php...@li... >Reply-To: php...@li... >To: php...@li... >Subject: RE: [Php-java-bridge-users] Deploying Multiple PHP apps on >Apache/Tomcat >Date: Fri, 31 Mar 2006 17:40:07 +0200 (CEST) > >Hi, > > > DocumentRoot /usr/opt/tomcat/webapps/xxyxyx > >isn't it possible to set the DocumentRoot to >/usr/opt/tomcat/webapps so that the other apps become >visible to the HTTP server? For example: I tried this and when I do www.xxyxyx.com/MyPHPApp/index.php, and it can't find it. > >DocumentRoot "/usr/opt/tomcat/webapps" ><Directory "/usr/opt/tomcat/webapps/webapps"> > >Another option would be to keep the tomcat webapps and >the http server htdocs directory separate and to >symlink the individual apps from >/usr/opt/tomcat/webapps/appX to /var/www/html/appX. >For example: > >ln -s /usr/opt/tomcat/webapps/app1 /var/www/html/ >ln -s /usr/opt/tomcat/webapps/app2 /var/www/html/ I couldn't get these to work either. I did get it to work by adding the Alias to a different virtual host, which is ok for now becaue I use javascript to open another window. Alias / /usr/opt/tomcat/webapps/phpBB2/ Jim > > >Regards, >Jost Boekemeier > > > > > > > >___________________________________________________________ >Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de > > >------------------------------------------------------- >This SF.Net email is sponsored by xPML, a groundbreaking scripting language >that extends applications into web and mobile media. Attend the live >webcast >and join the prime developer group breaking into this new coding territory! >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 >_______________________________________________ >php-java-bridge-users mailing list >php...@li... >https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
From: <php...@li...> - 2006-03-31 15:40:20
|
Hi, > DocumentRoot /usr/opt/tomcat/webapps/xxyxyx isn't it possible to set the DocumentRoot to /usr/opt/tomcat/webapps so that the other apps become visible to the HTTP server? For example: DocumentRoot "/usr/opt/tomcat/webapps" <Directory "/usr/opt/tomcat/webapps/webapps"> Another option would be to keep the tomcat webapps and the http server htdocs directory separate and to symlink the individual apps from /usr/opt/tomcat/webapps/appX to /var/www/html/appX. For example: ln -s /usr/opt/tomcat/webapps/app1 /var/www/html/ ln -s /usr/opt/tomcat/webapps/app2 /var/www/html/ Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2006-03-29 15:53:13
|
I have this bridge up and running, http://php-java-bridge.sourceforge.net/ My problem is I can only have it serve up PHP pages from one directory under TOMCAT(myPHPapp). I want to be able to add other PHP apps in other directories I deploy to Tomcat. My config is Apache 2.0.44/Tomcat 5.5 with the bridge. In my HTTP.CONF I have the following Alias to point to the directory that has my PHP app, <VirtualHost *:80> ServerAdmin pr...@xx... ServerAlias xxyxyx.org *.xxyxyx.org DocumentRoot /usr/opt/tomcat/webapps/xxyxyx Alias / /usr/opt/tomcat/webapps/myPHPapp/ </VirtualHost> Jim |
From: <php...@li...> - 2006-03-23 10:25:22
|
Just a quick reply : I watch the Jasper sources and they are already=20 using the context classloader. As said by Jost Boekemeier, this is an issue of PHP-Java bridge not=20 setting correctly the context classloader before 3.0.8 (see bug PR1449780= ) regards, chris php...@li... wrote: > Thanks for the tip : I did not know that javac (i.e the one in=20 > tools.jar) did not inherit the runtime classpath (but it seems logical=20 > because, for example, I do not want my compilation be influenced by my=20 > eclipse classpath). > > I used the solution previously provided (i.e set java.classpath in the=20 > php.ini) which seems to do the same thing (put the jars in the system=20 > class loader). > I prefer to stay with this solution because it is clearly more simple=20 > than to hook the JasperReports sources or than to set a system=20 > property in an obscure part of the code (what I mean is that if other=20 > applications use PHP-Java-bridge, it is simpler for them to know that=20 > there already are some classes in the system classpath via php.ini). > > Anyway, I will fill a bug on JasperReports to say that it will be good=20 > to provide the necessarly used runtime jars to the javac compiler. > > Thanks to take time to think on my problem. > > Regards, > chris > > php...@li... wrote: >> php...@li... wrote: >>> Just to say I digg into this problem all day and still find no=20 >>> solution. >>> What I do not understand is why a thread does not inherit the=20 >>> classpath from the creating thread >> >> I guess that's not the problem. The problem is, that javac does not=20 >> inherit the classpath. i.e. just because the classes are available >> to the compiler in it's runtime environment does not mean that he has=20 >> access to the class definitions. (i.e. class files) - nor that he know= s >> how to find them. >> >> I have done something similar once, and you definitely need to tell=20 >> javac explicitly where to find the classes it needs. >> If they are in /jre/lib/ext he will look there anyway, but it's not=20 >> really a classloader problem - it's just that javac does not utilize >> it's own classloader to look for classes - it uses the system=20 >> classpath, plus classpaths he has been explicitly told to use. >> >> Try System.setProperty to change the system classpath and try again,=20 >> I guess that will help. >> >> best regards, >> >> Kai Londenberg >> >> >> >> >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by xPML, a groundbreaking scripting=20 >> language >> that extends applications into web and mobile media. Attend the live=20 >> webcast >> and join the prime developer group breaking into this new coding=20 >> territory! >> http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D110944&bid=3D241720&da= t=3D121642 >> _______________________________________________ >> php-java-bridge-users mailing list >> php...@li... >> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users >> >> >> > --=20 =20 _________________________________________________________________________= ______________ Tennaxia, www.tennaxia.com, Pilotez vos obligations environnementales _________________________________________________________________________= ______________ Si=E8ge social : 6, rue L=E9onard de Vinci - 53001 Laval Cedex -=20 T=E9l : 02 43 49 75 50 - Fax : 02 43 49 75 77 Agence Paris : 19, rue r=E9aumur - 75003 Paris -=20 T=E9l : 01 42 77 04 19 - Fax : 08 25 19 19 61 Agence Lyon : Parc du Chater - 63 rue de la garenne - 69340 FRANCHEVILLE -=20 T=E9l : 04 72 39 98 14 - Fax : 04 72 39 93 85 Les informations contenues dans ce message envoy=E9es par TENNAXIA sont c= onfidentielles et sont =E9tablies =E0 l'attention exclusive de leurs destinataires. L'acc=E8= s =E0 ce message par toute autre personne n'est pas autoris=E9. Si vous n'=EAtes pas le de= stinataire de ce message, merci de le d=E9truire et d'en avertir l'exp=E9diteur : toute al= t=E9ration, copie, distribution ou toute action prise ou omise sont interdites et peuvent =EA= tre ill=E9gales. The information in this message sent by TENNAXIA is confidential and may = be legally privileged. It is intended solely for the addressee(s). Access to this me= ssage by anyone else is unauthorized. If you are not the intended recipient, please delet= e it and notify the sender : any disclosure, copying, distribution or any action taken or= omitted to be taken in reliance on it, is prohibited and may be unlawful. |
From: <php...@li...> - 2006-03-23 10:12:30
|
Thanks for the tip : I did not know that javac (i.e the one in=20 tools.jar) did not inherit the runtime classpath (but it seems logical=20 because, for example, I do not want my compilation be influenced by my=20 eclipse classpath). I used the solution previously provided (i.e set java.classpath in the=20 php.ini) which seems to do the same thing (put the jars in the system=20 class loader). I prefer to stay with this solution because it is clearly more simple=20 than to hook the JasperReports sources or than to set a system property=20 in an obscure part of the code (what I mean is that if other=20 applications use PHP-Java-bridge, it is simpler for them to know that=20 there already are some classes in the system classpath via php.ini). Anyway, I will fill a bug on JasperReports to say that it will be good=20 to provide the necessarly used runtime jars to the javac compiler. Thanks to take time to think on my problem. Regards, chris php...@li... wrote: > php...@li... wrote: >> Just to say I digg into this problem all day and still find no solutio= n. >> What I do not understand is why a thread does not inherit the=20 >> classpath from the creating thread > > I guess that's not the problem. The problem is, that javac does not=20 > inherit the classpath. i.e. just because the classes are available > to the compiler in it's runtime environment does not mean that he has=20 > access to the class definitions. (i.e. class files) - nor that he knows > how to find them. > > I have done something similar once, and you definitely need to tell=20 > javac explicitly where to find the classes it needs. > If they are in /jre/lib/ext he will look there anyway, but it's not=20 > really a classloader problem - it's just that javac does not utilize > it's own classloader to look for classes - it uses the system=20 > classpath, plus classpaths he has been explicitly told to use. > > Try System.setProperty to change the system classpath and try again, I=20 > guess that will help. > > best regards, > > Kai Londenberg > > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting=20 > language > that extends applications into web and mobile media. Attend the live=20 > webcast > and join the prime developer group breaking into this new coding=20 > territory! > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D110944&bid=3D241720&dat= =3D121642 > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > > > --=20 =20 _________________________________________________________________________= ______________ Tennaxia, www.tennaxia.com, Pilotez vos obligations environnementales _________________________________________________________________________= ______________ Si=E8ge social : 6, rue L=E9onard de Vinci - 53001 Laval Cedex -=20 T=E9l : 02 43 49 75 50 - Fax : 02 43 49 75 77 Agence Paris : 19, rue r=E9aumur - 75003 Paris -=20 T=E9l : 01 42 77 04 19 - Fax : 08 25 19 19 61 Agence Lyon : Parc du Chater - 63 rue de la garenne - 69340 FRANCHEVILLE -=20 T=E9l : 04 72 39 98 14 - Fax : 04 72 39 93 85 Les informations contenues dans ce message envoy=E9es par TENNAXIA sont c= onfidentielles et sont =E9tablies =E0 l'attention exclusive de leurs destinataires. L'acc=E8= s =E0 ce message par toute autre personne n'est pas autoris=E9. Si vous n'=EAtes pas le de= stinataire de ce message, merci de le d=E9truire et d'en avertir l'exp=E9diteur : toute al= t=E9ration, copie, distribution ou toute action prise ou omise sont interdites et peuvent =EA= tre ill=E9gales. The information in this message sent by TENNAXIA is confidential and may = be legally privileged. It is intended solely for the addressee(s). Access to this me= ssage by anyone else is unauthorized. If you are not the intended recipient, please delet= e it and notify the sender : any disclosure, copying, distribution or any action taken or= omitted to be taken in reliance on it, is prohibited and may be unlawful. |
From: <php...@li...> - 2006-03-22 11:32:06
|
Hi, I'm trying to setup the PHP/Java bridge using PHP 5.1.2 with Apache 2.2.0 on Fedora 5. Sadly, I'm getting this error (see below.) What have I done? Is there a version mismatch? Please help. Thank you. - Mark echo "<?php phpinfo()?>" | php | fgrep "java status" PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/java.so' - /usr/lib/php/modules/java.so: undefined symbol: _zval_dtor in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/java.so' - /usr/lib/php/modules/java.so: undefined symbol: _zval_dtor in Unknown on line 0 |
From: <php...@li...> - 2006-03-21 16:51:27
|
php...@li... wrote: > Just to say I digg into this problem all day and still find no solution. > What I do not understand is why a thread does not inherit the > classpath from the creating thread I guess that's not the problem. The problem is, that javac does not inherit the classpath. i.e. just because the classes are available to the compiler in it's runtime environment does not mean that he has access to the class definitions. (i.e. class files) - nor that he knows how to find them. I have done something similar once, and you definitely need to tell javac explicitly where to find the classes it needs. If they are in /jre/lib/ext he will look there anyway, but it's not really a classloader problem - it's just that javac does not utilize it's own classloader to look for classes - it uses the system classpath, plus classpaths he has been explicitly told to use. Try System.setProperty to change the system classpath and try again, I guess that will help. best regards, Kai Londenberg |
From: <php...@li...> - 2006-03-19 15:02:44
|
Hi, > Why can not I specify a directory instead of the > jars ? In some JVM (most java VM but not Mono) you can use e.g.: java -Djava.ext.dirs=/dir1:/dir2 -jar JavaBridge.jar But you cannot set this option in the php.ini file. However, on windows the following could be used: [java] java.java="javaw -Djava.ext.dirs=..." On Unix you could use a .sh wrapper, for example: [java] java.wrapper=/home/jostb/bin/startBackend.sh And the startBackend.sh script could look like: #!/bin/sh java=$1; shift addOptions="-Djava.ext.dirs=..." exec $java $addOptions $* Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2006-03-19 14:49:18
|
Hi, > $ar=array(1, 2, 3); > $v=new java("java.util.Vector", $ar); > outputs: [o(String):"[2, 1, 3]"] I've just commited a fix into the cvs head. The collection is now backed by a TreeMap unless you use something like this: array(1,2,"foo"=>3). The new code should be a little bit faster, too. Please see the ChangeLog, tests/sendArray.php. Thank you very much for this bug report! Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2006-03-16 10:24:53
|
Hello, I don't know if this is a proper behavior, but: $ar=array(1, 2, 3); $v=new java("java.util.Vector", $ar); echo $v->toString(); outputs: [o(String):"[2, 1, 3]"] As you see values of vector are not ordered as in input array. Best regards, ML |
From: <php...@li...> - 2006-03-15 18:30:16
|
Hi, > Moving my jars into jre/lib/ext is not an option > because you must be > root to do that (and I am not). In a restricted environment I think it is best to use the servlet/j2ee backend. You can deploy your JavaBridge.war application without having admin privileges and you can store all the java libraries you need into your JavaBridge.war. > Hardcoding the java.classpath in the php.ini is > maybe possible thanks to > a .htaccess so this is ok, I will watch for this > today. All java options except java.log_level are INI_SYSTEM, that means only the administrator can set them. > Is the > "*Thread*.currentThread().getContextClassLoader()" Yes. But in earlier versions of the JavaBridge the context classloader has had the wrong parent, this was fixed in 3.0.7a. But I don't think this bug is responsible for the current problem. Regards, Jost Boekemeier |
From: <php...@li...> - 2006-03-15 17:43:06
|
Hi, > phpize > ./configure --prefix=/opt/php5.1 > --with-java=/opt/jdk1.5 > --with-php-config=/opt/php5.1/bin/php-config > --enable-servlet==/opt/tomcat5.58/common/lib/servlet-api.jar You can just type: phpize && ./configure --with-java=/opt/jdk1.5 && make and then copy the modules/JavaBridge.war to cp modules/JavaBridge.war /opt/tomcat5.58/webapps re-start tomcat and browse to: http://localhost:8080/JavaBridge/test.php Or just download the J2EE binary (http://prdownloads.sourceforge.net/php-java-bridge/php-java-bridge_3.0.7a_j2ee.zip?download), which already contains a pre-compiled JavaBridge.war for Solaris, Linux and Windows. > Al ejecutar > http://localhost:8080/JavaBridge/test.php, se supera > el tiempo > de respuesta y no aparece nada. Does /opt/tomcat5.58/webapps/JavaBridge exist? Which error message do you see in the tomcat log file? Regards, Jost Boekemeier |