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
|
8
(5) |
9
|
|
10
|
11
(2) |
12
|
13
(1) |
14
|
15
|
16
|
|
17
(3) |
18
(3) |
19
(1) |
20
(1) |
21
|
22
|
23
|
|
24
(1) |
25
(2) |
26
(2) |
27
|
28
(1) |
29
(1) |
30
|
|
From: <php...@li...> - 2011-04-29 04:11:58
|
Hello, Are there any additional setup changes that are needed to get PHP/Java Bridge to work with a load-balanced glassfish 2.1.1 cluster? We use a custom servlet using Spring Security for access control accessed by a cluster of apache webservers through a reverse proxy. It works fine when we setup the exact same Glassfish domain minus clustering, but starts throwing bean creation exceptions (which are usually caused by the JSESSIONID cookie not being sent correction) when we add in clustering. My guess is that it is not a problem with PHP/Java Bridge, but rather our setup of session listeners, but I figured I would ask if there is something that I am overlooking here. Has anyone here used PHP/Java Bridge with Glassfish cluster (2.1.1 or 3.1)? Bonus points if you have also added Spring security to the mix! Thanks! |
|
From: <php...@li...> - 2011-04-28 18:40:33
|
Hi, please see our FAQ entry: J2EE/Servlet questions I want to ship my own PHP web application. Where do I put PHP and PHP extensions? at => http://php-java-bridge.sourceforge.net/pjb/FAQ.html > Is there any configuration-File The PHP/Java Bridge doesn't use any configuration files. Just install PHP to some directory and the bridge will use that. It's that easy. You may need to configure Java or PHP or your web server. But definitely not the bridge. Please see our FAQ for details. Regards, Jost Bökemeier |
|
From: <php...@li...> - 2011-04-25 11:48:16
|
Hi Jost! > please see our FAQ entry "How can PHP classes extend Java classes and > Java methods?" at http://php-java-bridge.sourceforge.net/pjb/FAQ.html > Great thanks, looks like it, will test this later today, thanks! Take care, Fred |
|
From: <php...@li...> - 2011-04-25 11:10:03
|
Hi, please see our FAQ entry "How can PHP classes extend Java classes and Java methods?" at http://php-java-bridge.sourceforge.net/pjb/FAQ.html Regards, Jost Bökemeier |
|
From: <php...@li...> - 2011-04-24 21:05:00
|
Hi Everybody,
Sorry if this question has been asked again and again, but I cannot see
how I can search the mailing list's archive on source forge.
So, my question is: is it possible to implement a class interface
directly in PHP?
Here is what I am trying to do. I want to implement an interface like this:
=======
new OWLEntityURIConverterStrategy {
IRI getConvertedIRI(OWLEntity entity){
String original = entity.getIRI().toString();
String replacement =<various string bashing to go from the first form to the second one>
return IRI.create(replacement);
}
}
=======
So, I want to implement that code, into PHP using the php/java bridge.
The interface is available from here [1]. Is this possible? I tried to
find an answer to my question within the FAQ, API pages (both client and
server) and on other web pages, but I had no success to far, so it is
why I am directing my question on the mailing list.
[1]
http://owlapi.sourceforge.net/javadoc/org/semanticweb/owlapi/util/OWLEntityURIConverterStrategy.html
Thanks!
Take care,
Fred
|
|
From: <php...@li...> - 2011-04-20 06:17:18
|
Hi I just had this happen in my Eclipse Tomcat test environment: php.java.bridge.http.FCGIConnectException: Could not connect to server at php.java.bridge.http.NPChannelFactory.test(NPChannelFactory.java:66) at php.java.bridge.http.FCGIConnectionPool.<init>(FCGIConnectionPool.java:175) at php.java.bridge.http.FCGIConnectionPool.<init>(FCGIConnectionPool.java:189) at php.java.servlet.ContextLoaderListener.createConnectionPool(ContextLoaderListener.java:541) at php.java.servlet.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:185) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4600) at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5097) at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5092) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: java.io.IOException: File \\.\pipe\E:\Temp\JavaBridge7063515448186275370.socket not writable ... 13 more 20.apr.2011 08:03:44 org.apache.catalina.core.StandardContext loadOnStartup SEVERE: Servlet /Norlys threw load() exception java.io.IOException: File \\.\pipe\E:\Temp\JavaBridge7063515448186275370.socket not writable at php.java.bridge.http.NPChannelFactory.test(NPChannelFactory.java:66) at php.java.servlet.fastcgi.FastCGIServlet.init(FastCGIServlet.java:142) at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1133) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1087) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:996) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4834) at org.apache.catalina.core.StandardContext$3.call(StandardContext.java:5155) at org.apache.catalina.core.StandardContext$3.call(StandardContext.java:5150) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) I'll going to try and increase the timeout setting in global.properties and see what happens. Hermod -----Original Message----- From: php...@li... [mailto:php...@li...] Sent: Tuesday, April 19, 2011 6:12 AM To: php...@li... Subject: Re: [Php-java-bridge-users] PHP/JAVA Bridge Write socket error Hi This happens to me every time my Tomcat service starts after a system restart. I then have to restart the service in order to get the FastCGI pool up. I'll look into the global.properties . What setting would that be? Regards Hermod -----Original Message----- From: php...@li... [mailto:php...@li...] Sent: Monday, April 18, 2011 9:20 PM To: php...@li... Subject: Re: [Php-java-bridge-users] PHP/JAVA Bridge Write socket error Hi, > Apparently, I have to wait a little after starting IIS and tomcat > service before using php/java bridge, and then everything is OK. Umm, no. php-cgi.exe should not take more than 500ms to start with the default php.ini. On Linux it starts in less than 50ms. If it takes more time to start on your machine, please report this as a bug to the PHP maintainers. I think it is possible to adjust the timeouts of the PHP/Java Bridge (see global.properties file), but if PHP FastCGI server really takes that much time to start on your machine, you should have a look at your php.ini files. Regards, Jost Bökemeier ------------------------------------------------------------------------------ Benefiting from Server Virtualization: Beyond Initial Workload Consolidation -- Increasing the use of server virtualization is a top priority.Virtualization can reduce costs, simplify management, and improve application availability and disaster protection. Learn more about boosting the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the anti virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ------------------------------------------------------------------------------ Benefiting from Server Virtualization: Beyond Initial Workload Consolidation -- Increasing the use of server virtualization is a top priority.Virtualization can reduce costs, simplify management, and improve application availability and disaster protection. Learn more about boosting the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the anti virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * |
|
From: <php...@li...> - 2011-04-19 04:47:24
|
Hi This happens to me every time my Tomcat service starts after a system restart. I then have to restart the service in order to get the FastCGI pool up. I'll look into the global.properties . What setting would that be? Regards Hermod -----Original Message----- From: php...@li... [mailto:php...@li...] Sent: Monday, April 18, 2011 9:20 PM To: php...@li... Subject: Re: [Php-java-bridge-users] PHP/JAVA Bridge Write socket error Hi, > Apparently, I have to wait a little after starting IIS and tomcat > service before using php/java bridge, and then everything is OK. Umm, no. php-cgi.exe should not take more than 500ms to start with the default php.ini. On Linux it starts in less than 50ms. If it takes more time to start on your machine, please report this as a bug to the PHP maintainers. I think it is possible to adjust the timeouts of the PHP/Java Bridge (see global.properties file), but if PHP FastCGI server really takes that much time to start on your machine, you should have a look at your php.ini files. Regards, Jost Bökemeier ------------------------------------------------------------------------------ Benefiting from Server Virtualization: Beyond Initial Workload Consolidation -- Increasing the use of server virtualization is a top priority.Virtualization can reduce costs, simplify management, and improve application availability and disaster protection. Learn more about boosting the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the anti virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * |
|
From: <php...@li...> - 2011-04-18 19:19:57
|
Hi, > Apparently, I have to wait a little after starting IIS and tomcat service > before using php/java bridge, and then everything is OK. Umm, no. php-cgi.exe should not take more than 500ms to start with the default php.ini. On Linux it starts in less than 50ms. If it takes more time to start on your machine, please report this as a bug to the PHP maintainers. I think it is possible to adjust the timeouts of the PHP/Java Bridge (see global.properties file), but if PHP FastCGI server really takes that much time to start on your machine, you should have a look at your php.ini files. Regards, Jost Bökemeier |
|
From: <php...@li...> - 2011-04-18 13:12:55
|
Thanks a lot, this worked fine !!
Apparently, I have to wait a little after starting IIS and tomcat service
before using php/java bridge, and then everything is OK.
Thanks again.
-----Message d'origine-----
De : php...@li...
[mailto:php...@li...]
Envoyé : lundi 18 avril 2011 07:07
À : php...@li...
Objet : Re: [Php-java-bridge-users] PHP/JAVA Bridge Write socket error
Hi
This is a known problem. You need to restart you server gain to get the CGI
pool up and running. I see this on my servers when they start as a service
after a system restart. I have also seen it when doing testing in Eclise
Tomcat server environment. I think there should be a test in the PHP bridge
to see if the pool is up and running and try again if it is not.
Hermod
-----Original Message-----
From: php...@li...
[mailto:php...@li...]
Sent: Sunday, April 17, 2011 4:07 PM
To: php...@li...
Subject: [Php-java-bridge-users] PHP/JAVA Bridge Write socket error
Hi all,
I successfully installed PHP/JAVA Bridge on my development machine, without
any noticeable problem, but doing the exact same things on main test server
doesn't work.
My development machine is under Windows 7/IIS/Tomcat, the server under
Windows 2008 Server/IIS/Tomcat.
When I try to test (first time) the JavaBridge package, it throws :
exception
javax.servlet.ServletException: php.java.bridge.http.FCGIConnectException:
Could not connect to server
php.java.servlet.fastcgi.FastCGIServlet.init(FastCGIServlet.java:133)
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:462)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100
)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:562)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:395)
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:
306)
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(H
ttp11AprProtocol.java:323)
org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:
1719)
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
Source)
java.lang.Thread.run(Unknown Source)
php.java.bridge.http.FCGIConnectException: Could not connect to server
php.java.bridge.http.NPChannelFactory.test(NPChannelFactory.java:66)
php.java.servlet.fastcgi.FastCGIServlet.init(FastCGIServlet.java:131)
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:462)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100
)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:562)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:395)
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:
306)
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(H
ttp11AprProtocol.java:323)
org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:
1719)
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
Source)
java.lang.Thread.run(Unknown Source)
java.io.IOException: File \\.\pipe\C:\Program Files\Apache Software
Foundation\Tomcat 7.0\temp\JavaBridge3094708770733451644.socket not writable
php.java.bridge.http.NPChannelFactory.test(NPChannelFactory.java:66)
php.java.servlet.fastcgi.FastCGIServlet.init(FastCGIServlet.java:131)
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:462)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100
)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:562)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:395)
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:
306)
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(H
ttp11AprProtocol.java:323)
org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:
1719)
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
Source)
java.lang.Thread.run(Unknown Source)
And while refreshing the page, I got :
javax.servlet.ServletException: No connection pool
php.java.servlet.fastcgi.FastCGIServlet.init(FastCGIServlet.java:135)
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:462)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100
)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:562)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:395)
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:
306)
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(H
ttp11AprProtocol.java:323)
org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:
1719)
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.lang.Thread.run(Unknown Source)
Did anyone had the same problem ?
Any clues ?
Thanks all !
--
Stéphane SOCHACKI - CTO
ilist5 - Rankmill (http://www.rankmill.com)
6, rue de Cursol
33000 Bordeaux - FRANCE
Tel : (33)(0)620 688 308
----------------------------------------------------------------------------
--
Benefiting from Server Virtualization: Beyond Initial Workload Consolidation
-- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve
application availability and disaster protection. Learn more about boosting
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that the DnB NOR Group
cannot accept any payment orders or other legally binding correspondence
with customers as a part of an email.
This email message has been virus checked by the anti virus programs used in
the DnB NOR Group.
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
----------------------------------------------------------------------------
--
Benefiting from Server Virtualization: Beyond Initial Workload Consolidation
-- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve
application availability and disaster protection. Learn more about boosting
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|
|
From: <php...@li...> - 2011-04-18 05:06:47
|
Hi
This is a known problem. You need to restart you server gain to get the CGI pool up and running. I see this on my servers when they start as a service after a system restart. I have also seen it when doing testing in Eclise Tomcat server environment. I think there should be a test in the PHP bridge to see if the pool is up and running and try again if it is not.
Hermod
-----Original Message-----
From: php...@li... [mailto:php...@li...]
Sent: Sunday, April 17, 2011 4:07 PM
To: php...@li...
Subject: [Php-java-bridge-users] PHP/JAVA Bridge Write socket error
Hi all,
I successfully installed PHP/JAVA Bridge on my development machine, without any noticeable problem, but doing the exact same things on main test server doesn't work.
My development machine is under Windows 7/IIS/Tomcat, the server under Windows 2008 Server/IIS/Tomcat.
When I try to test (first time) the JavaBridge package, it throws :
exception
javax.servlet.ServletException: php.java.bridge.http.FCGIConnectException:
Could not connect to server
php.java.servlet.fastcgi.FastCGIServlet.init(FastCGIServlet.java:133)
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:462)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100
)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:562)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:395)
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:
306)
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(H
ttp11AprProtocol.java:323)
org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:
1719)
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
Source)
java.lang.Thread.run(Unknown Source)
php.java.bridge.http.FCGIConnectException: Could not connect to server
php.java.bridge.http.NPChannelFactory.test(NPChannelFactory.java:66)
php.java.servlet.fastcgi.FastCGIServlet.init(FastCGIServlet.java:131)
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:462)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100
)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:562)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:395)
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:
306)
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(H
ttp11AprProtocol.java:323)
org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:
1719)
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
Source)
java.lang.Thread.run(Unknown Source)
java.io.IOException: File \\.\pipe\C:\Program Files\Apache Software Foundation\Tomcat 7.0\temp\JavaBridge3094708770733451644.socket not writable
php.java.bridge.http.NPChannelFactory.test(NPChannelFactory.java:66)
php.java.servlet.fastcgi.FastCGIServlet.init(FastCGIServlet.java:131)
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:462)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100
)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:562)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:395)
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:
306)
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(H
ttp11AprProtocol.java:323)
org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:
1719)
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
Source)
java.lang.Thread.run(Unknown Source)
And while refreshing the page, I got :
javax.servlet.ServletException: No connection pool
php.java.servlet.fastcgi.FastCGIServlet.init(FastCGIServlet.java:135)
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:462)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100
)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:562)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:395)
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:
306)
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(H
ttp11AprProtocol.java:323)
org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:
1719)
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.lang.Thread.run(Unknown Source)
Did anyone had the same problem ?
Any clues ?
Thanks all !
--
Stéphane SOCHACKI - CTO
ilist5 - Rankmill (http://www.rankmill.com)
6, rue de Cursol
33000 Bordeaux - FRANCE
Tel : (33)(0)620 688 308
------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload Consolidation -- Increasing the use of server virtualization is a top priority.Virtualization can reduce costs, simplify management, and improve application availability and disaster protection. Learn more about boosting the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that the DnB NOR Group
cannot accept any payment orders or other legally binding correspondence with
customers as a part of an email.
This email message has been virus checked by the anti virus programs used
in the DnB NOR Group.
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
From: <php...@li...> - 2011-04-17 21:16:52
|
Hi, and thanks for your quick answer. Perhaps am I missing something, but I first checked the installation in console mode : PS > java -classpath .\JavaBridge.war TestInstallation Starting a simple servlet engine: [C:\Program Files\Java\jre6\bin\java, -jar, C:\Users\stephane\Desktop\tomcat\php-java-bridge_6.2.1_documentation\.\ext\J avaBridge.jar, SERVLET_LOCAL:8081] Invoking php: [php-cgi, -n, -d, allow_url_include=On, C:\Users\stephane\Desktop\tomcat\php-java-bridge_6.2.1_documentation\.\test. php] Now check the C:\Users\stephane\Desktop\tomcat\php-java-bridge_6.2.1_documentation\.\RESUL T.html. Read the INSTALL.J2EE and/or INSTALL.J2SE documents. Then I tried this little php script : <?php echo "PHP running using the " . php_sapi_name() . " SAPI"; ?> Which gives : PHP running using the cgi-fcgi SAPI Do you see something wrong for this part ? -----Message d'origine----- De : php...@li... [mailto:php...@li...] Envoyé : dimanche 17 avril 2011 19:57 À : php...@li... Objet : Re: [Php-java-bridge-users] PHP/JAVA Bridge Write socket error Hi, this usually means that PHP FastCGI SAPI is not installed. Please check the server log for details. Regards, Jost Bökemeier ---------------------------------------------------------------------------- -- Benefiting from Server Virtualization: Beyond Initial Workload Consolidation -- Increasing the use of server virtualization is a top priority.Virtualization can reduce costs, simplify management, and improve application availability and disaster protection. Learn more about boosting the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
|
From: <php...@li...> - 2011-04-17 17:56:46
|
Hi, this usually means that PHP FastCGI SAPI is not installed. Please check the server log for details. Regards, Jost Bökemeier |
|
From: <php...@li...> - 2011-04-17 15:07:28
|
Hi all,
I successfully installed PHP/JAVA Bridge on my development machine, without
any noticeable problem, but doing the exact same things on main test server
doesnt work.
My development machine is under Windows 7/IIS/Tomcat, the server under
Windows 2008 Server/IIS/Tomcat.
When I try to test (first time) the JavaBridge package, it throws :
exception
javax.servlet.ServletException: php.java.bridge.http.FCGIConnectException:
Could not connect to server
php.java.servlet.fastcgi.FastCGIServlet.init(FastCGIServlet.java:133)
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:462)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100
)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:562)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:395)
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:
306)
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(H
ttp11AprProtocol.java:323)
org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:
1719)
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
Source)
java.lang.Thread.run(Unknown Source)
php.java.bridge.http.FCGIConnectException: Could not connect to server
php.java.bridge.http.NPChannelFactory.test(NPChannelFactory.java:66)
php.java.servlet.fastcgi.FastCGIServlet.init(FastCGIServlet.java:131)
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:462)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100
)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:562)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:395)
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:
306)
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(H
ttp11AprProtocol.java:323)
org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:
1719)
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
Source)
java.lang.Thread.run(Unknown Source)
java.io.IOException: File \\.\pipe\C:\Program Files\Apache Software
Foundation\Tomcat 7.0\temp\JavaBridge3094708770733451644.socket not writable
php.java.bridge.http.NPChannelFactory.test(NPChannelFactory.java:66)
php.java.servlet.fastcgi.FastCGIServlet.init(FastCGIServlet.java:131)
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:462)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100
)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:562)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:395)
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:
306)
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(H
ttp11AprProtocol.java:323)
org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:
1719)
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
Source)
java.lang.Thread.run(Unknown Source)
And while refreshing the page, I got :
javax.servlet.ServletException: No connection pool
php.java.servlet.fastcgi.FastCGIServlet.init(FastCGIServlet.java:135)
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:462)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100
)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:562)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:395)
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:
306)
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(H
ttp11AprProtocol.java:323)
org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:
1719)
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.lang.Thread.run(Unknown Source)
Did anyone had the same problem ?
Any clues ?
Thanks all !
--
Stéphane SOCHACKI - CTO
ilist5 - Rankmill (http://www.rankmill.com)
6, rue de Cursol
33000 Bordeaux - FRANCE
Tel : (33)(0)620 688 308
|
|
From: <php...@li...> - 2011-04-13 15:07:56
|
Hello! I'm so confused... I have a java code which works fine, but it
doesn't with php.
I create a log file, it should open the existing one (/home/tomcat6/log) and
write on it, but it creates a new file (/home/tomcat/log.1,
/home/tomcat/log.2,...) when I execute my code, this is it (java):
import java.io.IOException;
import java.util.logging.FileHandler;
import java.util.logging.Logger;
import java.util.logging.SimpleFormatter;
public class log {
public static Logger log;
static{
try {
FileHandler fh = new
FileHandler("/home/tomcat6/log.log", true);
fh.setFormatter(new SimpleFormatter());
log = Logger.getLogger("log.class");
log.addHandler(fh);
log.info("hello!!");
}
catch (IOException e) {
}
}
}
I suppose it could be a permission problem, so, I tried with chmod 777 but
it didn't work, do I need some extension to install or something like that?
Thank you in advance!!
|
|
From: <php...@li...> - 2011-04-11 11:08:07
|
I finally solved it. Thank you so much for your help!! Rocío Gómez Escribano r....@in... Polígono Campollano C/F, nº21T 02007 Albacete (España) Tlf:967-504-513 Fax: 967-504-513 www.ingenia-soluciones.com -----Mensaje original----- De: php...@li... [mailto:php...@li...] Enviado el: lunes, 11 de abril de 2011 9:39 Para: php...@li... Asunto: Re: [Php-java-bridge-users] help with php-java-bridge and mysql Thank you so much, but I can't getting it up. I create a link from mysql-connector to /usr/share/tomcat8/lib, I create a new folder in /var/lib/tomcat6/webapps/ called mysql, where I create a folder WEB-INF, I create a file web.xml in it, it contains this: <?xml version="1.0" encoding="ISO-8859-1"?> <java:comp/env> <description> </description> <res-ref-name> jdbc/EmployeeDB </res-ref-name> <res-type> javax.sql.DataSource </res-type> <res-auth> Container </res-auth> <java:comp/env> <Context java:comp/env> <Resource name="jdbc/EmployeeDB" auth="Container" type="javax.sql.DataSource" username="dbusername" password="dbpassword" driverClassName="org.hsql.jdbcDriver" url="jdbc:HypersonicSQL:database" maxActive="8" maxIdle="4"/> </Context> Now the java method is: public String connectDB(){ String returned; try{ Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup("java:comp/env"); DataSource ds = (DataSource) envCtx.lookup("jdbc/EmployeeDB"); Connection conn = ds.getConnection(); //... use this connection to access the database ... conn.close(); returned = "bne"; } catch (NamingException ne) { returned = ne.toString(); } catch (SQLException e){ returned = e.toString(); } return returned; } I have this answer: javax.naming.NameNotFoundException: Name jdbc is not bound in this Context It's driving me crazy!!! Saludos Rocío Gómez Escribano -----Mensaje original----- De: php...@li... [mailto:php...@li...] Enviado el: viernes, 08 de abril de 2011 21:04 Para: php...@li... Asunto: Re: [Php-java-bridge-users] help with php-java-bridge and mysql Just add mysql driver. See http://tomcat.apache.org/tomcat-6.0-doc/jndi-resources-howto.html > java_require('/var/www/bridge/mysql-connector-java-5.1.15-bin.jar'); Err, what does that supposed to do?!? ---------------------------------------------------------------------------- -- Xperia(TM) PLAY It's a major breakthrough. An authentic gaming smartphone on the nation's most reliable network. And it wants your games. http://p.sf.net/sfu/verizon-sfdev _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users ---------------------------------------------------------------------------- -- Xperia(TM) PLAY It's a major breakthrough. An authentic gaming smartphone on the nation's most reliable network. And it wants your games. http://p.sf.net/sfu/verizon-sfdev _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
|
From: <php...@li...> - 2011-04-11 07:41:33
|
Thank you so much, but I can't getting it up.
I create a link from mysql-connector to /usr/share/tomcat8/lib,
I create a new folder in /var/lib/tomcat6/webapps/ called mysql, where I
create a folder WEB-INF, I create a file web.xml in it, it contains this:
<?xml version="1.0" encoding="ISO-8859-1"?>
<java:comp/env>
<description>
</description>
<res-ref-name>
jdbc/EmployeeDB
</res-ref-name>
<res-type>
javax.sql.DataSource
</res-type>
<res-auth>
Container
</res-auth>
<java:comp/env>
<Context java:comp/env>
<Resource name="jdbc/EmployeeDB"
auth="Container"
type="javax.sql.DataSource"
username="dbusername"
password="dbpassword"
driverClassName="org.hsql.jdbcDriver"
url="jdbc:HypersonicSQL:database"
maxActive="8"
maxIdle="4"/>
</Context>
Now the java method is:
public String connectDB(){
String returned;
try{
Context initCtx = new InitialContext();
Context envCtx = (Context) initCtx.lookup("java:comp/env");
DataSource ds = (DataSource)
envCtx.lookup("jdbc/EmployeeDB");
Connection conn = ds.getConnection();
//... use this connection to access the database ...
conn.close();
returned = "bne";
} catch (NamingException ne) {
returned = ne.toString();
} catch (SQLException e){
returned = e.toString();
}
return returned;
}
I have this answer:
javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
It's driving me crazy!!!
Saludos
Rocío Gómez Escribano
-----Mensaje original-----
De: php...@li...
[mailto:php...@li...]
Enviado el: viernes, 08 de abril de 2011 21:04
Para: php...@li...
Asunto: Re: [Php-java-bridge-users] help with php-java-bridge and mysql
Just add mysql driver. See
http://tomcat.apache.org/tomcat-6.0-doc/jndi-resources-howto.html
> java_require('/var/www/bridge/mysql-connector-java-5.1.15-bin.jar');
Err, what does that supposed to do?!?
----------------------------------------------------------------------------
--
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|
|
From: <php...@li...> - 2011-04-08 19:04:03
|
Just add mysql driver. See http://tomcat.apache.org/tomcat-6.0-doc/jndi-resources-howto.html > java_require('/var/www/bridge/mysql-connector-java-5.1.15-bin.jar'); Err, what does that supposed to do?!? |
|
From: <php...@li...> - 2011-04-08 14:12:26
|
Hi again! I tried to solve my problema, but it didn't work:
Java :
public class pruebaLog {
public static String connectDB(){
Connection conn = null;
String returned;
try {
Class.forName("com.mysql.jdbc.Driver").newInstance();
conn =
DriverManager.getConnection("jdbc:mysql://localhost/spb",
"root", "Administrad0r");
returned= open;
} catch (Exception e){
returned = e.toString();
}
return returned;
}
}
And the php:
<?php
require_once('./JavaBridge/java/Java.inc');
java_require('/var/www/bridge/java/pruebaLog.jar');
java_require('/var/www/bridge/mysql-connector-java-5.1.15-bin.jar');
try{
$prueba = new Java('pruebaLog');
echo $prueba -> connectDB();
} catch (JavaException $e){
echo "ERROR". "<br>". $e;
}
?>
And the same exception
java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
It's driving me crazy! Any idea??
Thank you so much!!!
Saludos
Rocío Gómez Escribano
-----Mensaje original-----
De: php...@li...
[mailto:php...@li...]
Enviado el: viernes, 08 de abril de 2011 12:39
Para: php...@li...
Asunto: Re: [Php-java-bridge-users] help with php-java-bridge and mysql
JM!! Thanks! It helped!! But I can't understand it
This is the exception
java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
Maybe it can't find the driver? If I execute the java class with java it
works, so, I quite sure it should work...
Thank you so much!!
Saludos
Rocío Gómez Escribano
-----Mensaje original-----
De: php...@li...
[mailto:php...@li...]
Enviado el: viernes, 08 de abril de 2011 11:55
Para: php...@li...
Asunto: Re: [Php-java-bridge-users] help with php-java-bridge and mysql
Hi Rocio,
Instead of returning "no", you should display the exception message, that
would help you to solve the problem for sure.
Hope this helps,
JM.
On Fri, Apr 8, 2011 at 5:08 PM, <php...@li...
> wrote:
> Hello, Im trying to use php-java bridge, but I find it impossible!
>
>
>
> Basic examples work without problem, now, I want to connect php with mysql
> using java.
>
>
>
> This is my code:
>
>
>
> Java :
>
>
>
> public class pruebaLog {
>
>
>
> public static String connectDB(){
>
> Connection conn = null;
>
> String returned;
>
> try {
>
> Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
>
> conn =
DriverManager.getConnection("jdbc:mysql://localhost/spb",
> "root", "Administrad0r");
>
> returned= open;
>
> } catch (Exception e){
>
> returned = "no";
>
> }
>
> return returned;
>
>
>
> }
>
> }
>
>
>
> And the php:
>
>
>
> <?php
>
>
>
> require_once('./JavaBridge/java/Java.inc');
>
>
>
> java_require('/var/www/bridge/java/pruebaLog.jar');
>
>
>
> try{
>
> $prueba = new Java('pruebaLog');
>
> echo $prueba -> connectDB();
>
> } catch (JavaException $e){
>
> echo "ERROR". "<br>". $e;
>
> }
>
>
>
> ?>
>
>
>
> It shows no, I cant understand why!
>
>
>
> Thank you so much!!
>
>
>
>
>
> Saludos
>
> Rocío Gómez Escribano
>
>
>
>
>
----------------------------------------------------------------------------
--
> Xperia(TM) PLAY
> It's a major breakthrough. An authentic gaming
> smartphone on the nation's most reliable network.
> And it wants your games.
> http://p.sf.net/sfu/verizon-sfdev
> _______________________________________________
> php-java-bridge-users mailing list
> php...@li...
> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
>
----------------------------------------------------------------------------
--
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
----------------------------------------------------------------------------
--
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|
|
From: <php...@li...> - 2011-04-08 10:41:37
|
JM!! Thanks! It helped!! But I can't understand it
This is the exception
java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
Maybe it can't find the driver? If I execute the java class with java it
works, so, I quite sure it should work...
Thank you so much!!
Saludos
Rocío Gómez Escribano
-----Mensaje original-----
De: php...@li...
[mailto:php...@li...]
Enviado el: viernes, 08 de abril de 2011 11:55
Para: php...@li...
Asunto: Re: [Php-java-bridge-users] help with php-java-bridge and mysql
Hi Rocio,
Instead of returning "no", you should display the exception message, that
would help you to solve the problem for sure.
Hope this helps,
JM.
On Fri, Apr 8, 2011 at 5:08 PM, <php...@li...
> wrote:
> Hello, Im trying to use php-java bridge, but I find it impossible!
>
>
>
> Basic examples work without problem, now, I want to connect php with mysql
> using java.
>
>
>
> This is my code:
>
>
>
> Java :
>
>
>
> public class pruebaLog {
>
>
>
> public static String connectDB(){
>
> Connection conn = null;
>
> String returned;
>
> try {
>
> Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
>
> conn =
DriverManager.getConnection("jdbc:mysql://localhost/spb",
> "root", "Administrad0r");
>
> returned= open;
>
> } catch (Exception e){
>
> returned = "no";
>
> }
>
> return returned;
>
>
>
> }
>
> }
>
>
>
> And the php:
>
>
>
> <?php
>
>
>
> require_once('./JavaBridge/java/Java.inc');
>
>
>
> java_require('/var/www/bridge/java/pruebaLog.jar');
>
>
>
> try{
>
> $prueba = new Java('pruebaLog');
>
> echo $prueba -> connectDB();
>
> } catch (JavaException $e){
>
> echo "ERROR". "<br>". $e;
>
> }
>
>
>
> ?>
>
>
>
> It shows no, I cant understand why!
>
>
>
> Thank you so much!!
>
>
>
>
>
> Saludos
>
> Rocío Gómez Escribano
>
>
>
>
>
----------------------------------------------------------------------------
--
> Xperia(TM) PLAY
> It's a major breakthrough. An authentic gaming
> smartphone on the nation's most reliable network.
> And it wants your games.
> http://p.sf.net/sfu/verizon-sfdev
> _______________________________________________
> php-java-bridge-users mailing list
> php...@li...
> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
>
----------------------------------------------------------------------------
--
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|
|
From: <php...@li...> - 2011-04-08 10:21:23
|
Hi Rocio,
Instead of returning "no", you should display the exception message, that
would help you to solve the problem for sure.
Hope this helps,
JM.
On Fri, Apr 8, 2011 at 5:08 PM, <php...@li...
> wrote:
> Hello, I’m trying to use php-java bridge, but I find it impossible!
>
>
>
> Basic examples work without problem, now, I want to connect php with mysql
> using java.
>
>
>
> This is my code:
>
>
>
> Java :
>
>
>
> public class pruebaLog {
>
>
>
> public static String connectDB(){
>
> Connection conn = null;
>
> String returned;
>
> try {
>
> Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
>
> conn = DriverManager.getConnection("jdbc:mysql://localhost/spb",
> "root", "Administrad0r");
>
> returned= “open”;
>
> } catch (Exception e){
>
> returned = "no";
>
> }
>
> return returned;
>
>
>
> }
>
> }
>
>
>
> And the php:
>
>
>
> <?php
>
>
>
> require_once('./JavaBridge/java/Java.inc');
>
>
>
> java_require('/var/www/bridge/java/pruebaLog.jar');
>
>
>
> try{
>
> $prueba = new Java('pruebaLog');
>
> echo $prueba -> connectDB();
>
> } catch (JavaException $e){
>
> echo "ERROR". "<br>". $e;
>
> }
>
>
>
> ?>
>
>
>
> It shows “no”, I can’t understand why!
>
>
>
> Thank you so much!!
>
>
>
>
>
> Saludos
>
> Rocío Gómez Escribano
>
>
>
>
> ------------------------------------------------------------------------------
> Xperia(TM) PLAY
> It's a major breakthrough. An authentic gaming
> smartphone on the nation's most reliable network.
> And it wants your games.
> http://p.sf.net/sfu/verizon-sfdev
> _______________________________________________
> php-java-bridge-users mailing list
> php...@li...
> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
>
|
|
From: <php...@li...> - 2011-04-08 09:51:01
|
Hello, Im trying to use php-java bridge, but I find it impossible!
Basic examples work without problem, now, I want to connect php with mysql
using java.
This is my code:
Java :
public class pruebaLog {
public static String connectDB(){
Connection conn = null;
String returned;
try {
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
conn = DriverManager.getConnection("jdbc:mysql://localhost/spb",
"root", "Administrad0r");
returned= open;
} catch (Exception e){
returned = "no";
}
return returned;
}
}
And the php:
<?php
require_once('./JavaBridge/java/Java.inc');
java_require('/var/www/bridge/java/pruebaLog.jar');
try{
$prueba = new Java('pruebaLog');
echo $prueba -> connectDB();
} catch (JavaException $e){
echo "ERROR". "<br>". $e;
}
?>
It shows no, I cant understand why!
Thank you so much!!
Saludos
Rocío Gómez Escribano
|