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...> - 2007-03-28 14:40:14
|
Hi, I have Suse Linux 10.1 installed, I can start the JavaBridge by calling "java -jar javabridge.jar SERVLET_LOCAL:8080" on console. I now want to persist the JavaBridge. This means: starting automatically on startup of the machine. How can I do this? I already tried to write an init.d-script with the console command mentioned above, but that didn't work out. Could anyone give me some hints on this topic? Best regards Daniel Preis -- "Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ... Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail -- "Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ... Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail |
From: <php...@li...> - 2007-03-27 19:10:32
|
That was the key I needed Jost! Thank you so much. Now the config files are being loaded by the API from the java.ext.dirs I also successfuly compiled and installed PHP/Java Bridge on Solaris and it's doing very well through the final development stages before going to testing and production. I really appreciate your help and patience. Thanks again, Best regards, Andr=E9s Gattinoni On 3/27/07, php...@li... < php...@li...> wrote: > > Hi, > > > > It should find the resources in the standard Java > > > repository, which is /usr/share/java/ext or > > > /usr/java/packages/lib/ext. > > > > I tried placing my config files on: > > /usr/java/packages/lib/ext > > /usr/share/java-ext/ > > /usr/share/pear > > which java VM do you use and what's the java.ext.dirs > setting? > > > Regards, > Jost Boekemeier > > > > > ___________________________________________________________ > Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > --=20 Andr=E9s Gattinoni (=AF`=B7._.=B7[El Barto(r)]=B7._.=B7=B4=AF) (...) |
From: <php...@li...> - 2007-03-27 17:34:12
|
Hi Andre, > There are, also, some small packaging improvements > and corrections, not affecting the bridge coding. is it possible to split ít into two packages, one containing the java.so and the other one the back end (presumably "JavaBridge.war")? What about requiring a tomcat servlet engine as a default back end on all operating systems? Those who don't or can't use a java.so may use the pure PHP implementation by "require()"ing the Java.inc built into the back end. The others can install an additional debian package providing the java.so and a java.ini file. The pure PHP implementation has been programmed so that it automatically uses the java.so, if available. Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2007-03-27 17:12:19
|
Hi, [we're not going to remove the C implementation nor the RedHat packages...] > I'm a php-java-bridge user, in windows environment > and the performance > penalty is very relevant for our needs and so Do you have any numbers? Even if the pure PHP implementation is 5 times slower than the C implementation on some operating systems (which I believe isn't the case), other technologies are even more expensive. Isn't it possible to optmize the particular code block so that the bridge can send an XML image to the back end and/or to receive the result in one call? > alocated some time > (without priority mind) to build the module into a > windows dll. The main problem with compiling a windows dll is that it needs a proprietary tool. The pecl4win people have the necessary infrastructure. After 4.0.8 is released in June, we can think about changing the license of the C implementation back to PHP3 and donate the C code to the pecl maintainers (if they want it). Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2007-03-27 09:50:04
|
Hi Andre, > I just uploaded to the sf.net project files area the > new 4.0.6 Debian package how does this differ from the 4.0.1 based package? Except for the version number the C based extension should be the same. :) 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...> - 2007-03-27 09:23:56
|
Hi, > > It should find the resources in the standard Java > > repository, which is /usr/share/java/ext or > > /usr/java/packages/lib/ext. > > I tried placing my config files on: > /usr/java/packages/lib/ext > /usr/share/java-ext/ > /usr/share/pear which java VM do you use and what's the java.ext.dirs setting? Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2007-03-26 21:43:34
|
Check the Apache error_log to see if you got any exception or error loading the jar. You're positive that the url http://localhost/~nico/QRCodeVerif.jar works, right? Regards, Andr=E9s Gattinoni On 3/26/07, php...@li... < php...@li...> wrote: > > Hello, > > I've got a problem using the bridge. This little example presents it. The > php file calls a method (QRCodeVerif) which creates a QRCodeDecoder from > the > qrcode.jar. This creation fails although the .jar is in the CLASSPATH > (compilation is ok). > > <?php > java_require('http://localhost/~nico/QRCodeVerif.jar'); > > $url =3D "/home/nico/public_html/upload/123aze.png"; > $name_file =3D "123aze.png"; > > $myObj =3D new Java('QRCodeVerif'); > > $out =3D $myObj->verif($url); > echo $out; > ?> > > The .java : > > import jp.sourceforge.qrcode.codec.QRCodeDecoder; > > public class QRCodeVerif { > > public String verif(String url){ > QRCodeDecoder decoder =3D new QRCodeDecoder(); // Prob= lem > with this line > return url; > } > } > > Can someone resolve this problem ? > > Best regards, > > Nicolas > > _________________________________________________________________ > Personnalisez votre Messenger avec Live.com > http://www.windowslive.fr/livecom/ > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > --=20 Andr=E9s Gattinoni (=AF`=B7._.=B7[El Barto(r)]=B7._.=B7=B4=AF) (...) |
From: <php...@li...> - 2007-03-26 20:15:41
|
Hello, I've got a problem using the bridge. This little example presents it. The php file calls a method (QRCodeVerif) which creates a QRCodeDecoder from the qrcode.jar. This creation fails although the .jar is in the CLASSPATH (compilation is ok). <?php java_require('http://localhost/~nico/QRCodeVerif.jar'); $url = "/home/nico/public_html/upload/123aze.png"; $name_file = "123aze.png"; $myObj = new Java('QRCodeVerif'); $out = $myObj->verif($url); echo $out; ?> The .java : import jp.sourceforge.qrcode.codec.QRCodeDecoder; public class QRCodeVerif { public String verif(String url){ QRCodeDecoder decoder = new QRCodeDecoder(); // Problem with this line return url; } } Can someone resolve this problem ? Best regards, Nicolas _________________________________________________________________ Personnalisez votre Messenger avec Live.com http://www.windowslive.fr/livecom/ |
From: <php...@li...> - 2007-03-26 18:39:24
|
Hello, I just uploaded to the sf.net project files area the new 4.0.6 Debian package, compiled in a pure Debian GNU / Linux 4.0 Etch. You will also find the needed package source files for package rebuilding at your machine (read the release notes), including the source orig.tar.gz file for compiling at other platforms too. Please, test them. Regards. Andre Felipe Machado http://www.techforce.com.br |
From: <php...@li...> - 2007-03-26 18:32:25
|
>> getSystemResource method of the ClassLoader > It should find the resources in the standard Java > repository, which is /usr/share/java/ext or > /usr/java/packages/lib/ext. I tried placing my config files on: /usr/java/packages/lib/ext /usr/share/java-ext/ /usr/share/pear and in the same location as the php file that loads the class. I can't get it to work. The API I'm trying to implement loads these configuration files using ClassLoader.getSystemResource and I need to figure out some way to load them. Thanks again for your helpful advice. Apart from this I'm making big progress with PHP/Java Brigde and it is being very useful. Regards, Andr=E9s Gattinoni |
From: <php...@li...> - 2007-03-26 16:12:16
|
Hi everyone, I'm a php-java-bridge user, in windows environment and the performance penalty is very relevant for our needs and so, i've alocated some time (without priority mind) to build the module into a windows dll. I'm trying (time allow) to "understand" the windows build requirements (not an easy task with all the obscure "Zend" stuff around) for it and build an Ant/Nant file to build it easier. I've had some success in some of the building steps, but it is still a work very much in the process. I know it won't be much, but this is the help i can provide... Cheers, Luis Ferro php...@li... escreveu: > Hello, Jost > It is fundamental to attract and retain more developers to use the repository for development. > Now is time to call for more help on rpm packaging and having a healthy repository is a crucial step. > I can compile and test on Debian, but another people could help on rpm compiling packaging. > > I was talking with other coleague and he still think that 2x performance penalty is a relevant issue. But one fully working implementation is better than many barely working and lagging behind the needs of developers. > How many users has the pure C implementation? > > IMHO, if project offer different implementations, they need to be in sync. > Or drop support for some while other people do not step in and help on compiling and packaging. > The workload is seeming to be increasing too much over you. > The project "bus factor" needs to be improved. > Php-java-bridge is not an "end joe user" application. All users are developers. A skilled RH user may get the rpm compiling and packaging work from now. > But the repository must be in sync with the development, as a development tool, not only as a "documentation tool" for this take off. > As a suggestion, maybe another php-java-bridge-devel could be created. > Any more suggestions? > What can I do to help more? > > Regards. > Andre Felipe Machado > > > > On Sat, 24 Mar 2007 15:56:41 +0100 (CET), Jost Bökemeier wrote: > >> Hi Andre, >> >> what about splitting the pure PHP implementation from the C based >> implementation? >> >> Versions >= 4.0.3 may not compile anymore because I don't have the time >> to check the compile scripts on a variety of operating systems and C >> compilers. >> >> The pure PHP implementation allows us to experiment with certain ideas >> or features very quickly, without having to worry about different >> architectures. >> >> Is it necessary to keep the C based implementation in sync? The RPM >> files for Red Hat are still at 4.0.1 and I don't want to update them until >> a new version of Fedora is available. >> >> >> Regards, >> Jost Boekemeier >> >> > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |
From: <php...@li...> - 2007-03-26 09:18:30
|
> -----Urspr=FCngliche Nachricht----- > Von: php...@li... > Gesendet: 21.03.07 17:31:30 > An: php...@li... > Betreff: Re: [Php-java-bridge-users] use > Hi, >=20 > > helloworld/Main). -- Unable to call constructor, see > > the README section "Java platform issues" for > > details. > > Am I missing something trivial here=3F >=20 > I think this is explained in the README section "Java > platform issues". >=20 >=20 > > Are there any good tutorials on how to get java code > > called from php and working=3F >=20 > What's wrong with the "loading user libraries" section > from the README=3F :) Thanks, I somehow really missed that part:=20 "Java libraries should ... be installed in one of the following directorie= s: java.ext.dirs or php.java.bridge.base/lib... Libraries in these director= ies are automatically loaded by a static loader whenever the JVM starts." Thanks again for taking the time to even reply to the most trivial questio= ns :-) >=20 >=20 > Regards, > Jost Boekemeier >=20 Best regards, Timo =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F SMS schreiben mit WEB.DE FreeMail - einfach, schnell und kostenguenstig. Jetzt gleich testen! http://f.web.de/=3Fmc=3D021192 |
From: <php...@li...> - 2007-03-22 19:12:09
|
php.java.servlet.fastcgi.FastCGIServlet.CGIEnvironment > private ConnectionPool The connection pool has been moved from the servlet to the fastcgi directory. Sorry for the fuzz. I've made the change in the cvs. I hope it compiles now (I don't have a build machine to check at the moment). Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2007-03-22 18:55:52
|
Hi, > Output on the web page: > [o(String)JavaClass] I think you're right, it seems foolish to require an explicit conversion from java.lang.String to string. Please add the following code to the php.java.bridge.JavaBridge.java: public String ObjectToString(String ob) { return (String)castToString(ob); } After that all java.lang.String objects are displayed as a string value, even though they are still string objects: $s = new Java("java.lang.String", "hello world"); echo $s; echo "\n"; echo $s->substring(0,5); => hello world => hello I have uploaded 4.0.3 for testing, it already contains this code. Thank you very much for the bug report. > I've tried to cast it like so That worked with the C based extension, but object->value casts do not work on PHP level. That's a shortcoming in the php engine, imho. 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...> - 2007-03-22 12:43:38
|
Hi, > "/usr/local/php/lib/extensions/" >/usr/local/php/lib/extensions/no-debug-non-zts-20050922/ I don't know where the first, incorrect path comes from . The no-debug-non-zts-20050922 directory is the correct one. > Is there any way to change that installation path > while configuring PHP/Java Bridge? No. php does this automatically. You seem to have two different PHP versions installed. One is patched and uses lib/extension. The other one is the version from which the development files came from. Just remove either one and it will work. > Not even using putenv PHP function? I think this is a general misunderstanding how the environment works. Each process has its own environment. If you use putenv, this will not affect the oracle server nor any other process which has not been started from this particular php instance. Since the php instance terminates after each request (which means that you must not start processes from php instances anyway), the putenv procedure is pretty useless (at least in a web environment). > I saw the FAQ... does it mean that I should start > Apache with apachectl -D > java.ext.dirs=/path/to/my/confs? No. If you want to start Java as a sub process of Apache, and you want to pass your own options to this sub process, you need to write a wrapper binary which exec's java with the parameters you need. Please see the RunJavaBridge wrapper (in the server folder of the source download) for details. > I would rather work something out that did not > envolve having to modify > startup configuration. Why don't you simply start Java via a system service, for example via tomcat? 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...> - 2007-03-21 18:46:24
|
On 3/21/07, php...@li... < php...@li...> wrote: > > Hi, > > [please excuse the delay] No problem. Thanks a lot for the help you're providing. > When I run the install.sh script it overwrites my > > php.ini with the PHP/Java Bridge configuration. > > It doesn't do this if you php installation supports an > /etc/php.d/ directory. Please see the php --configure > help for details (php's configure, not the bridge > configure script). > > > > install.sh created to my original php.ini, the > > extension just doesn't load. > > The only thing the extension need is a > > extension=3Djava.so > > entry. Ok... it took me a while but I finally got it working. It was one of those time when you try hundreds of different things and by the end you don't kno= w if what you're trying you have already done it or not. The thing is that my php.ini was loading the extensions from extension_dir = =3D "/usr/local/php/lib/extensions/" and the java.so was installed on /usr/local/php/lib/extensions/no-debug-non-zts-20050922/ What I don't know is why it didn't work when I copied every file from usr/local/php/lib/extensions/no-debug-non-zts-20050922/ to /usr/local/php/lib/extensions/ Is there any way to change that installation path while configuring PHP/Jav= a Bridge? > In a previous email, Jost told me that PHP/Java > > Bridge does not care about > > CLASSPATH variable, > > Some older JDK may still read the CLASSPATH > environment variable. But since Apache discards all > environment variables and executes in a clean > environment you cannot pass it to the VM (if you want > to run the VM as a sub-component of Apache). Not even using putenv PHP function? Because I use that to configure some Oracle stuff. > getSystemResource method of the ClassLoader > > It should find the resources in the standard Java > repository, which is /usr/share/java/ext or > /usr/java/packages/lib/ext. > > > > So, how should I indicate where those > > Just modify the standard location using the > -Djava.ext.dirs=3D... option. If you want to pass this > option from Apache, use a wrapper script, please see > our FAQ for details. I saw the FAQ... does it mean that I should start Apache with apachectl -D java.ext.dirs=3D/path/to/my/confs ? I would rather work something out that did not envolve having to modify startup configuration. I'm using this to work with a java api, which would be a quite small part o= f a much larger application and would like to make it easier to deploy becaus= e most probably I won't be installing it. BTW: Isn't that backwards? If you want to load > resources from a user dir, why don't you simply use > getResource() instead of getSystemResource()? Might be. I read something like that, the problem is that the getSystemResource call is made from the API I'm working with (which source I don't have), and I have to work with that. Best regards, Andr=E9s Gattinoni ___________________________________________________________ > Der fr=FChe Vogel f=E4ngt den Wurm. Hier gelangen Sie zum neuen Yahoo! Ma= il: > http://mail.yahoo.de > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > --=20 Andr=E9s Gattinoni (=AF`=B7._.=B7[El Barto(r)]=B7._.=B7=B4=AF) (...) |
From: <php...@li...> - 2007-03-21 16:31:20
|
Hi, > helloworld/Main). -- Unable to call constructor, see > the README section "Java platform issues" for > details. > Am I missing something trivial here? I think this is explained in the README section "Java platform issues". > Are there any good tutorials on how to get java code > called from php and working? What's wrong with the "loading user libraries" section from the README? :) Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2007-03-21 16:24:14
|
Hi, [please excuse the delay] > When I run the install.sh script it overwrites my > php.ini with the PHP/Java Bridge configuration. It doesn't do this if you php installation supports an /etc/php.d/ directory. Please see the php --configure help for details (php's configure, not the bridge configure script). > install.sh created to my original php.ini, the > extension just doesn't load. The only thing the extension need is a extension=java.so entry. > In a previous email, Jost told me that PHP/Java > Bridge does not care about > CLASSPATH variable, Some older JDK may still read the CLASSPATH environment variable. But since Apache discards all environment variables and executes in a clean environment you cannot pass it to the VM (if you want to run the VM as a sub-component of Apache). > getSystemResource method of the ClassLoader It should find the resources in the standard Java repository, which is /usr/share/java/ext or /usr/java/packages/lib/ext. > So, how should I indicate where those Just modify the standard location using the -Djava.ext.dirs=... option. If you want to pass this option from Apache, use a wrapper script, please see our FAQ for details. BTW: Isn't that backwards? If you want to load resources from a user dir, why don't you simply use getResource() instead of getSystemResource()? 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...> - 2007-03-21 15:56:42
|
Estarei fora da Atech entre os dias 19 e 30 de mar=C3=A7o. Para assuntos que necessitem imediata aten=C3=A7=C3=A3o, favor entrar em = contato com Carlos Eduardo (cadu=40atech.br) - - - - - Politica de Privacidade: Esta mensagem pode conter informacao confidencial = e/ou privilegiada. Se voce nao for o destinatario ou a pessoa autorizada a = receber esta mensagem, nao pode usar, copiar ou divulgar as informacoes = nela contidas ou tomar qualquer acao baseada nessas informacoes. Se voce = recebeu esta mensagem por engano, por favor avise imediatamente o = remetente, respondendo o e-mail e em seguida apague-o. Agradecemos sua = cooperacao. Privacy Policy: This message may contain confidential and/or privileged = information. If you are not the addressee or authorized to receive this = for the addressee, you must not use, copy, disclose or take any action = based on this message or any information herein. If you have received this = message in error, please advise the sender immediately by reply e-mail and = delete this message. Thank you for your cooperation.= |
From: <php...@li...> - 2007-03-21 14:58:35
|
Maybe if you'd copy your java code it could help. The name of your class is Main? is it public? Andr=E9s Gattinoni On 3/21/07, php...@li... < php...@li...> wrote: > > > Hi, > > I need some advice, I'm trying to use my own java class in php using > > Apache 2.2.4 > PHP 5.2.1 > Java Bridge 4.0.1 as doubleclicked JavaBridge.jar (8080) > > and the following code works: > > <?php > require_once("http://localhost:8080/JavaBridge/java/Java.inc"); > java_require("http://localhost/Main.jar"); > > $s =3D new Java("java.lang.String", "hello"); > echo $s; > > ?> > > When I try to call the constructor of my Main class however, I get an > exception: > > <?php > > $test =3D new Java("Main"); > > ?> > > javabridge.log: > > Mar 21 15:12:14 JavaBridge ERROR: An exception occured: > java.lang.ClassNotFoundException: Unresolved external reference: > java.lang.NoClassDefFoundError: Main (wrong name: helloworld/Main). -- > Unable to call constructor, see the README section "Java platform issues" > for details. > java.lang.ClassNotFoundException: Unresolved external reference: > java.lang.NoClassDefFoundError: Main (wrong name: helloworld/Main). -- > Unable to call constructor, see the README section "Java platform issues" > for details. > at > php.java.bridge.JavaBridge.getUnresolvedExternalReferenceException( > JavaBridge.java:477) > at php.java.bridge.JavaBridge.CreateObject(JavaBridge.java:545) > at php.java.bridge.Request.handleRequest(Request.java:353) > at php.java.bridge.Request.handleRequests(Request.java:388) > at php.java.bridge.http.ContextRunner.run(ContextRunner.java:186) > at php.java.bridge.BaseThreadPool$Delegate.run(BaseThreadPool.jav= a > :66) > Caused by: java.lang.NoClassDefFoundError: Main (wrong name: > helloworld/Main) > at java.lang.ClassLoader.defineClass1(Native Method) > at java.lang.ClassLoader.defineClass(Unknown Source) > at java.security.SecureClassLoader.defineClass(Unknown Source) > at java.net.URLClassLoader.defineClass(Unknown Source) > at java.net.URLClassLoader.access$000(Unknown Source) > at java.net.URLClassLoader$1.run(Unknown Source) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(Unknown Source) > at java.lang.ClassLoader.loadClass(Unknown Source) > at java.lang.ClassLoader.loadClass(Unknown Source) > at php.java.bridge.DynamicClassLoader.loadClass( > DynamicClassLoader.java:390) > at php.java.bridge.DynamicJavaBridgeClassLoader.loadClass( > DynamicJavaBridgeClassLoader.java:291) > at java.lang.ClassLoader.loadClassInternal(Unknown Source) > at java.lang.Class.forName0(Native Method) > at java.lang.Class.forName(Unknown Source) > at php.java.bridge.SimpleJavaBridgeClassLoader.forName( > SimpleJavaBridgeClassLoader.java:188) > at php.java.bridge.JavaBridge.CreateObject(JavaBridge.java:495) > ... 4 more > > > Am I missing something trivial here? > Are there any good tutorials on how to get java code called from php and > working? > > Thanks for reading > Timo > _______________________________________________________________ > SMS schreiben mit WEB.DE FreeMail - einfach, schnell und > kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=3D021192 > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > --=20 Andr=E9s Gattinoni (=AF`=B7._.=B7[El Barto(r)]=B7._.=B7=B4=AF) (...) |
From: <php...@li...> - 2007-03-21 14:52:21
|
Hi, I need some advice, I'm trying to use my own java class in php using Apache 2.2.4 PHP 5.2.1 Java Bridge 4.0.1 as doubleclicked JavaBridge.jar (8080) and the following code works: <?php require_once("http://localhost:8080/JavaBridge/java/Java.inc"); java_require("http://localhost/Main.jar"); $s = new Java("java.lang.String", "hello"); echo $s; ?> When I try to call the constructor of my Main class however, I get an exception: <?php $test = new Java("Main"); ?> javabridge.log: Mar 21 15:12:14 JavaBridge ERROR: An exception occured: java.lang.ClassNotFoundException: Unresolved external reference: java.lang.NoClassDefFoundError: Main (wrong name: helloworld/Main). -- Unable to call constructor, see the README section "Java platform issues" for details. java.lang.ClassNotFoundException: Unresolved external reference: java.lang.NoClassDefFoundError: Main (wrong name: helloworld/Main). -- Unable to call constructor, see the README section "Java platform issues" for details. at php.java.bridge.JavaBridge.getUnresolvedExternalReferenceException(JavaBridge.java:477) at php.java.bridge.JavaBridge.CreateObject(JavaBridge.java:545) at php.java.bridge.Request.handleRequest(Request.java:353) at php.java.bridge.Request.handleRequests(Request.java:388) at php.java.bridge.http.ContextRunner.run(ContextRunner.java:186) at php.java.bridge.BaseThreadPool$Delegate.run(BaseThreadPool.java:66) Caused by: java.lang.NoClassDefFoundError: Main (wrong name: helloworld/Main) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$000(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at php.java.bridge.DynamicClassLoader.loadClass(DynamicClassLoader.java:390) at php.java.bridge.DynamicJavaBridgeClassLoader.loadClass(DynamicJavaBridgeClassLoader.java:291) at java.lang.ClassLoader.loadClassInternal(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at php.java.bridge.SimpleJavaBridgeClassLoader.forName(SimpleJavaBridgeClassLoader.java:188) at php.java.bridge.JavaBridge.CreateObject(JavaBridge.java:495) ... 4 more Am I missing something trivial here? Are there any good tutorials on how to get java code called from php and working? Thanks for reading Timo _______________________________________________________________ SMS schreiben mit WEB.DE FreeMail - einfach, schnell und kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192 |
From: <php...@li...> - 2007-03-21 12:48:54
|
I've sent this message before but it was a little off-topic in a thread tha= t I should have assumed closed when you help me to make my script work. I'm sending my questions again, not to be persistent, but to be a little more organized. Two questions came up: 1) When I run the install.sh script it overwrites my php.ini with the PHP/Java Bridge configuration. It does not bother me right now because I'm not using any special configuration, but when I go on production I will need my php.ini file. The problem is that if I append the lines of the php.ini file that the install.sh created to my original php.ini, the extension just doesn't load. Is there any consideration that I should take into account before merging both ini files? 2) In a previous email, Jost told me that PHP/Java Bridge does not care about CLASSPATH variable, and here comes my problem. I have to implement an API which uses some XML files for its configuration. The xml is loaded using th= e getSystemResource method of the ClassLoader, which looks for a certain file on the classpath as I understand. So, how should I indicate where those files are using PHP/Java Bridge? Right now I just added the path to the conf/ folder to the CLASSPATH and everything worked. Thanks Andr=E9s Gattinoni |
From: <php...@li...> - 2007-03-21 12:24:35
|
Hi, > Security issues and performance. The platform > doesn't allow for "external" includes to run. Why don't you store the Java.inc into the pear folder? > Besides, the performance hit of the pure php When a php opcode cache is used, the pure php implementation is only two times slower than the C implementation. I don't think this is a problem. The most expensive part are network round-trips anyway, which can be avoided by encapsulating the PHP code with java_begin_document()/java_end_document(). > what i did... From my research on the net, there are > loads of "gray" > areas unanswered, regarding compiling stuff in > windows... No surprise. Zend wants to sell their products. :) 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...> - 2007-03-21 11:11:06
|
>> Mind that i'm not a C programmer... but a PHP one... >> > > Why don't you use the pure PHP implementation instead? > Security issues and performance. The platform doesn't allow for "external" includes to run. Besides, the performance hit of the pure php implementation isn't acceptable for production purposes. Anyway, i will do as you suggest... Probably i will just start over from scratch and write a "manual" of what i did... From my research on the net, there are loads of "gray" areas unanswered, regarding compiling stuff in windows... BTW is the c version being updated as well? Or it doesn't require any update so far? Thanx for the assistance, Luis Ferro > > Regards, > Jost Boekemeier > > > > > |
From: <php...@li...> - 2007-03-21 10:54:23
|
Hi, > The problem is that i'm in position of compiling all > the c files, but i > get errors because the "ZEND_API" isn't defined > anywhere in the environment. you can define it to empty. We've had a patch for it some time ago. But since sourceforge.net has nuked its compile server, these files are gone. > Anyone has an hint on how to find it to glue it? At least in 5.0.5 there were three changes necessary to compile the Zend code with gcc. I think the easiest way is to use the microsoft compiler and the make file that comes with php. I think there is/was a howto in the mailing list archives. > Mind that i'm not a C programmer... but a PHP one... Why don't you use the pure PHP implementation instead? Regards, Jost Boekemeier ___________________________________________________________ Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de |