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-05-31 15:44:09
|
After upgrading from 3.0.7 to 4.0.7, it looks like I can't use foreach() over a HashSet. It implements Collection, so in theory, it should work (it used to), but a NoSuchMethodException is thrown over a call to "getIterator". HashSet has an iterator() method (like all Collections), so I'm curious why the Bridge is attempting to call getIterator() on my behalf. Exception pasted below. Thanks for your help, Jonathan [[o:Exception]:"java.lang.Exception: Invoke failed: [[o:HashSet]]->getIterator. Cause: java.lang.NoSuchMethodException: getIterator(). Candidates: [] Responsible VM: 1.5.0_08@http://java.sun.com/" at: #-5 php.java.bridge.JavaBridge.Invoke(JavaBridge.java:1106) #-4 php.java.bridge.Request.handleRequest(Request.java:342) #-3 php.java.bridge.Request.handleRequests(Request.java:388) #0 http://localhost:8080/JavaBridge/java/Java.inc(151): java_ThrowExceptionProxyFactory->getProxy(50, true) #1 http://localhost:8080/JavaBridge/java/Java.inc(304): java_Arg->getResult(true) #2 http://localhost:8080/JavaBridge/java/Java.inc(310): java_Client->getWrappedResult(true) #3 http://localhost:8080/JavaBridge/java/Java.inc(489): java_Client->getResult() #4 http://localhost:8080/JavaBridge/java/Java.inc(735): java_Client->invokeMethod(49, 'getIterator', Array) #5 http://localhost:8080/JavaBridge/java/Java.inc(853): java_JavaProxy->__call('getIterator', Array) #6 http://localhost:8080/JavaBridge/java/Java.inc(886): Java->__call('getIterator', Array) #7 C:\deploy\merged\php-client\IndivoAPI.class.php(974): JavaObject->getIterator() #8 C:\deploy\merged\php-client\IndivoAPI.class.php(932): IndivoAPI->updateDocument('d961ccb2-a7ca-4...', 'usr4038835@indi...', 'usr4038835@indi...', Object(java_InternalJavaObject), 'urn:org:indivo:...', '0597a897-d50f-4...') #9 C:\websites\indivo\phplib\personal.function.php(298): IndivoAPI->updateDocumentWithObject('d961ccb2-a7ca-4...', 'usr4038835@indi...', 'Sample User', 'patient', 'usr4038835@indi...', Object(java_InternalJavaObject), 'urn:org:indivo:...', '0597a897-d50f-4...') #10 [internal function]: saveDemographics(Array) #11 C:\websites\indivo\phplib\xajax_0.2.4\xajax.inc.php(997): call_user_func_array('saveDemographic...', Array) #12 C:\websites\indivo\phplib\xajax_0.2.4\xajax.inc.php(656): xajax->_callFunction('saveDemographic...', Array) #13 C:\websites\indivo\viewer.php(19): xajax->processRequests(true) #14 {main}] |
From: <php...@li...> - 2007-05-31 07:22:38
|
Hi, > Is it expected behavior that > Integers, Floats, > Doubles, and Longs need to be converted with > java_values() before being > used in a PHP context? not that I know of. The PHP/Java Bridge protocol shouldn't touch integral types(integer, boolean, ...). BTW: The bridge doesn't convert anything. A java.lang.String and a java.lang.Integer is not converted (unless you use the deprecated php 4 java.so). What you probably mean is: How are objects displayed? The standard procedure is ObjectToString(Object ob), see JavaBridge.java, which displays all objects as [o(Type):StringRepresentation]. The only exception is the String type, there exists a method ObjectToString(String ob) which displays the object as "StringRepresentation". We could remove the ObjectToString(String o) and modify ObjectToString(Object o) so that o->toString() is called for any object. But you need to convince me that such a behaviour is useful. :) > $integer = new Java('java.lang.Integer', 123); > // displays [[o:Integer]:"123"] Well Integer is an object, not primitive type. Isn't it possible to pull the integer value from the above Integer object and display that? For example: echo $Integer->getIntValue(); should display 123. > // displays notice "could not be converted to int" > if ($integer == 123) echo 'equal'; else That's why I'd like to keep the current behaviour. Your $integer is a java object, not a primitive type. Displaying it as "123" will make the debugging process more difficult. However, you are probably upgrading from PHP4, where autoconversion was the default behavour. There is a protocol header option. 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-05-30 12:11:50
|
Hi, I have created a ticket for this: => http://sourceforge.net/tracker/index.php?func=detail&aid=1727393&group_id=117793&atid=679233 > Anyways, this: > > It should occur in all Tomcat versions < 6. > probably ain't exactly true - as I'm still using > Tomcat 5.5, and > upgrading to Ubuntu 7.04 and PHP 5.2 resolved the > problems for now. You probably use an old version of the bridge. It is broken in all PHP/Java Bridge versions >= 4.0.1. The bridge versions > 4.0.1 capture the thread context class loader and use it for all shared web contexts (see Util.getContextClassLoader()). Furthermore the bridge doesn't pass the current class loader to the ContextRunners anymore. I have created a fix for this and will attach a SharedPhpJavaBridge.jar at the end of the above ticket. We will merge the SharedPhpJavaBridge.jar with the ordinary JavaBridge.jar after 4.0.8 is released. Regards, Jost Boekemeier Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s mit dem neuen Yahoo! Mail. www.yahoo.de/mail |
From: <php...@li...> - 2007-05-29 20:44:48
|
Jost, Thank you very much for investigating into this. Thanks, sincerely, for providing and maintaining the PHP-Java-Bridge. I'm just an ordinary user who's, at times, like now, doing overwork to get his tasks done, and it's hard for me to get into details that are not complementary to my actual tasks. I'd like to apologize for that. Anyways, this: > It should occur in all Tomcat versions < 6. probably ain't exactly true - as I'm still using Tomcat 5.5, and upgrading to Ubuntu 7.04 and PHP 5.2 resolved the problems for now. However, I understand the JavaBridge JARs shouldn't be placed into folders shared by multiple Java or Tomcat applications per default. PHP-Java-Bridge is an amazing piece of software, and I'm really thankful you're providing it. Thanks again, high regards, and best of luck Robert php...@li... wrote: > Hi, > > first of all thank you very much for the bug report. > > We could reproduce the problem that, when the PHP/Java > Bridge is installed in the shared directory, as > described in our FAQ, all classes are loaded via the > same webapp classloader. > > We currently don't have a workaround for this tomcat > problem. > > However, this isn't a bug in the PHP/Java Bridge code, > so we won't fix this problem, even though it is > serious. > > > >> What happens is, webapp1 will access the property >> file of webapp2! >> > > Yes. When the JavaBridge.jar and php-servlet.jar are > loaded from the shared web folder, tomcat loads all > classes from the same web classloader. This is almost > certainly a tomcat bug. > > >> occurs is Ubuntu 6.10, PHP 5.x) the problem does >> *not* occur. >> > > It should occur in all Tomcat versions < 6. > > > >> When I run the same Java classes from a JSP, the >> right properties file >> will be accessed. >> > > JSP is different. It compiles Java source files to > Java byte code and then invokes the byte code from a > separate classloader. The PHP/Java Bridge could do the > same to work around the above problem. > > In the meantime please do not copy the JavaBridge.jar > and php-servlet.jar into the shared tomcat directory. > > > Regards, > Jost Boekemeier > > > > __________________________________ Kennt man wirklich jeden über 3 Ecken? Die Antworten gibt's bei Yahoo! Clever. www.yahoo.de/clever > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > > |
From: <php...@li...> - 2007-05-29 18:10:24
|
With strings, that is. Is it expected behavior that Integers, Floats, Doubles, and Longs need to be converted with java_values() before being used in a PHP context? For example, $integer =3D new Java('java.lang.Integer', 123); // displays [[o:Integer]:"123"] echo $integer; // displays notice "could not be converted to int" and 'not equal' if ($integer =3D=3D 123) echo 'equal'; else echo 'not equal'; // displays 123 echo java_values($integer); // displays 'equal' if (java_values($integer) =3D=3D 123) echo 'equal'; else echo 'not equal'; =20 Thanks for your help, Jonathan Abbett > -----Original Message----- > From: php...@li...=20 > [mailto:php...@li...]=20 > On Behalf Of php...@li... > Sent: Tuesday, May 29, 2007 11:14 AM > To: php...@li... > Subject: Re: [Php-java-bridge-users] java_values? >=20 > I just upgraded to 5.2.2, and have confirmed that the problem=20 > is fixed. > Thanks!=20 >=20 >=20 > > -----Original Message----- > > From: php...@li...=20 > > [mailto:php...@li...]=20 > > On Behalf Of php...@li... > > Sent: Saturday, May 26, 2007 6:42 AM > > To: php...@li... > > Subject: Re: [Php-java-bridge-users] java_values? > >=20 > > Hi Jonathan, > >=20 > > the bug described below has been fixed in PHP version > > 5.2.0 and above. (I am not sure, but I think PHP 5.1.6 > > contains the same fix). > >=20 > > Please use this version instead. > >=20 > >=20 > > > These echoes, however, do not: > > >=20 > > > $string =3D new Java('java.lang.String', 'abc'); > > > echo "This is my $string" . "\n"; > > > echo "This is my " . $string . "\n"; > > > echo $string " is my string" . "\n"; > > >=20 > > > The result I see is: > > >=20 > > > This is my Object id #30 > > > This is my Object id #30 > > > Object id #30 is my string > >=20 > > Yes, that was a known bug in the PHP engine. It > > appeared in all PHP 5 versions from 5.0.0 to 5.1.5. > >=20 > >=20 > > > The result is similar with other object types.=20 > > > Echoing just a boolean > > > object gives [[o:Boolean]:"true"], but concatenating > > > it with a string > > > gives "Object id #1 is my boolean". > >=20 > > It should display: [[o:Boolean]:"true"] is my boolean. > >=20 > > If you don't want to upgrade to PHP 5.2.x or at least > > 5.1.6, please use the "java.so" or "php_java.dll" from > > the php-java-bridge-legacy download. It contains a > > piece of C code which works around this problem. > >=20 > >=20 > > Regards, > > Jost Boekemeier >=20 >=20 > -------------------------------------------------------------- > ----------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users >=20 >=20 |
From: <php...@li...> - 2007-05-29 15:14:03
|
I just upgraded to 5.2.2, and have confirmed that the problem is fixed. Thanks!=20 > -----Original Message----- > From: php...@li...=20 > [mailto:php...@li...]=20 > On Behalf Of php...@li... > Sent: Saturday, May 26, 2007 6:42 AM > To: php...@li... > Subject: Re: [Php-java-bridge-users] java_values? >=20 > Hi Jonathan, >=20 > the bug described below has been fixed in PHP version > 5.2.0 and above. (I am not sure, but I think PHP 5.1.6 > contains the same fix). >=20 > Please use this version instead. >=20 >=20 > > These echoes, however, do not: > >=20 > > $string =3D new Java('java.lang.String', 'abc'); > > echo "This is my $string" . "\n"; > > echo "This is my " . $string . "\n"; > > echo $string " is my string" . "\n"; > >=20 > > The result I see is: > >=20 > > This is my Object id #30 > > This is my Object id #30 > > Object id #30 is my string >=20 > Yes, that was a known bug in the PHP engine. It > appeared in all PHP 5 versions from 5.0.0 to 5.1.5. >=20 >=20 > > The result is similar with other object types.=20 > > Echoing just a boolean > > object gives [[o:Boolean]:"true"], but concatenating > > it with a string > > gives "Object id #1 is my boolean". >=20 > It should display: [[o:Boolean]:"true"] is my boolean. >=20 > If you don't want to upgrade to PHP 5.2.x or at least > 5.1.6, please use the "java.so" or "php_java.dll" from > the php-java-bridge-legacy download. It contains a > piece of C code which works around this problem. >=20 >=20 > Regards, > Jost Boekemeier |
From: <php...@li...> - 2007-05-29 10:09:04
|
Hi, first of all thank you very much for the bug report. We could reproduce the problem that, when the PHP/Java Bridge is installed in the shared directory, as described in our FAQ, all classes are loaded via the same webapp classloader. We currently don't have a workaround for this tomcat problem. However, this isn't a bug in the PHP/Java Bridge code, so we won't fix this problem, even though it is serious. > What happens is, webapp1 will access the property > file of webapp2! Yes. When the JavaBridge.jar and php-servlet.jar are loaded from the shared web folder, tomcat loads all classes from the same web classloader. This is almost certainly a tomcat bug. > occurs is Ubuntu 6.10, PHP 5.x) the problem does > *not* occur. It should occur in all Tomcat versions < 6. > When I run the same Java classes from a JSP, the > right properties file > will be accessed. JSP is different. It compiles Java source files to Java byte code and then invokes the byte code from a separate classloader. The PHP/Java Bridge could do the same to work around the above problem. In the meantime please do not copy the JavaBridge.jar and php-servlet.jar into the shared tomcat directory. Regards, Jost Boekemeier __________________________________ Kennt man wirklich jeden über 3 Ecken? Die Antworten gibt's bei Yahoo! Clever. www.yahoo.de/clever |
From: <php...@li...> - 2007-05-29 10:06:52
|
Hi, first of all thank you very much for the bug report. We could reproduce the problem that, when the PHP/Java Bridge is installed in the shared directory, as described in our FAQ, all classes are loaded via the same webapp classloader. We currently don't have a workaround for this tomcat problem. However, this isn't a bug in the PHP/Java Bridge code, so we won't fix this problem, even though it is serious. > What happens is, webapp1 will access the property > file of webapp2! Yes. When the JavaBridge.jar and php-servlet.jar are loaded from the shared web folder, tomcat loads all classes from the same web classloader. This is almost certainly a tomcat bug. > occurs is Ubuntu 6.10, PHP 5.x) the problem does > *not* occur. It should occur in all Tomcat versions < 6. > When I run the same Java classes from a JSP, the > right properties file > will be accessed. JSP is different. It compiles Java source files to Java byte code and then invokes the byte code from a separate classloader. The PHP/Java Bridge could do the same to work around the above problem. In the meantime please do not copy the JavaBridge.jar and php-servlet.jar into the shared tomcat directory. Regards, Jost Boekemeier Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s mit dem neuen Yahoo! Mail. www.yahoo.de/mail |
From: <php...@li...> - 2007-05-26 10:41:57
|
Hi Jonathan, the bug described below has been fixed in PHP version 5.2.0 and above. (I am not sure, but I think PHP 5.1.6 contains the same fix). Please use this version instead. > These echoes, however, do not: > > $string = new Java('java.lang.String', 'abc'); > echo "This is my $string" . "\n"; > echo "This is my " . $string . "\n"; > echo $string " is my string" . "\n"; > > The result I see is: > > This is my Object id #30 > This is my Object id #30 > Object id #30 is my string Yes, that was a known bug in the PHP engine. It appeared in all PHP 5 versions from 5.0.0 to 5.1.5. > The result is similar with other object types. > Echoing just a boolean > object gives [[o:Boolean]:"true"], but concatenating > it with a string > gives "Object id #1 is my boolean". It should display: [[o:Boolean]:"true"] is my boolean. If you don't want to upgrade to PHP 5.2.x or at least 5.1.6, please use the "java.so" or "php_java.dll" from the php-java-bridge-legacy download. It contains a piece of C code which works around this problem. Regards, Jost Boekemeier __________________________________ Yahoo! Clever - Der einfachste Weg, Fragen zu stellen und Wissenswertes mit Anderen zu teilen. www.yahoo.de/clever |
From: <php...@li...> - 2007-05-25 14:17:22
|
I've isolated the problem a bit more. This works properly: $string =3D new Java('java.lang.String', 'abc'); // prints 'abc' echo $string; These echoes, however, do not: $string =3D new Java('java.lang.String', 'abc'); echo "This is my $string" . "\n"; echo "This is my " . $string . "\n"; echo $string " is my string" . "\n"; The result I see is: This is my Object id #30 This is my Object id #30 Object id #30 is my string The result is similar with other object types. Echoing just a boolean object gives [[o:Boolean]:"true"], but concatenating it with a string gives "Object id #1 is my boolean". Thanks for your help, Jonathan System Details: Java Bridge 4.0.7 Apache/2.0.55 (Win32) PHP/5.1.6 =20 > -----Original Message----- > From: php...@li...=20 > [mailto:php...@li...]=20 > On Behalf Of php...@li... > Sent: Wednesday, May 23, 2007 4:54 AM > To: php...@li... > Subject: Re: [Php-java-bridge-users] java_values? >=20 > Hi Jonathan, >=20 > how does the code look like?=20 >=20 > Why is the cast necessary, anyway? The zend engine > automatically converts a Java object into a PHP > object. >=20 >=20 > Regards, > Jost Boekemeier >=20 >=20 |
From: <php...@li...> - 2007-05-24 19:05:16
|
Hi, > java.class.path=... this is probably a misunderstanding. Neither gcj ("GNU Java") nor the PHP/Java Bridge support such an option. In which documentation have you found it? When you use gcj, you usually compile your java library to native code (into a shared libary) and link it into the running php interpreter. Please see the Linux lucene or itext example libs. However, I recommend to use the J2EE server or servlet engine as a back end and to use the pure PHP/Java implementation of the bridge. Depending on your PHP version (php4 or php5.0) you will also need to download the legacy binary ("java.so" or "php_java.dll"). This binary is obsolete since php 5.1.4, of course. In any case, the java_require() procedure allows you to link your Java libraries or native code into the running PHP binary, please see our documentation for details. Regards, Jost Boekemeier __________________________________ Yahoo! Clever - Der einfachste Weg, Fragen zu stellen und Wissenswertes mit Anderen zu teilen. www.yahoo.de/clever |
From: <php...@li...> - 2007-05-24 14:03:44
|
What does <?php if(!extension_loaded("java")) require_once("http://localhost:8080/JavaBridge/java/Java.inc"); java_require("yourMercantLibrary.jar"); $Merchant=new JavaClass("com.opus.epg.sfa.java.Merchant"); echo $Merchant; ?> display? > Yes I have and it is in proper class path and also Unlikely. __________________________________ Yahoo! Clever: Sie haben Fragen? Yahoo! Nutzer antworten Ihnen. www.yahoo.de/clever |
From: <php...@li...> - 2007-05-24 13:39:44
|
Yes I have and it is in proper class path and also edit php.ini file also .but it is not reading from the application > I mean: Did you require the java libraries you need? > > If so, you shouldn't get a ClassNotFoundException. > > > > Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen > SieŽs mit dem neuen Yahoo! Mail. www.yahoo.de/mail > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > -- Thanks and Regards Sharad Singh Sr. Project Associate EE, IIT Kanpur Mob:+91- 9450 328 117 website: http://www.brihaspatisolutions.co.in Accessing Brihaspati: http://202.141.40.217:8080/brihaspati/servlet/brihaspati Login:guest Password: guest |
From: <php...@li...> - 2007-05-24 13:20:42
|
I mean: Did you require the java libraries you need? If so, you shouldn't get a ClassNotFoundException. Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s mit dem neuen Yahoo! Mail. www.yahoo.de/mail |
From: <php...@li...> - 2007-05-24 12:41:01
|
I could not understand your meaning ,Plz can you write it in detail. >> i did put the jar in >> extension directory > > Then java_require("yourJar.jar;...") should work. > > > __________________________________ Yahoo! Clever: Stellen Sie > Fragen und finden Sie Antworten. Teilen Sie Ihr Wissen. > www.yahoo.de/clever > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > -- Thanks and Regards Sharad Singh Sr. Project Associate EE, IIT Kanpur Mob:+91- 9450 328 117 website: http://www.brihaspatisolutions.co.in Accessing Brihaspati: http://202.141.40.217:8080/brihaspati/servlet/brihaspati Login:guest Password: guest |
From: <php...@li...> - 2007-05-24 12:16:24
|
> i did put the jar in > extension directory Then java_require("yourJar.jar;...") should work. __________________________________ Yahoo! Clever: Stellen Sie Fragen und finden Sie Antworten. Teilen Sie Ihr Wissen. www.yahoo.de/clever |
From: <php...@li...> - 2007-05-24 12:05:33
|
No I am using gcj java and php ,i did put the jar in extension directory , >> Warning: java.lang.ClassNotFoundException: > > I think you forgot to require the .jar file(s). > > I usually keep the java libraries in the $HOME/libs > directory, this is easier than require'ing the > libraries for each php script. > > > > > > > > > ___________________________________________________________ > Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: > http://mail.yahoo.de > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > -- Thanks and Regards Sharad Singh Sr. Project Associate EE, IIT Kanpur Mob:+91- 9450 328 117 website: http://www.brihaspatisolutions.co.in Accessing Brihaspati: http://202.141.40.217:8080/brihaspati/servlet/brihaspati Login:guest Password: guest |
From: <php...@li...> - 2007-05-24 12:01:18
|
> Warning: java.lang.ClassNotFoundException: I think you forgot to require the .jar file(s). I usually keep the java libraries in the $HOME/libs directory, this is easier than require'ing the libraries for each php script. ___________________________________________________________ Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de |
From: <php...@li...> - 2007-05-24 11:25:09
|
Hi, > The problem has been solved by upgrading Ubuntu from > 6.10 to 7.04, and > PHP from 5.1.6 to 5.2.1. not so fast, please. :) First of all, it seems that you have copied the JavaBridge.jar and php-script.jar into the tomcat shared lib folder. This means that the same JavaBridge instance is responsible for all your web applications. In such a setup it is certainly possible to access classes from a sibling context. However, the bridge passes the current web context via the protocol request header. Can you please open a problem report and set the log level to 6: export JAVA_OPTS="-Dphp.java.bridge.default_log_level=6" /opt/jakarta-tomcat*/bin/catalina.sh run And attach the log at the end of the ticket? We will look at this issue asap. Regards, Jost Boekemeier Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s mit dem neuen Yahoo! Mail. www.yahoo.de/mail |
From: <php...@li...> - 2007-05-24 10:33:31
|
Hi to all I have installed properly php-java bridge and also test the testjava.php file , Its working fine.Now I did edit php.ini file with some jar like this. java.class.path=/usr/local/lib/php/extensions/no-debug-non-zts-20020429/sfa.jar:/usr/local/lib/php/extensions/no-debug-non-zts-20020429/servlet.jar:/usr/local/lib/php/extensions/no-debug-non-zts-20020429/jnet.jar:/usr/local/lib/php/extensions/no-debug-non-zts-20020429/jcert.jar:/usr/local/lib/php/extensions/no-debug-non-zts-20020429/jsse.jar:/usr/local/lib/php/extensions/no-debug-non-zts-20020429/cryptix32.jar and put the jar in proper directory of php.but when I am running my php application i am getting this error. Warning: java.lang.ClassNotFoundException: com.opus.epg.sfa.java.BillToAddress in /home/odrindia/public_html/icici_payment/php/Sfa/PostLibPHP.php on line 88 Warning: java.lang.ClassNotFoundException: com.opus.epg.sfa.java.ShipToAddress in /home/odrindia/public_html/icici_payment/php/Sfa/PostLibPHP.php on line 89 Warning: java.lang.ClassNotFoundException: com.opus.epg.sfa.java.Merchant in /home/odrindia/public_html/icici_payment/php/Sfa/PostLibPHP.php on line 90 Warning: java.lang.ClassNotFoundException: com.opus.epg.sfa.java.MPIData in /home/odrindia/public_html/icici_payment/php/Sfa/PostLibPHP.php on line 91 Warning: java.lang.ClassNotFoundException: com.opus.epg.sfa.java.CardInfo in /home/odrindia/public_html/icici_payment/php/Sfa/PostLibPHP.php on line 92 Warning: java.lang.ClassNotFoundException: com.opus.epg.sfa.java.PGResponse in /home/odrindia/public_html/icici_payment/php/Sfa/PostLibPHP.php on line 93 Warning: java.lang.ClassNotFoundException: com.opus.epg.sfa.java.PostLib in /home/odrindia/public_html/icici_payment/php/Sfa/PostLibPHP.php on line 94 Fatal error: Call to a member function on a non-object in /home/odrindia/public_html/icici_payment/php/Sfa/PostLibPHP.php on line 124 Can anybody siggest me why this is happening.. -- Thanks and Regards Sharad Singh Sr. Project Associate EE, IIT Kanpur Mob:+91- 9450 328 117 website: http://www.brihaspatisolutions.co.in Accessing Brihaspati: http://202.141.40.217:8080/brihaspati/servlet/brihaspati Login:guest Password: guest |
From: <php...@li...> - 2007-05-24 10:27:30
|
The problem has been solved by upgrading Ubuntu from 6.10 to 7.04, and PHP from 5.1.6 to 5.2.1. Thanks php...@li... wrote: > Hi. Since this is my first posting at this mailing list, I'd like to > thank you for providing and maintaing the PHP-Java-Bridge. > > I'm using PHP-Java-Bridge version 4.0.1 (PHP 5.x & 5.2.1, Sun Java > 1.5.x, Tomcat 5.5.x, Ubuntu 6.10 & 7.04). > > There are Tomcat webapps which are almost identical -- one Java > properties file differs, running under the same instance of Tomcat. > > Now, a PHP file in webapp1instantiates a new Java class of mine, which > in turn calls a static Java class of mine, which again reads that > properties file: > ResourceBundle.getBundle("myProps").getString(key); > myProps is WEB-INF/classes/myProps.properties. > > What happens is, webapp1 will access the property file of webapp2! > > If webapp2 is undeployed, webapp1 will use its own property file again. > I've confirmed this behavior on a clean installation/copy of Tomcat (the > same effects, but here, webapp2 will use webapp1's properties file). > On another computer (Ubuntu 7.04, PHP 5.2.1) (the one where the problem > occurs is Ubuntu 6.10, PHP 5.x) the problem does *not* occur. > The Java classes involved (but JavaBridge.jar, which is in the > $CLASSPATH) are all in WEB-INF/classes, only. > > When I run the same Java classes from a JSP, the right properties file > will be accessed. > > Any ideas? > > Thanks > Robert > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > > |
From: <php...@li...> - 2007-05-23 16:49:22
|
Hi. Since this is my first posting at this mailing list, I'd like to thank you for providing and maintaing the PHP-Java-Bridge. I'm using PHP-Java-Bridge version 4.0.1 (PHP 5.x & 5.2.1, Sun Java 1.5.x, Tomcat 5.5.x, Ubuntu 6.10 & 7.04). There are Tomcat webapps which are almost identical -- one Java properties file differs, running under the same instance of Tomcat. Now, a PHP file in webapp1instantiates a new Java class of mine, which in turn calls a static Java class of mine, which again reads that properties file: ResourceBundle.getBundle("myProps").getString(key); myProps is WEB-INF/classes/myProps.properties. What happens is, webapp1 will access the property file of webapp2! If webapp2 is undeployed, webapp1 will use its own property file again. I've confirmed this behavior on a clean installation/copy of Tomcat (the same effects, but here, webapp2 will use webapp1's properties file). On another computer (Ubuntu 7.04, PHP 5.2.1) (the one where the problem occurs is Ubuntu 6.10, PHP 5.x) the problem does *not* occur. The Java classes involved (but JavaBridge.jar, which is in the $CLASSPATH) are all in WEB-INF/classes, only. When I run the same Java classes from a JSP, the right properties file will be accessed. Any ideas? Thanks Robert |
From: <php...@li...> - 2007-05-23 08:53:47
|
Hi Jonathan, how does the code look like? Why is the cast necessary, anyway? The zend engine automatically converts a Java object into a PHP object. Regards, Jost Boekemeier __________________________________ Yahoo! Clever - Der einfachste Weg, Fragen zu stellen und Wissenswertes mit Anderen zu teilen. www.yahoo.de/clever |
From: <php...@li...> - 2007-05-22 17:47:53
|
I'm finally upgrading my PHP code from Java Bridge 3.0.7 to 4.0.7, and the biggest change that I think I need to do is start using java_values() to convert Java objects into their PHP equivalents. I've converted over a small fraction of my code using java_values(), and it's working fine, but I'm dreading this migration process.... hunting down every little Java object that used to be cast into PHP automatically and then explicitly coverting it. Is this absolutely necessary? Can I turn on some option so the Bridge can continue to do it for me automatically? Thanks for your help, Jonathan Abbett =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Jonathan Abbett Children's Hospital Informatics Program 1 Autumn Street, Fifth Floor Boston, MA 02215 617-355-8334 jon...@ch... http://www.chip.org |
From: <php...@li...> - 2007-05-21 10:37:57
|
Hi, it may make sense to restructure the download area: * legacy: Contains legacy binaries for old PHP implementations (php4 or php 5.0.x). * binary: Contains a binary for all operating systems and PHP implementations * linux example libraries: Contains java libraries translated into PHP PEAR classes. They don't need java anymore. * linux RPM packages: Contains RPM binaries for RedHat or compatibles (Fedora, WhiteBox, ...) * linux Debian packages: Contains DEB binaries for Debian or compatibles (Ubuntu, ...) * source: Contains the source download (obsolete) > while keytool command is > not available AFAIK "keytool" is part of the Sun JDK (not JRE). Regards, Jost Boekemeier __________________________________ Yahoo! Clever - Der einfachste Weg, Fragen zu stellen und Wissenswertes mit Anderen zu teilen. www.yahoo.de/clever |