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-20 18:13:45
|
I'm trying to compile the dll with the latest php (5.2.1 as it is currently on my environment). 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. Anyone has an hint on how to find it to glue it? Mind that i'm not a C programmer... but a PHP one... and so hacking in the whole environment just to compile the dll has been, well, a rocky adventure... Thanx in advance, Luis Ferro |
From: <php...@li...> - 2007-03-20 17:21:32
|
Hi Andre, > php/java/servlet/PhpCGIServlet.java:41: cannot find > symbol > symbol : class FastCGIServlet > location: package php.java.servlet.fastcgi > import php.java.servlet.fastcgi.FastCGIServlet; Oops, I've removed the wrong file from CVS. You can find the servlet/fastcgi/FastCGIServlet.java in the src.zip from the binary download. I will remove servlet/FastCGIServlet.java and add servlet/fastcgi/FastCGIServlet.java tomorrow. Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2007-03-20 13:27:09
|
Thanks. That worked nicely. -- Michael Speth 石雨濛 Computer Engineer OPNET http://www.opnet.com |
From: <php...@li...> - 2007-03-20 13:02:22
|
SGkgTWljaGFlbCwKCnRyeSB3aXRoOgoKJG91dCA9ICRKYXZhQ2xhc3NJbnN0YW5jZS0+dG9TdHJp bmcoKTsKIGVjaG8gamF2YV92YWx1ZXMoJG91dCk7CgoKQW5kcsOpcyBHYXR0aW5vbmkKCgpPbiAz LzIwLzA3LCBwaHAtamF2YS1icmlkZ2UtdXNlcnNAbGlzdHMuc291cmNlZm9yZ2UubmV0IDwKcGhw LWphdmEtYnJpZGdlLXVzZXJzQGxpc3RzLnNvdXJjZWZvcmdlLm5ldD4gd3JvdGU6Cj4KPiBIZWxs by4KPiAgIEkgYW0gdHJ5aW5nIHRvIHByaW50IGEgU3RyaW5nIHRvIHRoZSBzY3JlZW4gKHZpYSBo dG1sKSB0aGF0IHdhcwo+IHJldHVybmVkIGZyb20gYSBKYXZhIE9iamVjdDsgaG93ZXZlciwgd2hl biB0aGUgU3RyaW5nIGlzIHByaW50ZWQgdG8KPiB0aGUgc2NyZWVuLCBoYXMgaW5mb3JtYXRpb24g YWJvdXQgdGhlIHN0cmluZyBlbWJlZGRlZC4KPgo+IEV4YW1wbGU6Cj4gSmF2YQo+IC0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tCj4gY2xhc3MgSmF2YUNsYXNzewo+ICAgIHB1Ymxp YyBTdHJpbmcgdG9TdHJpbmcoKXsKPiAgICAgICAgICByZXR1cm4gIkphdmFDbGFzcyI7Cj4gICAg fQo+IH0KPgo+Cj4gUGhQCj4gLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0KPiAk b3V0ID0gJEphdmFDbGFzc0luc3RhbmNlLT50b1N0cmluZygpOwo+IGVjaG8gJG91dDsKPiAtLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLQo+Cj4gT3V0cHV0IG9uIHRoZSB3ZWIgcGFn ZToKPiBbbyhTdHJpbmcpSmF2YUNsYXNzXQo+Cj4gSSd2ZSB0cmllZCB0byBjYXN0IGl0IGxpa2Ug c28KPiAkb3V0ICA9IChTdHJpbmcpICRKYXZhQ2xhc3NJbnN0YW5jZS0+dG9TdHJpbmcoKTsKPiBh bmQvb3IKPiBlY2hvIChTdHJpbmcpICRvdXQ7Cj4KPiBBbnlvbmUga25vdyB3aHkgdGhpcyBpcyBo YXBwZW5pbmc/Cj4KPiBUaGFua3MKPgo+IC0tCj4gTWljaGFlbCBTcGV0aCAg55+z6Zuo5r+bCj4g Q29tcHV0ZXIgRW5naW5lZXIKPiBPUE5FVAo+IGh0dHA6Ly93d3cub3BuZXQuY29tCj4KPiAtLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tCj4gVGFrZSBTdXJ2ZXlzLiBFYXJuIENhc2guIEluZmx1ZW5jZSB0aGUgRnV0 dXJlIG9mIElUCj4gSm9pbiBTb3VyY2VGb3JnZS5uZXQncyBUZWNoc2F5IHBhbmVsIGFuZCB5b3Un bGwgZ2V0IHRoZSBjaGFuY2UgdG8gc2hhcmUKPiB5b3VyCj4gb3BpbmlvbnMgb24gSVQgJiBidXNp bmVzcyB0b3BpY3MgdGhyb3VnaCBicmllZiBzdXJ2ZXlzLWFuZCBlYXJuIGNhc2gKPiBodHRwOi8v d3d3LnRlY2hzYXkuY29tL2RlZmF1bHQucGhwP3BhZ2U9am9pbi5waHAmcD1zb3VyY2Vmb3JnZSZD SUQ9REVWREVWCj4gX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X18KPiBwaHAtamF2YS1icmlkZ2UtdXNlcnMgbWFpbGluZyBsaXN0Cj4gcGhwLWphdmEtYnJpZGdl LXVzZXJzQGxpc3RzLnNvdXJjZWZvcmdlLm5ldAo+IGh0dHBzOi8vbGlzdHMuc291cmNlZm9yZ2Uu bmV0L2xpc3RzL2xpc3RpbmZvL3BocC1qYXZhLWJyaWRnZS11c2Vycwo+CgoKCi0tIApBbmRyw6lz IEdhdHRpbm9uaQoowq9gwrcuXy7Ct1tFbCBCYXJ0byhyKV3Cty5fLsK3wrTCrykgKC4uLikK |
From: <php...@li...> - 2007-03-20 12:52:48
|
Hello. I am trying to print a String to the screen (via html) that was returned from a Java Object; however, when the String is printed to the screen, has information about the string embedded. Example: Java ----------------------------------- class JavaClass{ public String toString(){ return "JavaClass"; } } PhP ----------------------------------- $out = $JavaClassInstance->toString(); echo $out; ----------------------------------- Output on the web page: [o(String)JavaClass] I've tried to cast it like so $out = (String) $JavaClassInstance->toString(); and/or echo (String) $out; Anyone know why this is happening? Thanks -- Michael Speth 石雨濛 Computer Engineer OPNET http://www.opnet.com |
From: <php...@li...> - 2007-03-19 17:37:22
|
I just came up with two new questions. I'm sorry, I don't mean to be annoying, but here is the only place where I can get the help I need. 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-19 15:36:35
|
> > > > The error I was getting was that it couldn't find > > the class. > > I don't think so. Can you please open a problem > report, > please use > http://sourceforge.net/tracker/?func=3Dadd&group_id=3D117793&atid=3D67923= 3 > > set the log level to 4 and attach the server log > there. What I meant is that I got the error Java throws when it cannot find the class that you're trying to instanciate. It is the error I had pasted on my first e-mail: CreateInstance failed: new Test. Cause: java.lang.ClassNotFoundException: Test Responsible VM: 3.4.3@http://gcc.gnu.org/java/ > But now I've got a > > different error: > > CreateInstance failed: new Test. Cause: > > java.lang.IllegalAccessException: > > Class php.java.bridge.JavaBridge can not access a > > member of class Test with > > modifiers "public" Responsible VM: > > 1.5.0_11@http://java.sun.com/ > > Ah, now we're are at something. So your problem isn't > that the class could not be found. The problem is that > the wrapper Java class you've written throws > exceptions or even errors. -- Most likely a > NoClassDefFoundError. > > > > This is my java code: > > > > class Test > > This will not work, because your class is not public. Great! That was it! Now it is working! Just another question... I had to restart Apache so that it would load the new jar file... why is that? cache? I will keep on trying with other things (now I have to get my *real* java programs to work) and will keep you posted of any other problem I might get= . > Besides, I installed > > the PHP/Java Bridge from its source because the RPM > > package didn't work for > > me > > I don't know what Andr'e and Jon think about this, but > I think we should discontinue the source distribution. > I think it causes too much trouble. We could keep the (source-) RPM and debian packages. > Everyone else should use the generic binary or pull > the source code from the CVS. In my opinion, it's always useful to have a stable release of the source code for those who don't use RPM or Debian packages. I'm working with this at he company where I work, and I have to work with RedHat so I could use the RPM binaries if it wasn't for the dependecies problems I got (as I said, I installed Apache and PHP *manually* from its source). Nevertheless I would probably want to install PHP/Java Bridge on m= y web server at home where I'm running Slackware and I would definitely need to use the source package there. > Apache/Tomcat? Because I was required not to use > > Tomcat in this case. > > You need to start a Java process as a service on the > computer. Which other program can start Java as a > system service? And what's the problem with tomcat? This was mostly curiosity, as I said I haven't work much with Java nor JSP... but if it's the way to go, so be it. Thank you very much again for your support. I hope that I can get this to work and use it in many other places. I would be glad to help you enrich th= e documentation with my experience installing it, and I'm at your service for anything else that I could be useful. Regards, Andr=E9s Gattinoni |
From: <php...@li...> - 2007-03-19 15:03:58
|
Hi, > The error I was getting was that it couldn't find > the class. I don't think so. Can you please open a problem report, please use http://sourceforge.net/tracker/?func=add&group_id=117793&atid=679233 set the log level to 4 and attach the server log there. > But now I've got a > different error: > CreateInstance failed: new Test. Cause: > java.lang.IllegalAccessException: > Class php.java.bridge.JavaBridge can not access a > member of class Test with > modifiers "public" Responsible VM: > 1.5.0_11@http://java.sun.com/ Ah, now we're are at something. So your problem isn't that the class could not be found. The problem is that the wrapper Java class you've written throws exceptions or even errors. -- Most likely a NoClassDefFoundError. > This is my java code: > > class Test This will not work, because your class is not public. > All methods are public. Irrelevant. > Besides, I installed > the PHP/Java Bridge from its source because the RPM > package didn't work for > me I don't know what Andr'e and Jon think about this, but I think we should discontinue the source distribution. I think it causes too much trouble. We could keep the (source-) RPM and debian packages. Everyone else should use the generic binary or pull the source code from the CVS. > Apache/Tomcat? Because I was required not to use > Tomcat in this case. You need to start a Java process as a service on the computer. Which other program can start Java as a system service? And what's the problem with tomcat? Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2007-03-19 13:26:16
|
Hi Jost, Let me thank you again for all the help you've been giving me. First of all I will answer the questions from your previous mail. java_require("file://usr/local/apache2/htdocs/tests_java/Test.jar"); java_require("http://localhost/tests_java/Test.jar"); java_require("http://172.16.0.75/tests_java/Test.jar"); java_require("Test.jar"); And none of them seemed to work. All of the above examples should work. Which error message do you get? The error I was getting was that it couldn't find the class. I checked the JVM that it was using and it was wrong, as you suggested. So I changed it and now it's working with the JRE I just installed. But now I've got a different error: CreateInstance failed: new Test. Cause: java.lang.IllegalAccessException: Class php.java.bridge.JavaBridge can not access a member of class Test with modifiers "public" Responsible VM: 1.5.0_11@http://java.sun.com/ This is my java code: class Test { public Test () { System.out.println("Hi, I'm the constructor"); } public String saySth () { return "Something stupid"; } public static void main (String[] args) { System.out.println("This is the main"); System.exit(0); } } All methods are public. Regarding Security Enhanced Linux, I had seen the warning on your site so I checked it before but it is not enabled in this box. Besides, I installed the PHP/Java Bridge from its source because the RPM package didn't work for me as the Apache and PHP were also compiled and installed *manually*, so th= e RPM would say that I needed some dependecies such as httpd... Anyway, I think that now that you've shown me this error I had on my configuration I'm closer to making it work. As for the PHP Implementation does that imply that I should run Apache/Tomcat? Because I was required not to use Tomcat in this case. However, as I said in another mail, I don't have much experience with Java nor Tomcat, so I'm not sure what are the advantages or disavantages does that have. Thanks again for your help. Regards, Andr=E9s On 3/18/07, php...@li... < php...@li...> wrote: > > Hi Andr=E9s, > > I just saw that you use a recent version of PHP > anyway. > > So please use the pure PHP implementation instead of > the C based implementation started as a sub component > of Apache. > > Type: > > /opt/jdkXXX/bin/java -jar JavaBridge.jar > SERVLET:8080 > > And then use your java from your scripts as follows: > > <?php > require_once("http://localhost:8080/JavaBridge/java/Java.inc"); > java_require("all.jar;my.jar;library.jar;files.jar"); > ... > ?> > > If this works and you really want to run Java as a sub > component of Apache, you can think about where to > store your libraries and how to set the security > policy in a second step. > > > Regards, > Jost Boekemeier > > > > > > > > ___________________________________________________________ > 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-19 10:48:01
|
Hi, > I can't find a readme that mentions anything about > this. The README is in the PHP/Java Bridge binary download (php-java-bridge_x.y.z_j2ee.zip. > java -jar JavaBridge.jar SERVLET_LOCAL:9676 > My Test.php is thus: (I tried using new Java(...) >require_once("http://localhost:9676/JavaBridge/java/Java.inc"); > echo $jversion; => > Java version=[o(String):"1.5.0_10"] Perfect. > If I uncomment the line below assignment of => > Java version=Object id #19 Right. > This can't be right!!! Why not? This is standard PHP behaviour. -- If you want object=>string autoconversion, this is available and default in PHP6, but not in PHP5. What exactly do you want to do? Do you want to convert the created Object into a String? See the documentation for java_cast($obj, PHP_TYPE) and java_values($obj). I guess what you want to do is something like: $props = $system->getProperties(); // echo $props; // a java Properties object $phpArray = java_values($props); Please see our documentation at php-java-bridge.sf.net for details. Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2007-03-19 03:17:28
|
I can't find a readme that mentions anything about this. My configuration is as follows: W2k Php v5.16 or Php v5.21 ( can use either ) PHPEdit v4.6.3 in debug/server mode JRE 1.5.10 Using the following I have successfully? performed the bridge In a DOS box I run: java -jar JavaBridge.jar SERVLET_LOCAL:9676 In my php.ini I have no java extension or module information My Test.php is thus: (I tried using new Java(...) with no difference in results) <?php require_once("http://localhost:9676/JavaBridge/java/Java.inc"); $system = new JavaClass('java.lang.System'); $jversion = $system->getProperty('java.version'); // echo 'Java version=' . $jversion . '<br/>'; echo 'Java version='; echo $jversion; echo '<br/>'; ?> Result is: ****************************** Java version=[o(String):"1.5.0_10"] ****************************** If I uncomment the line below assignment of $jversion result is: ****************************** Java version=Object id #19 Java version=[o(String):"1.5.0_10"] ****************************** This can't be right!!! Thanks, Jose |
From: <php...@li...> - 2007-03-18 17:23:56
|
Hi Andrés, I just saw that you use a recent version of PHP anyway. So please use the pure PHP implementation instead of the C based implementation started as a sub component of Apache. Type: /opt/jdkXXX/bin/java -jar JavaBridge.jar SERVLET:8080 And then use your java from your scripts as follows: <?php require_once("http://localhost:8080/JavaBridge/java/Java.inc"); java_require("all.jar;my.jar;library.jar;files.jar"); ... ?> If this works and you really want to run Java as a sub component of Apache, you can think about where to store your libraries and how to set the security policy in a second step. 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-18 17:18:40
|
Hi Jose, > I don't know where > to find the "include" files in RT/ or the > Lucene/All.php file. java -jar JavaBridge.jar convert ... as described in the README doesn't create the RT/ and Lucene/ directories? If so please file a bug report. > I missing? I have successfully created/searched > Lucene indexes using > just Java. Well, use the low-level interface instead. All the above wrappers do is to call the low-level Java(...) procedures. Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2007-03-18 17:09:46
|
I have tried to run your example of search using Lucene and cannot get it to work in my W2k/PHP5.2.1/PhpEdit environment. I don't know where to find the "include" files in RT/ or the Lucene/All.php file. What am I missing? I have successfully created/searched Lucene indexes using just Java. Thanks, Jose |
From: <php...@li...> - 2007-03-18 16:33:52
|
Hi, I have uploaded version 4.0.2 for testing. * It now contains our own FastCGI launcher.exe which uses named pipes instead of TCP sockets on windows. * Most of the old FastCGI code has been rewritten or cleaned up. * The pure PHP implementation now supports "named pipes", persistent backend connections and "override-redirect". * For those who don't have a PHP opcode cache (sometimes called "accelerator technology") the pure PHP implementation loads *much* faster. Since the pure PHP implementation is now complete, we can think about removing the old C based implementation entirely: On Linux the pure PHP implementation is only 2 times slower than the C based implementation. I think the future of the C based implementation depends on wheter someone is willing to maintain it. Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2007-03-18 16:14:06
|
Hi Andrés, >java_require("file://usr/local/apache2/htdocs/tests_java/Test.jar"); > java_require("http://localhost/tests_java/Test.jar"); > java_require("http://172.16.0.75/tests_java/Test.jar"); > java_require("Test.jar"); > > And none of them seemed to work. All of the above examples should work. Which error message do you get? Note that most modern Linux systems come with Security Enhanced Linux enabled. This means that the folders tests_java, DOCUMENT_ROOT/tests_java and htdocs must be tagged appropriately. Furthermore the back end runs in a sand box which can only access files and directories which belong to httpd (or the "apache" user on RedHat linux). Please see the readme the documentation on php-java-bridge.sf.net for details. > Which would be the most appropiate way? Copy Test.jar into {php.java.bridge.base}/lib and use java_require("Test.jar"); If you have installed from RPM, this directory is tagged as lib_t and has the correct permissions. > > > VM: 3.4.3@http://gcc.gnu.org/java/ > > Where should I define the VM that php/java bridge > will work with? It depends on how you start Java. As a sub component of Apache or IIS? In this case the bridge uses the java.java option from the php.ini. > I actually installed the Java J2SE JDK from Sun on > my box on /opt/jdk_ ... > and that path is the one I set on the java.ini file. The phpinfo() or the test.php page should display the settings. Probably your system uses another .ini file than you expect. > Ok, I'll remove the java_reset() calls. Most back ends ignore the java_reset() calls anyway. Only the standalone container honors it. I thought java_reset() generates enough noise so that people don't use it in their scripts. Unfortunately it is possible to suppress the warnings with the @operator. > I shouldn't touch the CLASSPATH, right? You can set it to any value you want. Java and the PHP/Java Bridge don't care. > I'm not sure about what you mean when you say > wrappers. I think hiding the libraries behind a facade is a bad idea; people shouldn't write unnatural code. If you have deployed your libraries into a J2EE back end, use the libraries directly: <?php require_once("http://hostname:8080/JavaBridge/java/Java.inc"); java_require("foo.jar;bar.jar;..."); .. call your libraries .. ?> If it turns out that some procedures should be optimized, encapsulate the PHP code with the java_begin_document()/java_end_document() pair. This sends and executes the PHP code on the server side. This is nearly as fast as Java code. 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-17 18:10:02
|
Hi, first of all, thanks a lot for your help. which problems do you have with the PHP/Java Bridge? I think the most important problem I'm having is importing my libraries. For example, with the easiest exacmple I tried to use (my class Test), I don't understand how should I import the jar file that I made. I tried using for example: java_require("file://usr/local/apache2/htdocs/tests_java/Test.jar"); java_require("http://localhost/tests_java/Test.jar"); java_require("http://172.16.0.75/tests_java/Test.jar"); java_require("Test.jar"); And none of them seemed to work. Which would be the most appropiate way? > > > > VM: 3.4.3@http://gcc.gnu.org/java/ Where should I define the VM that php/java bridge will work with? I actually installed the Java J2SE JDK from Sun on my box on /opt/jdk_ ... and that path is the one I set on the java.ini file. In any case, please do not use @java_reset(), the > CLASSPATH. In which documentation have you found this? > > Also it should never ever be necessary to create a > wrapper Java library. The PHP/Java Bridge protocol is > efficient enough so that these wrappers are *entirely* > obsolete. Ok, I'll remove the java_reset() calls. I read about php/java bridge in man= y places and tried to 'mix' the examples I got. I shouldn't touch the CLASSPATH, right? I'm not sure about what you mean when you say wrappers. Thanks for your support. Regards, Andr=E9s Gattinoni |
From: <php...@li...> - 2007-03-17 11:39:29
|
Hi, which problems do you have with the PHP/Java Bridge? > java.lang.ClassNotFoundException: > com.intraway.framework.IpuConfigResponsible Well, just locate the Java library which exports the above class and then require it and its dependencies using the java require syntax. > VM: 3.4.3@http://gcc.gnu.org/java/ Also check if you Java VM can interpret the Java library (GNU java is not fully compatible with Java 1.4). If not, switch to IBM or Sun Java. In any case, please do not use @java_reset(), the CLASSPATH. In which documentation have you found this? Also it should never ever be necessary to create a wrapper Java library. The PHP/Java Bridge protocol is efficient enough so that these wrappers are *entirely* obsolete. Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2007-03-16 15:51:52
|
Hi there, I' just downloaded and installed php/java bridge on a RH4, Apache 2.0, PHP 5.1.4 environment and I'm trying to make it work. I just tried with a short script and I'm getting troubles to make it work. I'd appreciate any help. This is my java file: class Test { public Test () { System.out.println("Hi, Im the constructor"); } public String saySth () { return "Something stupid"; } public static void main (String[] args) { System.out.println("This is the main"); System.exit(0); } } I compiled it with javac and made the Test.jar file. I tried putting the jar file on: - /usr/local/apache2/htdocs/tests_java/ =DF my document root - /usr/shared/java/ I even added the first path to mi CLASSPATH environment variable using php'= s putenv function. Nothing seems to work. This is my PHP file: <? $CLASSPATH =3D getenv('CLASSPATH'); echo "LA ORIGINAL: <br>"; echo $CLASSPATH; echo "AGREGO EL PATH <br>"; $CLASSPATH .=3D ":/usr/local/apache2/htdocs/tests_java/test.jar"; putenv("CLASSPATH=3D".$CLASSPATH); $CLASSPATH =3D getenv('CLASSPATH'); echo "LA POSTA: <br>"; echo $CLASSPATH; @java_reset(); echo "<p><strong>Ejemplos de por ahi con clases propias de JAVA: </strong></p>"; // get instance of Java class java.lang.System in PHP $system =3D new Java('java.lang.System'); // demonstrate property access echo 'Java version=3D' . $system->getProperty('java.version') . '<br />'; echo 'Java vendor=3D' . $system->getProperty('java.vendor') . '<br />'; echo 'OS=3D' . $system->getProperty('os.name') . ' ' . $system->getProperty('os.version') . ' on ' . $system->getProperty('os.arch') . ' <br />'; // java.util.Date example $formatter =3D new Java('java.text.SimpleDateFormat', "EEEE, MMMM dd, yyyy 'at' h:mm:ss a zzzz"); echo java_values($formatter->format(new Java('java.util.Date'))); @java_reset(); echo "<p><strong>Gusto? Bueno, aca viene lo complicado... levantar MI clase</strong><p>"; try { java_require("http://172.16.0.75/tests_java/Test.jar"); }catch (JavaException $e) { if ($ex =3D java_last_exception_get()) { echo "<strong>JAVA EXCEPTION: NO PUDE LEVANTAR EL JAR </strong><br />"; echo java_values($ex->getMessage())."<br />"; } } try { $o =3D new Java("Test"); echo (string) $o->saySth(); } catch (JavaException $e) { if($ex=3Djava_last_exception_get()) { echo "<strong>JAVA EXCEPTION: </strong><br />"; echo java_values($ex->getMessage())."<br />"; } } @java_reset(); echo "<p><strong>A ver que pasa con IpuConfig</strong></p>"; try { $o =3D new Java("com.intraway.framework.IpuConfig"); $o->showXML(); } catch (JavaException $e) { if($ex =3D java_last_exception_get()) { echo "<strong>JAVA EXCEPTION: </strong><br />"; echo java_values($ex->getMessage())."<br />"; } } @java_reset(); ?> When I open that on my browser I get this: LA ORIGINAL: .:/usr/local/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/bin:/usr/= local/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/jboss- 4.0.1/client/jboss- client.jar:/usr/local/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/= jboss-4.0.1/client/jboss-common-client.jar:/usr/local/apache2/htdocs/Intraw= ayWS/clients/ip-unity/mereon-um/jboss-4.0.1/client/jboss-j2ee.jar:/usr/loca= l/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/jboss-4.0.1/client/j= np-client.jar:/usr/local/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-= um/jboss-4.0.1/client/log4j.jar:/usr/local/apache2/htdocs/IntrawayWS/client= s/ip-unity/mereon-um/jboss-4.0.1/client/jaas.jar:/usr/local/apache2/htdocs/= IntrawayWS/clients/ip-unity/mereon-um/jboss-4.0.1/client/jbosssx-client.jar= :/usr/local/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/jboss-4.0.= 1/client/jboss-transaction-client.jar:/usr/local/apache2/htdocs/IntrawayWS/= clients/ip-unity/mereon-um/jboss-4.0.1/client/jbossall-client.jar:/usr/loca= l/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/ipunity_web_classes/= UM-MP_WEB-3_1_5_1-0005_webmail_classes.jar:/usr/local/apache2/htdocs/Intraw= ayWS/clients/ip-unity/mereon-um/ipunity_web_classes/ipucommon.jar:/usr/loca= l/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/ipunity_web_classes/= mailAdmin.jar:/usr/local/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-= um/ipunity_web_classes/mail.jar:/usr/local/apache2/htdocs/IntrawayWS/client= s/ip-unity/mereon-um/ipunity_web_classes/um.jar:/usr/local/apache2/htdocs/I= ntrawayWS/clients/ip-unity/mereon-um/ipunity_web_classes/ipunity_fw.jar:/us= r/local/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/ipunity_web_cl= asses/ipunity_api.jar:/usr/local/apache2/htdocs/IntrawayWS/clients/ip-unity= /mereon-um/ipunity_web_classes/classes12.jar:/usr/local/apache2/htdocs/Intr= awayWS/clients/ip-unity/mereon-um/ipunity_web_classes/activation.jar:/usr/l= ocal/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/ipunity_web_class= es/servlet.jar:/usr/local/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon= -um/ipunity_web_classes/xalan.jar:/usr/local/apache2/htdocs/IntrawayWS/clie= nts/ip-unity/mereon-um/ipunity_web_classes/jazzy-core.jar:/usr/local/apache= 2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/conf:/opt/oracle/product/10.= 2.0/jdbc/lib/classes12.zip:.:/usr/local/apache2/htdocs/IntrawayWS/clients/i= p-unity/mereon-um/bin:/usr/local/apache2/htdocs/IntrawayWS/clients/ip-unity= /mereon-um/jboss-4.0.1/client/jboss-client.jar:/usr/local/apache2/htdocs/In= trawayWS/clients/ip-unity/mereon-um/jboss-4.0.1/client/jboss-common-client.= jar:/usr/local/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/jboss-4= .0.1/client/jboss-j2ee.jar:/usr/local/apache2/htdocs/IntrawayWS/clients/ip-= unity/mereon-um/jboss-4.0.1/client/jnp-client.jar:/usr/local/apache2/htdocs= /IntrawayWS/clients/ip-unity/mereon-um/jboss-4.0.1/client/log4j.jar:/usr/lo= cal/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/jboss-4.0.1/client= /jaas.jar:/usr/local/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/j= boss-4.0.1/client/jbosssx-client.jar:/usr/local/apache2/htdocs/IntrawayWS/c= lients/ip-unity/mereon-um/jboss-4.0.1/client/jboss-transaction-client.jar:/= usr/local/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/jboss-4.0.1/= client/jbossall-client.jar:/usr/local/apache2/htdocs/IntrawayWS/clients/ip-= unity/mereon-um/ipunity_web_classes/UM-MP_WEB-3_1_5_1-0005_webmail_classes.= jar:/usr/local/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/ipunity= _web_classes/ipucommon.jar:/usr/local/apache2/htdocs/IntrawayWS/clients/ip-= unity/mereon-um/ipunity_web_classes/mailAdmin.jar:/usr/local/apache2/htdocs= /IntrawayWS/clients/ip-unity/mereon-um/ipunity_web_classes/mail.jar:/usr/lo= cal/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/ipunity_web_classe= s/um.jar:/usr/local/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/ip= unity_web_classes/ipunity_fw.jar:/usr/local/apache2/htdocs/IntrawayWS/clien= ts/ip-unity/mereon-um/ipunity_web_classes/ipunity_api.jar:/usr/local/apache= 2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/ipunity_web_classes/classes1= 2.jar:/usr/local/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/ipuni= ty_web_classes/activation.jar:/usr/local/apache2/htdocs/IntrawayWS/clients/= ip-unity/mereon-um/ipunity_web_classes/servlet.jar:/usr/local/apache2/htdoc= s/IntrawayWS/clients/ip-unity/mereon-um/ipunity_web_classes/xalan.jar:/usr/= local/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/ipunity_web_clas= ses/jazzy-core.jar:/usr/local/apache2/htdocs/IntrawayWS/clients/ip-unity/me= reon-um/conf:/opt/oracle/product/10.2.0/jdbc/lib/classes12.zipAGREGOEL PATH LA POSTA: .:/usr/local/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/bin:/usr/= local/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/jboss- 4.0.1/client/jboss- client.jar:/usr/local/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/= jboss-4.0.1/client/jboss-common-client.jar:/usr/local/apache2/htdocs/Intraw= ayWS/clients/ip-unity/mereon-um/jboss-4.0.1/client/jboss-j2ee.jar:/usr/loca= l/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/jboss-4.0.1/client/j= np-client.jar:/usr/local/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-= um/jboss-4.0.1/client/log4j.jar:/usr/local/apache2/htdocs/IntrawayWS/client= s/ip-unity/mereon-um/jboss-4.0.1/client/jaas.jar:/usr/local/apache2/htdocs/= IntrawayWS/clients/ip-unity/mereon-um/jboss-4.0.1/client/jbosssx-client.jar= :/usr/local/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/jboss-4.0.= 1/client/jboss-transaction-client.jar:/usr/local/apache2/htdocs/IntrawayWS/= clients/ip-unity/mereon-um/jboss-4.0.1/client/jbossall-client.jar:/usr/loca= l/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/ipunity_web_classes/= UM-MP_WEB-3_1_5_1-0005_webmail_classes.jar:/usr/local/apache2/htdocs/Intraw= ayWS/clients/ip-unity/mereon-um/ipunity_web_classes/ipucommon.jar:/usr/loca= l/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/ipunity_web_classes/= mailAdmin.jar:/usr/local/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-= um/ipunity_web_classes/mail.jar:/usr/local/apache2/htdocs/IntrawayWS/client= s/ip-unity/mereon-um/ipunity_web_classes/um.jar:/usr/local/apache2/htdocs/I= ntrawayWS/clients/ip-unity/mereon-um/ipunity_web_classes/ipunity_fw.jar:/us= r/local/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/ipunity_web_cl= asses/ipunity_api.jar:/usr/local/apache2/htdocs/IntrawayWS/clients/ip-unity= /mereon-um/ipunity_web_classes/classes12.jar:/usr/local/apache2/htdocs/Intr= awayWS/clients/ip-unity/mereon-um/ipunity_web_classes/activation.jar:/usr/l= ocal/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/ipunity_web_class= es/servlet.jar:/usr/local/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon= -um/ipunity_web_classes/xalan.jar:/usr/local/apache2/htdocs/IntrawayWS/clie= nts/ip-unity/mereon-um/ipunity_web_classes/jazzy-core.jar:/usr/local/apache= 2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/conf:/opt/oracle/product/10.= 2.0/jdbc/lib/classes12.zip:.:/usr/local/apache2/htdocs/IntrawayWS/clients/i= p-unity/mereon-um/bin:/usr/local/apache2/htdocs/IntrawayWS/clients/ip-unity= /mereon-um/jboss-4.0.1/client/jboss-client.jar:/usr/local/apache2/htdocs/In= trawayWS/clients/ip-unity/mereon-um/jboss-4.0.1/client/jboss-common-client.= jar:/usr/local/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/jboss-4= .0.1/client/jboss-j2ee.jar:/usr/local/apache2/htdocs/IntrawayWS/clients/ip-= unity/mereon-um/jboss-4.0.1/client/jnp-client.jar:/usr/local/apache2/htdocs= /IntrawayWS/clients/ip-unity/mereon-um/jboss-4.0.1/client/log4j.jar:/usr/lo= cal/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/jboss-4.0.1/client= /jaas.jar:/usr/local/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/j= boss-4.0.1/client/jbosssx-client.jar:/usr/local/apache2/htdocs/IntrawayWS/c= lients/ip-unity/mereon-um/jboss-4.0.1/client/jboss-transaction-client.jar:/= usr/local/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/jboss-4.0.1/= client/jbossall-client.jar:/usr/local/apache2/htdocs/IntrawayWS/clients/ip-= unity/mereon-um/ipunity_web_classes/UM-MP_WEB-3_1_5_1-0005_webmail_classes.= jar:/usr/local/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/ipunity= _web_classes/ipucommon.jar:/usr/local/apache2/htdocs/IntrawayWS/clients/ip-= unity/mereon-um/ipunity_web_classes/mailAdmin.jar:/usr/local/apache2/htdocs= /IntrawayWS/clients/ip-unity/mereon-um/ipunity_web_classes/mail.jar:/usr/lo= cal/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/ipunity_web_classe= s/um.jar:/usr/local/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/ip= unity_web_classes/ipunity_fw.jar:/usr/local/apache2/htdocs/IntrawayWS/clien= ts/ip-unity/mereon-um/ipunity_web_classes/ipunity_api.jar:/usr/local/apache= 2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/ipunity_web_classes/classes1= 2.jar:/usr/local/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/ipuni= ty_web_classes/activation.jar:/usr/local/apache2/htdocs/IntrawayWS/clients/= ip-unity/mereon-um/ipunity_web_classes/servlet.jar:/usr/local/apache2/htdoc= s/IntrawayWS/clients/ip-unity/mereon-um/ipunity_web_classes/xalan.jar:/usr/= local/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/ipunity_web_clas= ses/jazzy-core.jar:/usr/local/apache2/htdocs/IntrawayWS/clients/ip-unity/me= reon-um/conf:/opt/oracle/product/10.2.0/jdbc/lib/classes12.zip:/usr/local/a= pache2/htdocs/tests_java/test.jar *Ejemplos de por ahi con clases propias de JAVA: * Java version=3D3.4.3 Java vendor=3DFree Software Foundation, Inc. OS=3DLinux 2.6.9-5.EL on i686 Friday, March 16, 2007 at 12:28:45 PM GMT-03:00 *Gusto? Bueno, aca viene lo complicado... levantar MI clase* *JAVA EXCEPTION: * CreateInstance failed: new Test. Cause: java.lang.ClassNotFoundException: Test Responsible VM: 3.4.3@http://gcc.gnu.org/java/ *A ver que pasa con IpuConfig* *JAVA EXCEPTION: * CreateInstance failed: new com.intraway.framework.IpuConfig. Cause: java.lang.ClassNotFoundException: com.intraway.framework.IpuConfigResponsible VM: 3.4.3@http://gcc.gnu.org/java/ So=85 the extension works fine. I can use java's own classes, but the probl= em comes when I want to use my own. I'm not much of a Java programmer but I've been working with PHP for quite = a long time now. Could you give me any hint on how to get this to work? Thanx Andr=E9s Gattinoni |
From: <php...@li...> - 2007-03-14 12:05:42
|
Dear Jost, thank you very much for your detailed answers. With the J2EE one it is now working without problems. Btw. I used the FC6 package, as I read in one tutorial (FC4) that I can use this package also with Linux. Anyhow, we clarified everything now, it works! Thx again for your work. Daniel -- Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten Browser-Versionen downloaden: http://www.gmx.net/de/go/browser |
From: <php...@li...> - 2007-03-14 10:55:16
|
Hi Daniel, > Suse Linux 10.1 is installed. afaik there is no binary RPM available for Novell/Suse Linux, so you need to compile from source or use the J2EE binary instead. > I downloaded the package from SF, installed it via > Package Manager and moved the files into the > extension directory. I don't know which RPM you've installed, but the RedHat RPM will only work on RedHat based Linux distributions (Fedora, Centos, ...). There are other RPM packages available for Mandrake etc. In practice you need to move the java.so to the php extension directory and set the java.hosts and java.servlet (to connect to an external J2EE server) or java.java and java.home (to start an internal Java process). > The php.ini contains the following values for Java: > [Java] > extension=java.so This uses the default settings: it starts the compiled, native back end which doesn't need any java installed on the system. -- RedHat ships with gcj ("GNU Java") as the default "Java" implementation. > What is the file "RunJavaBridge" for? It is a Security Enhanced Linux wrapper which manages the domain transition from http_t to javabridge_t. It is irrelevant for you because Novell/Suse Linux doesn't support Security Enhanced Linux. -- At the moment only RedHat based distributions (and some experimental Debian distributions) support Security Enhanced Linux. Please see the SEL web page from the NSA or RedHat for details. > an executable, but how can I use it? Try start RunJavaBridge, it should display a discription. > Any help to get the Bridge running on my system is > appreciated. Well, since your distribution doesn't support any Linux specific enhancements anyway (no SEL, GNU Java, ...), you can ignore the Linux package and use the standard J2EE package instead. Start a Java process (for example from a service script) as follows: java -jar JavaBridge.jar SERVLET_LOCAL:8080 To access Java from any PHP script use the following code: <? require_once("http://localhost:8080/JavaBridge/java/Java.inc"); $s = new Java("java.lang.String", "hello"); echo $s; ?> Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2007-03-13 19:36:00
|
Hi all, I already installed the bridge on my test environment on a Windows Machine. That worked like a charm. Now I want to go live on a Linux machine, on which Suse Linux 10.1 is installed. PHP Version is 5.2.1 as part of the XAMPP-Package (which also contains the apache Webserver) I downloaded the package from SF, installed it via Package Manager and moved the files into the extension directory. The php.ini contains the following values for Java: [Java] extension=java.so After restart of apache, I cannot run phpinfo(), as I only get the test.php file for downloading. I haven't found a updated documentation for Linux-install. What is the file "RunJavaBridge" for? It seems to be an executable, but how can I use it? Any help to get the Bridge running on my system is appreciated. Best regards Daniel Preis -- "Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ... Jetzt GMX TopMail testen: www.gmx.net/de/go/mailfooter/topmail-out |
From: <php...@li...> - 2007-03-10 02:02:47
|
Testing mailing list |
From: <php...@li...> - 2007-03-08 13:54:29
|
> java -jar JavaBridge.jar SERVLET:8101 > require_once("C:\\opt\JavaBridge\java\java.inc"); Use require_once("http://localhost:8101/JavaBridge/java/Java.inc"); instead. If you want to use the local Java.inc, change the option JAVA.SERVLET from 8080 to 8101 (see C:\\opt\JavaBridge\java\Options.inc). 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-08 13:10:36
|
Hello, I am trying to install the php/java bridge in WindowsXP with the pure PHP method. Here is what I have. * Apache Web Server 2.0 * PHP 5.2.0 * php/Java Bridge 4.0.1 Here is what I am doing: java -jar JavaBridge.jar SERVLET:8101 Then I have a test.php file that is in the apache root dir that has the following: <?php require_once("C:\\opt\JavaBridge\java\java.inc"); $system = new Java'java.lang.System'); ?> This fails with an error in apache's log (java_runtimeException with message named-pipe communication not implemented .... I know I don't have something setup correctly. Any hints? Thanks -- Michael Speth 石雨濛 Computer Engineer OPNET http://www.opnet.com |