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
|
Hi all, I was trying to run the example code came with php-java bridge installation.. but i got the following error Fatal error*: Uncaught exception 'java_RuntimeException' with message 'no Pipe- or SocketContextServer available.' in /opt/SUNWappserver/domains/domain1/applications/j2ee-modules/JavaBridge/java/Java.inc:1166 Stack trace: #0 /opt/SUNWappserver/domains/domain1/applications/j2ee-modules/JavaBridge/java/Java.inc(1303): java_HttpHandler->redirect() #1 /opt/SUNWappserver/domains/domain1/applications/j2ee-modules/JavaBridge/java/Java.inc(1333): java_Protocol->redirect() #2 /opt/SUNWappserver/domains/domain1/applications/j2ee-modules/JavaBridge/java/Java.inc(1396): java_Protocol->finish() #3 /opt/SUNWappserver/domains/domain1/applications/j2ee-modules/JavaBridge/java/Java.inc(700): java_Protocol->invokeEnd() #4 /opt/SUNWappserver/domains/domain1/applications/j2ee-modules/JavaBridge/java/Java.inc(1765): java_Client->invokeMethod(0, 'updateJarLibrar...', Array) #5 /opt/SUNWappserver/domains/domain1/applications/j2ee-modules/JavaBridge/java/Java.inc(91): java_require(NULL) #6 /opt/SUNWappserver/domains/domain1/applications/j2ee-modu in * /opt/SUNWappserver/domains/domain1/applications/j2ee-modules/JavaBridge/java/Java.inc * on line *1166* I found this from the log file .. HTTP tunnel not available in a distributable web application. Either enable the Pipe- or SocketContextServer or remove the distributable flag from PhpJavaServlet and WEB-INF/web.xml.|#] I edited WEB-INF/web.xml. file I couln't find PhpJavaServlet file in my system.. is my installation incomplete... could any one please help me.. Regards... Robert George |
|
From: <php...@li...> - 2009-02-12 08:11:41
|
Brilliant,
I got it working with the above examples.
I have some questions regarding PDO. Would it be possible to use PDO with the Java Bridge? For example:
$pdo = new PDO("jdbc:mysql://localhost/test", "user", "pass");
I've tested this but I get the Tomcat error:
javax.servlet.ServletException: java.lang.RuntimeException: PHP Fatal error: Uncaught exception 'PDOException' with message 'could not find driver' in /home/tomcat/webapps/JavaBridge/bridge_test2.php:9
Stack trace:
#0 /home/tomcat/webapps/JavaBridge/bridge_test2.php(9): PDO->__construct('jdbc:mysql://local...', 'test, 'test')
#1 {main}
thrown in /home/tomcat/webapps/JavaBridge/bridge_test2.php on line 9
php.java.servlet.PhpCGIServlet.handle(PhpCGIServlet.java:384)
php.java.servlet.CGIServlet.doGet(CGIServlet.java:470)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
I am not sure if I require any different kind of java code / driver loading apart from:
# load driver from java.ext.dirs using Class.forName(...)
new java("com.mysql.jdbc.Driver");
Can PDO work in this way with the Bridge? Are there any examples available?
Also, is it possible to use the Bridge to call JNDI directly via PDO, such as (this works in Quercus):
$pdo = new PDO("java:comp/env/jdbc/TestDB");
Any help much appreciated.
kind regards
This message has been scanned for viruses by MailControl - www.mailcontrol.com
|
|
From: <php...@li...> - 2009-02-12 05:32:38
|
*I just installed php-java bridge and was testing the *PHP/JAVA bridge examples came along with javabridge.war and got the following errors. Can anyone please tell me what this error means. * Fatal error*: Uncaught exception 'java_RuntimeException' with message 'no Pipe- or SocketContextServer available.' in /opt/SUNWappserver/domains/domain1/applications/j2ee-modules/JavaBridge/java/Java.inc:1166 Stack trace: #0 /opt/SUNWappserver/domains/domain1/applications/j2ee-modules/JavaBridge/java/Java.inc(1303): java_HttpHandler->redirect() #1 /opt/SUNWappserver/domains/domain1/applications/j2ee-modules/JavaBridge/java/Java.inc(1333): java_Protocol->redirect() #2 /opt/SUNWappserver/domains/domain1/applications/j2ee-modules/JavaBridge/java/Java.inc(1396): java_Protocol->finish() #3 /opt/SUNWappserver/domains/domain1/applications/j2ee-modules/JavaBridge/java/Java.inc(700): java_Protocol->invokeEnd() #4 /opt/SUNWappserver/domains/domain1/applications/j2ee-modules/JavaBridge/java/Java.inc(1765): java_Client->invokeMethod(0, 'updateJarLibrar...', Array) #5 /opt/SUNWappserver/domains/domain1/applications/j2ee-modules/JavaBridge/java/Java.inc(91): java_require(NULL) #6 /opt/SUNWappserver/domains/domain1/applications/j2ee-modu in * /opt/SUNWappserver/domains/domain1/applications/j2ee-modules/JavaBridge/java/Java.inc * on line *1166* |
|
From: <php...@li...> - 2009-02-10 16:56:02
|
Hi, > I am running the PHP/Java Bridge in Tomcat. Is there any > way for PHP to call a native JDBC Type 4 driver (available > as a jar file) directly through the PHP/Java Bridge? Yes, provided that your WEB-INF/lib directory contains the jdbc driver .jar file and its dependencies. > Do you have an example of this? I think someone has posted an example on this mailing list: (=> http://sourceforge.net/mailarchive/forum.php?thread_name=753185.95697.qm%40web30906.mail.mud.yahoo.com&forum_name=php-java-bridge-users ) ---------- mysqlTest.php ---------------- <?php require_once("http://localhost:8080/JavaBridge/java/Java.inc"); # load driver from java.ext.dirs using Class.forName(...) new java("com.mysql.jdbc.Driver"); $conn = java("java.sql.DriverManager")->getConnection("jdbc:mysql://localhost/test", "root", ""); $st = $conn->createStatement (); $st->executeUpdate ("drop table hugo"); $st->executeUpdate ("create table hugo (i int primary key, v varchar(255))"); $st->executeUpdate ("insert into hugo (i, v) values (1, 'first')"); $st->executeUpdate ("insert into hugo (i, v) values (2, 'second')"); $st->execute("select * from hugo"); $rs = $st->getResultSet (); while ((string)$rs->next ()) { echo $rs->getInt("i"); echo ", "; echo $rs->getString("v"); echo "\n"; } $rs->close(); $st->close(); $conn->close (); ?> --------------------------------------------------------- # test php -d allow_url_include=On mysqlTest.php => 1, first 2, second Regards, Jost Boekemeier |
|
From: <php...@li...> - 2009-02-10 08:53:10
|
Hi, I am running the PHP/Java Bridge in Tomcat. Is there any way for PHP to call a native JDBC Type 4 driver (available as a jar file) directly through the PHP/Java Bridge? Do you have an example of this? Kind Regards This message has been scanned for viruses by MailControl - www.mailcontrol.com |
|
From: <php...@li...> - 2009-02-09 19:55:34
|
Jost, Thanks. I added it to tracker. Jason ________________________________ From: php...@li... [mailto:php...@li...] Sent: Sat 2/7/2009 8:49 AM To: php...@li... Subject: Re: [Php-java-bridge-users] BIRT with PHP/Java Bridge Hi Jason, > show running BIRT reports through the bridge. I modified > the JavaBridge.war file to include the BIRT libs and OSGi > bundles and wanted to check into putting these files > somewhere. Is there any chance I could have someone from > the project team contact me? can you please add this as a patch? Please use: https://sourceforge.net/tracker/?func=add&group_id=117793&atid=679235 I will incorporate it into the next release. Regards, Jost Bökemeier ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
|
From: <php...@li...> - 2009-02-09 14:09:56
|
Ok, I think I solved it. When executing the php exe shipped with the bridge from the cli, it complains about not founding dlls from the PHP installation. I've removed from PATH the php install directory and unset env variable called PHPRC (also points to php install directory) - and... joy! I've also imported the gd dll to the bridge and (for now) its working :-) Just starting with php and java, I'm sure u'll hear from me... :-) Barak. On Mon, Feb 9, 2009 at 3:52 PM, <php...@li... > wrote: > Hi, > > > How ever, this ocuured on clear install of the bridge, no > > extention imported > > from the PHP installation, php.ini remained unchanged. > > What do you mean with this? We were talking about the PHP installation, not > about the PHP/Java Bridge or its installation. The bridge tries to start a > standard PHP FastCGI server attached to the JVM using the command: > > set REDIRECT_STATUS "200" > set X_JAVABRIDGE_OVERRIDE_HOSTS "/" > set PHP_FCGI_CHILDREN "5" > set PHP_FCGI_MAX_REQUESTS "5000" > launcher.exe php-cgi \\.\pipe\JavaBridge@9667 -d allow_url_include=On > > If that failed, the bridge runs php-cgi as follows: > > c:\Program Files\PHP\php-cgi.exe -i > > According to your log, both, the FastCGI as well as the simple .exe file > invocation failed. I am sorry, but I don't think we can help you any > further. Please report this bug to the PHP maintainers instead. > > > > <param-name>prefer_system_php_exec</param-name> > > <param-value>Off</param-value> > > </init-param> > > > > in my web.xml, > > So the php executable shipped with the JavaBridge.war file crashes on your > operating system, too. > > This may mean that a) your operating system cannot execute standard .exe > files or b) php crashes when reading your system php.ini file. > > Please see our FAQ entry "I get a blank page or some other error!?!" for > hints how to debug your PHP installation. > > > Regards, > Jost Bökemeier > > > > > > > ------------------------------------------------------------------------------ > Create and Deploy Rich Internet Apps outside the browser with > Adobe(R)AIR(TM) > software. With Adobe AIR, Ajax developers can use existing skills and code > to > build responsive, highly engaging applications that combine the power of > local > resources and data with the reach of the web. Download the Adobe AIR SDK > and > Ajax docs to start building applications today- > http://p.sf.net/sfu/adobe-com > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |
|
From: <php...@li...> - 2009-02-09 13:52:04
|
Hi,
> How ever, this ocuured on clear install of the bridge, no
> extention imported
> from the PHP installation, php.ini remained unchanged.
What do you mean with this? We were talking about the PHP installation, not about the PHP/Java Bridge or its installation. The bridge tries to start a standard PHP FastCGI server attached to the JVM using the command:
set REDIRECT_STATUS "200"
set X_JAVABRIDGE_OVERRIDE_HOSTS "/"
set PHP_FCGI_CHILDREN "5"
set PHP_FCGI_MAX_REQUESTS "5000"
launcher.exe php-cgi \\.\pipe\JavaBridge@9667 -d allow_url_include=On
If that failed, the bridge runs php-cgi as follows:
c:\Program Files\PHP\php-cgi.exe -i
According to your log, both, the FastCGI as well as the simple .exe file invocation failed. I am sorry, but I don't think we can help you any further. Please report this bug to the PHP maintainers instead.
> <param-name>prefer_system_php_exec</param-name>
> <param-value>Off</param-value>
> </init-param>
>
> in my web.xml,
So the php executable shipped with the JavaBridge.war file crashes on your operating system, too.
This may mean that a) your operating system cannot execute standard .exe files or b) php crashes when reading your system php.ini file.
Please see our FAQ entry "I get a blank page or some other error!?!" for hints how to debug your PHP installation.
Regards,
Jost Bökemeier
|
|
From: <php...@li...> - 2009-02-09 07:57:05
|
Hi,
These is really informative thread, sorry for missing it during on my
searches.
How ever, this ocuured on clear install of the bridge, no extention imported
from the PHP installation, php.ini remained unchanged.
I even tried
<init-param>
<param-name>prefer_system_php_exec</param-name>
<param-value>Off</param-value>
</init-param>
in my web.xml, but as someone said "still no joy". If this helps, the error
signature the IE produced is:
AppName: php-cgi-x86-windows.exe AppVer: 5.2.1.1 ModName:
php-cgi-x86-windows.exe
ModVer: 5.2.1.1 Offset: 0000160a
Should I install older bridge version?
Seeking for help,
Barak.
On Sun, Feb 8, 2009 at 8:17 PM, <php...@li...
> wrote:
> Hi,
>
>
> you have managed to create a broken PHP installation using the PHP setup
> tool. Please *do* report this problem to the PHP maintainers.
>
>
> Please see this thread for details:
>
>
> http://sourceforge.net/mailarchive/forum.php?thread_name=2110.209.115.238.196.1226966315.squirrel%40www.intellog.com&forum_name=php-java-bridge-users
>
>
>
> Regards,
> Jost Boekemeier
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> Create and Deploy Rich Internet Apps outside the browser with
> Adobe(R)AIR(TM)
> software. With Adobe AIR, Ajax developers can use existing skills and code
> to
> build responsive, highly engaging applications that combine the power of
> local
> resources and data with the reach of the web. Download the Adobe AIR SDK
> and
> Ajax docs to start building applications today-
> http://p.sf.net/sfu/adobe-com
> _______________________________________________
> php-java-bridge-users mailing list
> php...@li...
> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
>
|
|
From: <php...@li...> - 2009-02-08 18:17:15
|
Hi, you have managed to create a broken PHP installation using the PHP setup tool. Please *do* report this problem to the PHP maintainers. Please see this thread for details: http://sourceforge.net/mailarchive/forum.php?thread_name=2110.209.115.238.196.1226966315.squirrel%40www.intellog.com&forum_name=php-java-bridge-users Regards, Jost Boekemeier |
|
From: <php...@li...> - 2009-02-07 21:04:05
|
Hello, I'm trying yo install the php-java bridge on Tomcat 6, my PC runs Windows XP. I've copied to war file to webapps, when starting tomcat I get these messages on the log file: Feb 7, 2009 10:14:55 PM org.apache.catalina.core.ApplicationContext log INFO: PHP/Java Bridge servlet C:\apache-tomcat-6.0.18_php\webapps\JavaBridge version 5.4.3.1 ready. Feb 7, 2009 10:14:59 PM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextInitialized() Feb 7, 2009 10:14:59 PM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() Feb 7, 2009 10:15:15 PM org.apache.catalina.core.ApplicationContext log INFO: PHP application terminated unexpectedly, have you started php-cgi with the environment setting PHP_FCGI_MAX_REQUESTS=5000? Error: php.java.servlet.fastcgi.ConnectionException Feb 7, 2009 10:15:15 PM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet PhpCGIServlet threw exception java.io.IOException: Protocol error at php.java.servlet.fastcgi.FastCGIInputStream.doRead(FastCGIInputStream.java:64) at php.java.servlet.fastcgi.FastCGIInputStream.read(FastCGIInputStream.java:51) at php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.parseBody(FastCGIServlet.java:451) at php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.doExecute(FastCGIServlet.java:374) at php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.execute(FastCGIServlet.java:382) at php.java.servlet.CGIServlet.handle(CGIServlet.java:401) at php.java.servlet.PhpCGIServlet.handle(PhpCGIServlet.java:350) at php.java.servlet.CGIServlet.doGet(CGIServlet.java:470) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:619) Trying to access the test.php file, I'm getting error messages occured by the browser (IE7) Is there some config I missed? Thanks, Barak. |
|
From: <php...@li...> - 2009-02-07 16:49:32
|
Hi Jason, > show running BIRT reports through the bridge. I modified > the JavaBridge.war file to include the BIRT libs and OSGi > bundles and wanted to check into putting these files > somewhere. Is there any chance I could have someone from > the project team contact me? can you please add this as a patch? Please use: https://sourceforge.net/tracker/?func=add&group_id=117793&atid=679235 I will incorporate it into the next release. Regards, Jost Bökemeier |
|
From: <php...@li...> - 2009-02-07 16:06:07
|
Hi Andre, I think this option can be removed from java.ini; we can delegate this to the tomcat maintainers: http://tomcat.apache.org/tomcat-3.3-doc/tomcat-security.html. AFAIK the tomcat debian port already comes with its own security manager. I'll add an entry to the NEWS file. Regards, Jost Boekemeier |
|
From: <php...@li...> - 2009-02-06 18:03:40
|
Hello, Please, given that bind.c was removed, how should one configure the java.security_policy or equivalent? Regards. Andre Felipe |
|
From: <php...@li...> - 2009-02-06 15:02:04
|
Hello, Please, given that bind.c was removed, how should one configure the java.security_policy or equivalent? Regards. Andre Felipe |
|
From: <php...@li...> - 2009-02-06 12:10:37
|
Hi,
[port 8080]
> Caused by: java.net.BindException: Address already in use
if you have a J2EE server running on port 8080, you don't need to start another one.
Regards,
Jost Bökemeier
|
|
From: <php...@li...> - 2009-02-06 12:08:50
|
Hi dominik,
I am not so sure if it is desireable to allow script-specific beans within a IOC framework. Programming one bean in Groovy, the next one in Python and other beans in Java might become a maintanance nightmare.
However, the JSR 223 API allows one to create context-specific script engines, which can be injected into the system and invoked when needed.
> For this, I'm currently refactoring some parts of the
> php-java-bridge to be more losly coupled and allow the usage of
Why do you need to refactor internal classes?
> a) which services should be available to php
You can specify the bean configuration in a separate XML file (e.g.: faces-config.xml, ...), why do you need to change the web.xml or the PHP/Java Bridge code?
> b) which classes should php able to load, e.g. java.util.*,
Just attach a context handle to the JSR 233 script engine instance. PHP scripts can fetch their individual context via e.g.: $ctx=java_context()->getAttribute("context");
Regards,
Jost Bökemeier
|
|
From: <php...@li...> - 2009-02-06 12:06:15
|
Hi,
> Nevermind, i forgot to turn tomcat-apache off.
why do you want to switch tomcat off?
> However, I think to messed up with Php-Java Bridge, as I
> now can't access the code (and the php-java-bridge page)
> I used to see if I got the desired results or not. Any way
> to undo the damage.
Which damage? Just start tomcat again and your PHP/Java code will work again.
Regards,
Jost Bökemeier
|
|
From: <php...@li...> - 2009-02-06 09:13:34
|
Nevermind, i forgot to turn tomcat-apache off. However, I think to messed up with Php-Java Bridge, as I now can't access the code (and the php-java-bridge page) I used to see if I got the desired results or not. Any way to undo the damage. ________________________________ From: "php...@li..." <php...@li...> To: php...@li... Sent: Friday, February 6, 2009 5:01:36 PM Subject: Re: [Php-java-bridge-users] Need Help for Linux: Connecting Php and MySQL using Php-Java Bridge Tried doing the steps, and it results into this: [root@medgrid ext]# java -Djava.ext.dirs=/usr/share/java -jar ~/php-java-bridge/JAVA.STANDALONE/JavaBridge.jar SERVLET:8080 3 "" & [1] 8710 [root@medgrid ext]# Feb 06 16:59:37 VMBridge INFO : VM : 1.5.0_07@http://java.sun.com/ Feb 06 16:59:37 VMBridge INFO : VMBridge version : 5.4.3.1 Feb 06 16:59:37 VMBridge INFO : logFile : Feb 06 16:59:37 VMBridge INFO : default logLevel : 3 Feb 06 16:59:37 VMBridge INFO : socket : SERVLET:8080 Feb 06 16:59:37 VMBridge INFO : java.ext.dirs : /usr/share/java Feb 06 16:59:37 VMBridge INFO : php.java.bridge.base: /root Feb 06 16:59:37 VMBridge INFO : thread pool size : 20 Feb 06 16:59:37 VMBridge INFO : JavaBridgeRunner started on port INET:8080 java.lang.RuntimeException: java.net.BindException: Address already in use at php.java.bridge.Standalone.init(Standalone.java:214) at php.java.bridge.Standalone.main(Standalone.java:313) Caused by: java.net.BindException: Address already in use at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359) at java.net.ServerSocket.bind(ServerSocket.java:319) at java.net.ServerSocket.<init>(ServerSocket.java:185) at java.net.ServerSocket.<init>(ServerSocket.java:141) at php.java.bridge.TCPServerSocket.newServerSocket(TCPServerSocket.java:60) at php.java.bridge.TCPServerSocket.<init>(TCPServerSocket.java:79) at php.java.bridge.TCPServerSocket.create(TCPServerSocket.java:51) at php.java.bridge.Standalone.bind(Standalone.java:75) at php.java.bridge.JavaBridge.bind(JavaBridge.java:235) at php.java.bridge.JavaBridgeRunner.bind(JavaBridgeRunner.java:159) at php.java.bridge.http.HttpServer.<init>(HttpServer.java:92) at php.java.bridge.JavaBridgeRunner.<init>(JavaBridgeRunner.java:78) at php.java.bridge.JavaBridgeRunner.getRequiredStandaloneInstance(JavaBridgeRunner.java:134) at php.java.bridge.JavaBridgeRunner.main(JavaBridgeRunner.java:559) at php.java.bridge.Standalone.checkServlet(Standalone.java:237) at php.java.bridge.Standalone.init(Standalone.java:200) ... 1 more In other words, it stops there, and I have to Ctrl+C to type commands again. Is this normal? ________________________________ From: "php...@li..." <php...@li...> To: php...@li... Sent: Wednesday, February 4, 2009 6:52:14 PM Subject: Re: [Php-java-bridge-users] Need Help for Linux: Connecting Php and MySQL using Php-Java Bridge 1. Download mysql-connector-java.jar 2. Copy mysql-connector-java.jar to your java.ext.dirs (usually "/usr/java/default/lib/ext") # (or start a simple Java VM using /usr/share/java as java.ext.dirs) java -Djava.ext.dirs=/usr/share/java -jar ~/JavaBridge.jar SERVLET:8080 3 "" & 3. Use the driver as usual: ---------- mysqlTest.php ---------------- <?php require_once("http://localhost:8080/JavaBridge/java/Java.inc"); # load driver from java.ext.dirs using Class.forName(...) new java("com.mysql.jdbc.Driver"); $conn = java("java.sql.DriverManager")->getConnection("jdbc:mysql://localhost/test", "root", ""); $st = $conn->createStatement (); $st->executeUpdate ("drop table hugo"); $st->executeUpdate ("create table hugo (i int primary key, v varchar(255))"); $st->executeUpdate ("insert into hugo (i, v) values (1, 'first')"); $st->executeUpdate ("insert into hugo (i, v) values (2, 'second')"); $st->execute("select * from hugo"); $rs = $st->getResultSet (); while ((string)$rs->next ()) { echo $rs->getInt("i"); echo ", "; echo $rs->getString("v"); echo "\n"; } $rs->close(); $st->close(); $conn->close (); ?> --------------------------------------------------------- # test php -d allow_url_include=On mysqlTest.php => 1, first 2, second ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
|
From: <php...@li...> - 2009-02-06 09:01:40
|
Tried doing the steps, and it results into this: [root@medgrid ext]# java -Djava.ext.dirs=/usr/share/java -jar ~/php-java-bridge/JAVA.STANDALONE/JavaBridge.jar SERVLET:8080 3 "" & [1] 8710 [root@medgrid ext]# Feb 06 16:59:37 VMBridge INFO : VM : 1.5.0_07@http://java.sun.com/ Feb 06 16:59:37 VMBridge INFO : VMBridge version : 5.4.3.1 Feb 06 16:59:37 VMBridge INFO : logFile : Feb 06 16:59:37 VMBridge INFO : default logLevel : 3 Feb 06 16:59:37 VMBridge INFO : socket : SERVLET:8080 Feb 06 16:59:37 VMBridge INFO : java.ext.dirs : /usr/share/java Feb 06 16:59:37 VMBridge INFO : php.java.bridge.base: /root Feb 06 16:59:37 VMBridge INFO : thread pool size : 20 Feb 06 16:59:37 VMBridge INFO : JavaBridgeRunner started on port INET:8080 java.lang.RuntimeException: java.net.BindException: Address already in use at php.java.bridge.Standalone.init(Standalone.java:214) at php.java.bridge.Standalone.main(Standalone.java:313) Caused by: java.net.BindException: Address already in use at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359) at java.net.ServerSocket.bind(ServerSocket.java:319) at java.net.ServerSocket.<init>(ServerSocket.java:185) at java.net.ServerSocket.<init>(ServerSocket.java:141) at php.java.bridge.TCPServerSocket.newServerSocket(TCPServerSocket.java:60) at php.java.bridge.TCPServerSocket.<init>(TCPServerSocket.java:79) at php.java.bridge.TCPServerSocket.create(TCPServerSocket.java:51) at php.java.bridge.Standalone.bind(Standalone.java:75) at php.java.bridge.JavaBridge.bind(JavaBridge.java:235) at php.java.bridge.JavaBridgeRunner.bind(JavaBridgeRunner.java:159) at php.java.bridge.http.HttpServer.<init>(HttpServer.java:92) at php.java.bridge.JavaBridgeRunner.<init>(JavaBridgeRunner.java:78) at php.java.bridge.JavaBridgeRunner.getRequiredStandaloneInstance(JavaBridgeRunner.java:134) at php.java.bridge.JavaBridgeRunner.main(JavaBridgeRunner.java:559) at php.java.bridge.Standalone.checkServlet(Standalone.java:237) at php.java.bridge.Standalone.init(Standalone.java:200) ... 1 more In other words, it stops there, and I have to Ctrl+C to type commands again. Is this normal? ________________________________ From: "php...@li..." <php...@li...> To: php...@li... Sent: Wednesday, February 4, 2009 6:52:14 PM Subject: Re: [Php-java-bridge-users] Need Help for Linux: Connecting Php and MySQL using Php-Java Bridge 1. Download mysql-connector-java.jar 2. Copy mysql-connector-java.jar to your java.ext.dirs (usually "/usr/java/default/lib/ext") # (or start a simple Java VM using /usr/share/java as java.ext.dirs) java -Djava.ext.dirs=/usr/share/java -jar ~/JavaBridge.jar SERVLET:8080 3 "" & 3. Use the driver as usual: ---------- mysqlTest.php ---------------- <?php require_once("http://localhost:8080/JavaBridge/java/Java.inc"); # load driver from java.ext.dirs using Class.forName(...) new java("com.mysql.jdbc.Driver"); $conn = java("java.sql.DriverManager")->getConnection("jdbc:mysql://localhost/test", "root", ""); $st = $conn->createStatement (); $st->executeUpdate ("drop table hugo"); $st->executeUpdate ("create table hugo (i int primary key, v varchar(255))"); $st->executeUpdate ("insert into hugo (i, v) values (1, 'first')"); $st->executeUpdate ("insert into hugo (i, v) values (2, 'second')"); $st->execute("select * from hugo"); $rs = $st->getResultSet (); while ((string)$rs->next ()) { echo $rs->getInt("i"); echo ", "; echo $rs->getString("v"); echo "\n"; } $rs->close(); $st->close(); $conn->close (); ?> --------------------------------------------------------- # test php -d allow_url_include=On mysqlTest.php => 1, first 2, second ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
|
From: <php...@li...> - 2009-02-06 01:57:22
|
Hello, I'm in the progress of creating an adapted version of the phpJavaBridge for usage with, currently a Spring Web Context. The idea behind it is: I'm moving from a complex php-website to a java powered website. While in the transition I want to code the java backend and change the php-implementation piece by piece to use the java backend. But I don't want the php-code to call whatever it wants, I just want some specified services (interfaces, classes) available to php. I want the transition as smooth as possible, so extracting interfaces/data-methods in my php code which then calls the services of the java backend. These services will then be used by the final product of the transition. For this, I'm currently refactoring some parts of the php-java-bridge to be more losly coupled and allow the usage of dependency injection frameworks (spring / guice / seam, etc. ) I want to specify in my Java-Application / servlet-configuration a) which services should be available to php b) which classes should php able to load, e.g. java.util.*, java.lang.*; com.mydomain.app.domain.* etc. My question now, as I'm planing to publish the resulting work as soon as finished a) do you want me to add it to your repository or publish it separatly b) if you want me to publish it, where & how can I submit it to the repository c) are you even interested in these changes? Or do you simply don't care, because the current code "just works"? I want to publish this code, as soon as it's finished, maybe even some middle steps before the final result. Also I'm trying to create some uml-class diagrams to understand the relationships between the classes of the php-java-bridge.. is there a place i can add them to the documentation part of the project, so to help other people work with and understand the bridge? thanks for your answers, dominik |
|
From: <php...@li...> - 2009-02-04 21:03:42
|
Hi,
why don't you simply require a functional PHP environment? The bridge can be configured to use the system PHP installation instead of the local PHP binary within WEB-INF/cgi/.
> [PHP_MySQL]
> extension=php_mysql.dll
>
> And then copy-paste the php_mysql.dll from the dll's
I don't think this will work. The php mysql.so (php_mysql.dll) have been compiled against a specific PHP version and a specific mysql version:
[jostb@carlos ~]$ locate mysql.so
/usr/lib/php/modules/mysql.so
/usr/lib/php/modules/pdo_mysql.so
[jostb@carlos ~]$ ldd /usr/lib/php/modules/mysql.so
/usr/lib/php/modules/mysql.so:
linux-gate.so.1 => (0x00110000)
libmysqlclient.so.15 => /usr/lib/mysql/libmysqlclient.so.15 (0x0011d000)
The php_mysql driver depends on the version # of the mysql client library (version 15) in this case. A different client library might cause a crash.
I don't think it makes sense to ship a complete mysql installation with each PHP application. However, there are several open-source pure Java-based relational databases which can be easily packaged with your PHP/Java web application.
Regards,
Jost Boekemeier
|
|
From: <php...@li...> - 2009-02-04 13:42:52
|
Kevin, >> One of the uses I currently have for Php-Java Bridge is to allow PHP to connect to mySQL. >> What I want to know is if it is an equivalent way of doing this in Red Hat Linux. There is a PDO (PHP Data Object) available for accessing mySql from PHP. The easiest way I've found is to install a LAMP (Linux Apache MySql PHP) version and it is pretty much done. I tend to use Ubuntu. Charles Shaffer Senior Analyst NTN-Bower Corporation |
|
From: <php...@li...> - 2009-02-04 10:52:20
|
1. Download mysql-connector-java.jar
2. Copy mysql-connector-java.jar to your java.ext.dirs (usually "/usr/java/default/lib/ext")
# (or start a simple Java VM using /usr/share/java as java.ext.dirs)
java -Djava.ext.dirs=/usr/share/java -jar ~/JavaBridge.jar SERVLET:8080 3 "" &
3. Use the driver as usual:
---------- mysqlTest.php ----------------
<?php require_once("http://localhost:8080/JavaBridge/java/Java.inc");
# load driver from java.ext.dirs using Class.forName(...)
new java("com.mysql.jdbc.Driver");
$conn = java("java.sql.DriverManager")->getConnection("jdbc:mysql://localhost/test", "root", "");
$st = $conn->createStatement ();
$st->executeUpdate ("drop table hugo");
$st->executeUpdate ("create table hugo (i int primary key, v varchar(255))");
$st->executeUpdate ("insert into hugo (i, v) values (1, 'first')");
$st->executeUpdate ("insert into hugo (i, v) values (2, 'second')");
$st->execute("select * from hugo");
$rs = $st->getResultSet ();
while ((string)$rs->next ()) {
echo $rs->getInt("i"); echo ", ";
echo $rs->getString("v"); echo "\n";
}
$rs->close();
$st->close();
$conn->close ();
?>
---------------------------------------------------------
# test
php -d allow_url_include=On mysqlTest.php
=>
1, first
2, second
|
|
From: <php...@li...> - 2009-02-04 04:17:16
|
One of the uses I currently have for Php-Java Bridge is to allow PHP to connect to mySQL. Doing this in Windows is simple, all I have to do is add the following in the php.ini file:
[PHP_MySQL]
extension=php_mysql.dll
And then copy-paste the php_mysql.dll from the dll's that come with the php installer into (apache-tomcat installation directory)/webapps/JavaBridge/Web.INF/cgi.
What I want to know is if it is an equivalent way of doing this in Red Hat Linux. For instance, instead of say php_mysql.dll, is there a php_mysql.so file out there somewhere?
Thank you in advance for your assistance
-Kevin
|