You can subscribe to this list here.
2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(6) |
Oct
(6) |
Nov
(8) |
Dec
(2) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
(19) |
Feb
(15) |
Mar
(10) |
Apr
(8) |
May
(7) |
Jun
(9) |
Jul
(13) |
Aug
(31) |
Sep
(111) |
Oct
(52) |
Nov
(72) |
Dec
(42) |
2006 |
Jan
(21) |
Feb
(32) |
Mar
(33) |
Apr
(24) |
May
(15) |
Jun
(40) |
Jul
(32) |
Aug
(19) |
Sep
(38) |
Oct
(37) |
Nov
(63) |
Dec
(37) |
2007 |
Jan
(18) |
Feb
(39) |
Mar
(69) |
Apr
(49) |
May
(71) |
Jun
(59) |
Jul
(71) |
Aug
(85) |
Sep
(46) |
Oct
(14) |
Nov
(25) |
Dec
(56) |
2008 |
Jan
(24) |
Feb
(77) |
Mar
(104) |
Apr
(44) |
May
(41) |
Jun
(11) |
Jul
(31) |
Aug
(59) |
Sep
(44) |
Oct
(86) |
Nov
(66) |
Dec
(93) |
2009 |
Jan
(88) |
Feb
(41) |
Mar
(49) |
Apr
(135) |
May
(22) |
Jun
(31) |
Jul
(60) |
Aug
(71) |
Sep
(76) |
Oct
(18) |
Nov
(52) |
Dec
(20) |
2010 |
Jan
(8) |
Feb
(50) |
Mar
(35) |
Apr
(48) |
May
(46) |
Jun
(84) |
Jul
(38) |
Aug
(61) |
Sep
(51) |
Oct
(31) |
Nov
(17) |
Dec
(18) |
2011 |
Jan
(51) |
Feb
(14) |
Mar
(17) |
Apr
(23) |
May
(15) |
Jun
(11) |
Jul
(5) |
Aug
(5) |
Sep
(15) |
Oct
(8) |
Nov
(5) |
Dec
(25) |
2012 |
Jan
(2) |
Feb
(4) |
Mar
(6) |
Apr
(9) |
May
(27) |
Jun
(32) |
Jul
(36) |
Aug
(10) |
Sep
(16) |
Oct
(3) |
Nov
(13) |
Dec
(7) |
2013 |
Jan
(1) |
Feb
(4) |
Mar
|
Apr
(1) |
May
|
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(4) |
Oct
(2) |
Nov
(1) |
Dec
|
2014 |
Jan
|
Feb
|
Mar
(2) |
Apr
(1) |
May
(2) |
Jun
(9) |
Jul
(5) |
Aug
(2) |
Sep
(4) |
Oct
|
Nov
|
Dec
|
2015 |
Jan
(3) |
Feb
(2) |
Mar
(4) |
Apr
(3) |
May
(1) |
Jun
(2) |
Jul
|
Aug
(2) |
Sep
(5) |
Oct
(1) |
Nov
|
Dec
|
2016 |
Jan
|
Feb
(5) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(5) |
Sep
(3) |
Oct
|
Nov
|
Dec
|
2017 |
Jan
(6) |
Feb
|
Mar
|
Apr
(10) |
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(1) |
Dec
|
2018 |
Jan
(2) |
Feb
(5) |
Mar
|
Apr
|
May
(1) |
Jun
(3) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2020 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
2021 |
Jan
(5) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2023 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
|
|
1
|
2
|
3
|
4
|
5
|
6
|
7
(5) |
8
(2) |
9
(1) |
10
|
11
|
12
|
13
(1) |
14
(1) |
15
|
16
(1) |
17
|
18
|
19
|
20
|
21
(4) |
22
(2) |
23
|
24
|
25
(2) |
26
|
27
|
28
|
29
(2) |
30
(3) |
31
|
|
|
From: <php...@li...> - 2008-01-30 19:17:33
|
read the install file that comes with the bridge? php...@li... wrote: Hi every: I have installed Apache 2.2.6 and PHP 5.2.5. Now I want to get configured PHPJavaBridge. For that I downloaded the latest release php-java-bridge_5.2.1_j2ee.zip. Exists any guide for dummies? I see this: 1. http://www.dsl.uow.edu.au/~sk33/php5java.htm But this is obsoleted. Any can help me? Cheers and thanks in advance Ing. Reynier Pérez Mira Grupo de Soporte al Desarrollo - Dirección Técnica IP ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users --------------------------------- Looking for last minute shopping deals? Find them fast with Yahoo! Search. |
From: <php...@li...> - 2008-01-30 19:04:52
|
Hi every: I have installed Apache 2.2.6 and PHP 5.2.5. Now I want to get = configured PHPJavaBridge. For that I downloaded the=20 latest release php-java-bridge_5.2.1_j2ee.zip. Exists any guide for = dummies? I see this: 1. http://www.dsl.uow.edu.au/~sk33/php5java.htm But this is obsoleted. Any can help me? Cheers and thanks in advance Ing. Reynier P=E9rez Mira Grupo de Soporte al Desarrollo - Direcci=F3n T=E9cnica IP |
From: <php...@li...> - 2008-01-30 15:00:00
|
Hello, I just updated the CVS tree containing the debian directory for generating the Debian packages. Please, test the building following the updated instructions [0] and post comments / suggestions at the list. The instructions should work for Ubuntu, also. I will wait 2 days for comments before uploading binary files for public downloads. If one is interested in how it works, please read the wiki page [1]. Regards. Andre Felipe Machado [0] http://php-java-bridge.cvs.sourceforge.net/php-java-bridge/php-java-bridge/debian/README.Debian?view=log [1] http://wiki.debian.org/PkgSplit -- "A Debian user never dies. Issues a last command: shutdown -h now" http://www.techforce.com.br |
From: <php...@li...> - 2008-01-29 23:55:02
|
Hello, Jost Today I updated the ./debian directory with some improvements and prunings. Still needs further tests to announce it, but should compile and package from a plain cvs checkout, as per README.debian . Maybe the files you cited were removed from the packages by now. Could you try to compile yourself in a Debian or maybe Ubuntu (virtual) machine? The Debian php extension directory is calculated dinamicaly at compilation time by the line (today) 37: PHP_EXT_DIR := $(shell /usr/bin/php-config --extension-dir) To edit the java.ini dinamicaly, some shell tricks should be performed, and the postinst and postrm scripts could become really tricky. Previous versions of Debian php had such nasty tricks to edit and "unedit" ini files. Today, the php packages are much more cleaner [0], [1]. As the php extension dir location is calculated at Debian package compilation time, it will shurely compile for future versions. Maybe I missed something, but in this scenario are there still significant benefits of using zend_extension enough to justify dirty tricks at packaging? I am trying to clean the packaging files and rules as I learn more [2]. The target is lintian zero errors and warnings [4] against Debian Policy [3]. Best regards. Andre Felipe Machado http://www.techforce.com.br [0] http://bugs.debian.org/388697 [1] http://bugs.debian.org/388698 [2] http://wiki.debian.org/PkgSplit [3] http://www.debian.org/doc/debian-policy [4] http://wiki.debian.org/WhyDebianForDevelopers |
From: <php...@li...> - 2008-01-29 22:17:05
|
I would like to start using iText, and I think the quickest way for me to do so would be to use php-java-bridge. Is it possible to install php-java-bridge on a server running the following: tomcat 4.1 java 1.4.2 apache 2.0.51 php 5.0.4 gcc 3.3.3 If so, what would be the best strategy? |
From: <php...@li...> - 2008-01-25 19:35:05
|
Hi Andre, sorry, I forgot to remove that file from the repository. Thank you very much for looking into this! BTW: I think I have removed two files which were obsolete but are still referenced by the debian packages. I will check this this weekend and will give you a list of the changes. What do you think about creating a zend extension from the java.so (or php_java.dll). If it is possible to figure out the location of the php extension dir on debian, we could change the java.ini from: extension=java.so to zend_extension=/path/to/php/ext/dir/java.so The advantage of the zend_extension is that we could build one extension for all php versions. This generic DEB or RPM package will work on all future versions of PHP and, if the redhat or debian people don't change the location of the extension dir, on all future debian and redhat distributions. Regards, Jost Boekemeier Jetzt Mails schnell in einem Vorschaufenster überfliegen. Dies und viel mehr bietet das neue Yahoo! Mail - www.yahoo.de/mail |
From: <php...@li...> - 2008-01-25 18:01:47
|
Hello, I checked out from cvs repository and tried to compile. But the process stopped at ClassicResponse. It can not inherit from (now final) Response. As php4 is not supported anymore, is ClassicResponse still needed? Please, what could I do in order to compile? Did I forget to configure something? Regards. Andre Felipe -- "A Debian user never dies. Issues a last command: shutdown -h now" http://www.techforce.com.br |
From: <php...@li...> - 2008-01-22 10:24:17
|
Hi, > but nothing about why I should upgrade the cache is now enabled. This means that the following code: $s = new java("java.lang.StringBuffer"); for($i=0; $i<400000; $i++) $s->append ($i); runs in less than 15 seconds. -- The bsh script engine runs the same test in ~18 seconds. The old C code has been removed, as it is about 5 times slower than the pure Java solution. On the other hand the current PHP versions (php 5.2.x) fail to run the following code properly: class Clazz { function __toString() { return "1"; } $obj = new Clazz (); if ($obj == 1) ... One must write the above code as: if (((boolean)(string) $obj) == 1) ... or if (java_values ($obj) == 1) ... I don't I'd consider the above limitation a bug. In PHP version 4 it was possible to cast an object to a boolean value for example. And I don't see a reason why this feature is not available in php version 5... Regards, Jost Boekemeier __________________________________ Ihre erste Baustelle? Wissenswertes für Bastler und Hobby Handwerker. www.yahoo.de/clever |
From: <php...@li...> - 2008-01-22 09:51:46
|
Hello! =20 I was wondering what's new in the new JavaBridge 5.x versions! In the = NEWS file I saw that some things are not backwards compatible anymore, = but nothing about why I should upgrade. Can you please tell me if (and = why) its better, faster, stronger (;)) or something else? =20 Rene |
From: <php...@li...> - 2008-01-21 11:56:05
|
Hi again, I forgot to mention the procedure java_inspect ($ObjectOrType) and the log4j viewer chainsaw. java_inspect() returns type name of the java object or type as well as its public constructors and features. If you have set the log level to 4 or above, you should see the comm. protocol and clear error messages from the back end. 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...> - 2008-01-21 09:16:12
|
Hi, > $obj = new Java("parser.ParseNode); > echo $pobj->printHello(); //printHello is a static should print something to the debug log. > //printTest is not a static function If the method printTest cannot be called, it means that the defining class is static or it has a non-public constructor, in which case the PHP/Java Bridge returns the type instead of an instance. (This behaviour is for compatibility with other bridges, but the recommended way to access a type is through the java() function, of course.) 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...> - 2008-01-21 08:15:53
|
hello,erverybody I am sorry, in my former letter, I did not describe my problem clearly! I will give more information. My website is written in php script and I have to call some java fuctions(these functions is used to implement a complicated algorithms), so i have to user the php-java-bridge to connect php and java,but I find it is very difficult to debug my programme. When I forget to include some libs, the php page just display nothing, this situation slow my speed of developing very much. I hope someone is so kindly to tell me some way to debug my programme. I am a newer to begin programming with php_java_bridge(begin from last Monday). In the coding process, I encountered two problems: 1. I can't use new a object with the parameter . for example: it is ok: $obj = new Java("parser.ParseNode); it is not ok $pobj = new Java("parser.ParseNode","/home/lvhl/apache/test/parseweb/bin/elong.htm","gb2312"); //class parser.ParseNode has a construct function : ParseNode(String str ,String encoding) 2. I can't call a non-static function fo parser.ParseNode also use the same example: it is ok : $obj = new Java("parser.ParseNode); echo $pobj->printHello(); //printHello is a static function of parser.ParseNode it is not ok and output is nothing: echo $pobj->printTest(); //printTest is not a static function of parser.ParseNode define of the functions: public static String printHello() { return "Hello World,dajiahao!"; } public String printTest() { return "Hello,test!"; } Is there anybody who is so kind to tell me why ? Thank you very much! My develop environment: OS: Fedora 8 web server :Apache/2.2.6 (Unix) PHP: php5.2.4 java : javac 1.6.0_03 java version "1.7.0" php-java-bridge: php-java-bridge-5.0.0 browser:firefox 2.0.0.11 and IE7 and the php-java-bridge as a moudle of apache, didn't use tomcat 2008-01-21 lvhl.tech |
From: <php...@li...> - 2008-01-21 07:55:45
|
hello,erverybody My website is written in php script and I have to call some java fuctions(these functions is used to implement a complicated algorithms), but I find it is very difficult to debug my programme. When I forget to include some libs, the php page just display nothing, this situation slow my speed of developing very much. I hope someone is so kindly to tell me some way to debug my programme. I am a newer to begin programming with php_java_bridge(begin from last Monday). In the coding process, I encountered two problems: 1. I can't use new a object with the parameter . for example: it is ok: $obj = new Java("parser.ParseNode); it is not ok $pobj = new Java("parser.ParseNode","/home/lvhl/apache/test/parseweb/bin/elong.htm","gb2312"); //class parser.ParseNode has a construct function : ParseNode(String str ,String encoding) 2. I can't call a non-static function fo parser.ParseNode also use the same example: it is ok : $obj = new Java("parser.ParseNode); echo $pobj->printHello(); //printHello is a static function of parser.ParseNode it is not ok: echo $pobj->printTest(); //printTest is not a static function of parser.ParseNode Is there anybody who is so kind to tell me why ? Thank you very much! 2008-01-21 lvhl.tech |
From: <php...@li...> - 2008-01-16 14:14:48
|
Hi every: I have installed Apache 2.2.6 and PHP 5.2.5. Now I want to get = configured PHPJavaBridge. For that I downloaded the latest release = php-java-bridge_4.3.3_j2ee.zip. Exists any guide for dummies? I see = this: 1. http://www.dsl.uow.edu.au/~sk33/php5java.htm 2. http://www.dsl.uow.edu.au/~sk33/phpjava.htm But both are obsoleted. Any can help me? Cheers and thanks in advance Ing. Reynier P=E9rez Mira=20 |
From: <php...@li...> - 2008-01-14 09:19:48
|
Hi, > So, I've had nothing but failures trying to build the pjb module; you don't need to build the PHP/Java Bridge module. It is written in pure Java. > Does anyone have the skillset to accomplish such a thing? We would > gratefully pay you to build us a pjb module for php 5.2.5 I don't think anybody is able to compile the PHP 4 C code against PHP 5.x. Why do you need it? 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...> - 2008-01-13 02:41:16
|
Hi again, So, I've had nothing but failures trying to build the pjb module; a post from PHP-WIN says that I'd have to set up a makefile by hand to build the module, as no phpize-like script exists for win32. Not having any experience with these tools, I don't know where to begin. Does anyone have the skillset to accomplish such a thing? We would gratefully pay you to build us a pjb module for php 5.2.5 (and probably a copy of php 5.2.5, for apache 2.2.6). Failing that, I'd happy accept a point in the right direction! While our segfault problem isn't coming from pjb, it is probably an issue with php 5.1.6, or one of its modules; in the absence of any other ideas, we want to use the latest php (which does include many bugfixes). Many thanks, Michael > > Hiya, > > We're using PJB with PHP 5.1.6 and Apache 2.0.61 on Windows, and > experiencing frequent segfaults of Apache. Inspecting the dump > reveals that PHP is crashing somewhere, something to do with a null > pointer exception when reporting an error. > > I've tried using the same combination but with the latest Apache > (2.2.6), but the segfault still happens. > > It seems to happen most (and reproducibly) when getting requests > through a flex client, when an open connection already exists from a > flex client on the same machine (i.e. one browser window runs the flex > client, and opens a popup window also with the flex client running). > > Firstly, has anyone experienced this? > > So, I'm trying to update to the latest version of PHP (5.2.5), but > coming up against some problems when attempting to build PHP, to build > PJB. I've tried to build PHP using Cygwin, cross-compiling against > mingw32, but that failed with a number of build errors, presumably > related to incompatible libs and includes. > > Instead I tried using MS's Visual Studio C++, as in the documentation > in the PHP build directory. Firstly I couldn't get the configure > script to find the win32build folder, so I added it to PATH and tried > again. Then, the configure script ran successfully, but nmake fails > with: > > "" -h win32\ -r Release_TS\ -x Release_TS\ win32\build\wsyslog.mc > '-h' is not recognized as an internal or external command, operable > program or batch file. > NMAKE : fatal error U1077: '"' : return code '0x1' > Stop. > > It would appear that PHP's configure script isn't writing the make > rules properly, and is setting an empty string instead of the name of > some build tool. > > Can anyone help with this? Is there a way of building PJB for win32 > that doesn't require a build of PHP itself? How were the existing > binaries of PJB built? > > We must have it sorted by next Wednesday (the 19th), and we're willing > to pay a reasonable rate for assistance. > > Cheers, > > Mike > -- > Michael Tyson | Developer | smartpath.com.au > > m: (+61) 0407 754 124 > e: mt...@sm... > aim: mikerusselltyson > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services > for just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users -- Michael Tyson | Developer | smartpath.com.au m: (+61) 0407 754 124 e: mt...@sm... aim: mikerusselltyson |
From: <php...@li...> - 2008-01-09 09:43:45
|
Hi, > I had the driver in the lib dir and it still wont work. Yes, indeed. Unfortunately this is not a bug but a feature. Even our FAQ entry is correct, although a little bit terse. It says "Class.forName", not "Class->forName", i.e. it assumes that an application.jar exists which needs access to the JDBC driver. If you switch on JDBC logging, you will see that the DriverManager skips the Mysql JDBC driver due to security constraints. Both, the application jar and the jdbc driver jar file must be loaded from the same classloader. The DriverManager checks this and revokes the registered driver because the JavaBridge.jar application and the mysql.jar driver were loaded by two different class loaders. This behaviour is correct and documented. You must create a Java application.jar file and load the "application.jar" and the "mysql.jar" in one java_require() call: java_require("application.jar;mysql.jar"); After that you can call the application.jar which in turn can use the mysql.jar as usual. > > confirmed. The above code doesn't work with our dynamic java bridge class loader. No. The fact that the DynamicClassLoader separates the loaded libraries is a feature and is well documented. This will not change. What could be changed is the behaviour of the standalone component, the "JavaBridge.jar" executable. We could use the same trick as other application servers and re-execute the jar file using our extended class loader. Regards, Jost Boekemeier __________________________________ Ihre erste Baustelle? Wissenswertes für Bastler und Hobby Handwerker. www.yahoo.de/clever |
From: <php...@li...> - 2008-01-08 23:34:37
|
I had the driver in the lib dir and it still wont work. I ended up making a simple java wrapper class as follows to get it to work: import java.sql.*; import com.mysql.jdbc.Driver; public class JavaBridgeJdbcConnector { public static Connection getConnection(String driver,String url) { Connection con = null; try { Class.forName(driver); con = DriverManager.getConnection(url); } catch(Exception e) { e.printStackTrace(); } return con; } } I can call that code in PHP to get the connection and it works fine from there Thanks for the help, Phillip Savage php...@li... wrote: > Hi, > > >> java_require("mysql-connector-java-5.1.5-bin.jar"); >> new java("com.mysql.jdbc.Driver"); >> java("java.sql.DriverManager")->getConnection("jdbc:mysql://xxx/xxx?user=xxx&password=xxx"); >> > > confirmed. The above code doesn't work with our dynamic java bridge class loader. > > As a workaround please copy mysql-connector-java-5.1.5-bin.jar to $HOME/lib (see the extra library > dir from the java -jar JavaBridge.jar SERVLET:9090 3 "" output) or to WEB-INF/lib or deploy the > connector into your J2EE server. > > We'll fix this problem asap. > > BTW: What about removing java_require() entirely? Although dynamic class loading may be convenient > at first, it has certain problems I'd like to get rid of. This is really something that the J2EE > server should handle. > > > 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 > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |
From: <php...@li...> - 2008-01-08 09:44:06
|
Hi, > java_require("mysql-connector-java-5.1.5-bin.jar"); > new java("com.mysql.jdbc.Driver"); > java("java.sql.DriverManager")->getConnection("jdbc:mysql://xxx/xxx?user=xxx&password=xxx"); confirmed. The above code doesn't work with our dynamic java bridge class loader. As a workaround please copy mysql-connector-java-5.1.5-bin.jar to $HOME/lib (see the extra library dir from the java -jar JavaBridge.jar SERVLET:9090 3 "" output) or to WEB-INF/lib or deploy the connector into your J2EE server. We'll fix this problem asap. BTW: What about removing java_require() entirely? Although dynamic class loading may be convenient at first, it has certain problems I'd like to get rid of. This is really something that the J2EE server should handle. 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...> - 2008-01-07 23:19:36
|
G'day, Thanks for the prompt reply, i did see that note in the readme of PJB Ive just had another go (I think i was instantiating a class object for the forname call rather than using the java method) but i am still getting no love require_once("./pjb/java/Java.inc"); java_require("mysql-connector-java-5.1.5-bin.jar"); $class = java("java.lang.Class"); $loader = java("java.lang.Thread")->currentThread()->getContextClassLoader(); $class->forName("com.mysql.jdbc.Driver",true,$loader); $driverManager = new JavaClass("java.sql.DriverManager"); $thiscon = $driverManager->getConnection("jdbc:mysql://xxx/xxx?user=xxx&password=xxx"); Yields the error: PHP Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: Invoke failed: [[c:DriverManager]]->getConnection((o:String)[o:String]). Cause: java.sql.SQLException: No suitable driver found for jdbc:mysql://xxx/xxx?user=xxx&password=xxx Responsible VM: 1.6.0_03@http://java.sun.com/" at: #-11 java.sql.DriverManager.getConnection(Unknown Source) #-10 java.sql.DriverManager.getConnection(Unknown Source) #-9 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) #0 C:\Inetpub\wwwroot\app\webroot\test\pjb\java\Java.inc(259): java_ThrowExceptionProxyFactory->getProxy(7, 'php.java.bridge...', true) #1 C:\Inetpub\wwwroot\app\webroot\test\pjb\java\Java.inc(409): java_Arg->getResult(true) #2 C:\Inetpub\wwwroot\app\webroot\test\pjb\java\Java.inc(415): java_Client->getWrappedResult(true) #3 C:\Inetpub\wwwroot\app\webroot\test\pjb\java\Java.inc(619): java_Client->getResult() #4 C:\Inetpub\wwwroot\app\webroot\test\pjb\java\Java.inc(1730): java_Client->invokeMethod(6, 'getConnection', Array) #5 C:\Inetpub\wwwroot\app\webroot\test\ in C:\xxx\pjb\java\Java.inc on line 222 Im not sure what im doing wrong, it appears the java_require call is finding the file because if i change the path i get an error. Regards, Phillip Savage php...@li... wrote: > Hi, > > >> Forgive me if i am blind, but I can't find anything in the FAQ located >> at http://php-java-bridge.sourceforge.net/pjb/faq.php >> > > the up-to-date FAQ is here: > > http://php-java-bridge.cvs.sourceforge.net/*checkout*/php-java-bridge/php-java-bridge/FAQ.html > > I think > > java_require ("yourDriver.jar"); > $Clazz = java("java.lang.Class"); > $loader = java("java.lang.Thread")->currentThread()->getContextClassLoader(); > $Clazz->forName("yourDriver", true, $loader); > > should do what you want. > > > Regards, > Jost Boekemeier > > > > > Machen Sie Yahoo! zu Ihrer Startseite. Los geht's: > http://de.yahoo.com/set > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |
From: <php...@li...> - 2008-01-07 12:31:44
|
Hi, > Forgive me if i am blind, but I can't find anything in the FAQ located > at http://php-java-bridge.sourceforge.net/pjb/faq.php the up-to-date FAQ is here: http://php-java-bridge.cvs.sourceforge.net/*checkout*/php-java-bridge/php-java-bridge/FAQ.html I think java_require ("yourDriver.jar"); $Clazz = java("java.lang.Class"); $loader = java("java.lang.Thread")->currentThread()->getContextClassLoader(); $Clazz->forName("yourDriver", true, $loader); should do what you want. Regards, Jost Boekemeier Machen Sie Yahoo! zu Ihrer Startseite. Los geht's: http://de.yahoo.com/set |
From: <php...@li...> - 2008-01-07 11:19:16
|
With all my playing around/searching i gathered that it wouldn't work which is specifically why i tried the following which did not work: $class->forName("com.mysql.jdbc.Driver",true,java("java.lang.Thread")->currentThread()->getContextClassLoader()); Forgive me if i am blind, but I can't find anything in the FAQ located at http://php-java-bridge.sourceforge.net/pjb/faq.php with regards to my problem Regards, Phillip Savage php...@li... wrote: > Hi, > > >> $class->forName("com.mysql.jdbc.Driver"); >> > > won't work. Or better: will only work if the driver is available to the bootstrap loader. > Either use the current loader or add the driver to the global class loader. > > Please see the Java specification or our FAQ for details. > > > Regards, > Jost Boekemeier > > > > > > __________________________________ Ihr erstes Fernweh? Wo gibt es den schönsten Strand? www.yahoo.de/clever > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |
From: <php...@li...> - 2008-01-07 09:37:36
|
Hi, > $class->forName("com.mysql.jdbc.Driver"); won't work. Or better: will only work if the driver is available to the bootstrap loader. Either use the current loader or add the driver to the global class loader. Please see the Java specification or our FAQ for details. Regards, Jost Boekemeier __________________________________ Ihr erstes Fernweh? Wo gibt es den schönsten Strand? www.yahoo.de/clever |
From: <php...@li...> - 2008-01-07 05:21:03
|
G'day, Ive tried all sorts of things and im starting to pull my hair out. Im trying to create a JDBC Connection with php-java-bridge which i can pass to BIRT to override the reports connection. The code i started with is bellow: $class = new JavaClass("java.lang.Class"); $class->forName("com.mysql.jdbc.Driver"); $driverManager = new JavaClass("java.sql.DriverManager"); $conn = $driverManager->getConnection("jdbc:mysql://xxxx/xxxx?user=xxx&password=xxxx"); Which gave me a class not found on the forName call. The wierd thing is i can instantiate a driver object manually by typing $driver = new Java("com.mysql.jdbc.Driver"); so obviously php-java-bridge can see the class file. I'm at a loss as to what the problem is right now, here is a quick run down of the things I've tried so far: * Getting the current thread & using the context class loader $thread = java("java.lang.Thread")->currentThread(); $class->forName("com.mysql.jdbc.Driver",true,$thread->getContextClassLoader()); * Just instantiating the driver as normal (java.sql.SQLException: No suitable driver found thrown) * Creating an instance of the driver and calling $driverManager->registerDriver($driver) (java.sql.SQLException: No suitable driver found thrown) Any help would be appreciated, Regards, Phillip Savage |