You can subscribe to this list here.
2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(6) |
Oct
(6) |
Nov
(8) |
Dec
(2) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
(19) |
Feb
(15) |
Mar
(10) |
Apr
(8) |
May
(7) |
Jun
(9) |
Jul
(13) |
Aug
(31) |
Sep
(111) |
Oct
(52) |
Nov
(72) |
Dec
(42) |
2006 |
Jan
(21) |
Feb
(32) |
Mar
(33) |
Apr
(24) |
May
(15) |
Jun
(40) |
Jul
(32) |
Aug
(19) |
Sep
(38) |
Oct
(37) |
Nov
(63) |
Dec
(37) |
2007 |
Jan
(18) |
Feb
(39) |
Mar
(69) |
Apr
(49) |
May
(71) |
Jun
(59) |
Jul
(71) |
Aug
(85) |
Sep
(46) |
Oct
(14) |
Nov
(25) |
Dec
(56) |
2008 |
Jan
(24) |
Feb
(77) |
Mar
(104) |
Apr
(44) |
May
(41) |
Jun
(11) |
Jul
(31) |
Aug
(59) |
Sep
(44) |
Oct
(86) |
Nov
(66) |
Dec
(93) |
2009 |
Jan
(88) |
Feb
(41) |
Mar
(49) |
Apr
(135) |
May
(22) |
Jun
(31) |
Jul
(60) |
Aug
(71) |
Sep
(76) |
Oct
(18) |
Nov
(52) |
Dec
(20) |
2010 |
Jan
(8) |
Feb
(50) |
Mar
(35) |
Apr
(48) |
May
(46) |
Jun
(84) |
Jul
(38) |
Aug
(61) |
Sep
(51) |
Oct
(31) |
Nov
(17) |
Dec
(18) |
2011 |
Jan
(51) |
Feb
(14) |
Mar
(17) |
Apr
(23) |
May
(15) |
Jun
(11) |
Jul
(5) |
Aug
(5) |
Sep
(15) |
Oct
(8) |
Nov
(5) |
Dec
(25) |
2012 |
Jan
(2) |
Feb
(4) |
Mar
(6) |
Apr
(9) |
May
(27) |
Jun
(32) |
Jul
(36) |
Aug
(10) |
Sep
(16) |
Oct
(3) |
Nov
(13) |
Dec
(7) |
2013 |
Jan
(1) |
Feb
(4) |
Mar
|
Apr
(1) |
May
|
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(4) |
Oct
(2) |
Nov
(1) |
Dec
|
2014 |
Jan
|
Feb
|
Mar
(2) |
Apr
(1) |
May
(2) |
Jun
(9) |
Jul
(5) |
Aug
(2) |
Sep
(4) |
Oct
|
Nov
|
Dec
|
2015 |
Jan
(3) |
Feb
(2) |
Mar
(4) |
Apr
(3) |
May
(1) |
Jun
(2) |
Jul
|
Aug
(2) |
Sep
(5) |
Oct
(1) |
Nov
|
Dec
|
2016 |
Jan
|
Feb
(5) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(5) |
Sep
(3) |
Oct
|
Nov
|
Dec
|
2017 |
Jan
(6) |
Feb
|
Mar
|
Apr
(10) |
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(1) |
Dec
|
2018 |
Jan
(2) |
Feb
(5) |
Mar
|
Apr
|
May
(1) |
Jun
(3) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2020 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
2021 |
Jan
(5) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2023 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <php...@li...> - 2011-05-01 01:38:18
|
I upgraded to Glassfish 3.1 and that problem seems to be fixed. However I'm getting the following exception whenever I have HAProxy sitting in between apache/php and glassfish... [#|2011-04-26T13:48:10.022-0500|SEVERE|sun-appserver2.1| javax.enterprise.system.container.web| _ThreadID=22;_ThreadName=httpSSLWorkerThread-38080-1;_RequestID=10483a26-c954-4b1f-a564-15fa7c54fd6f;|StandardWrapperValve[uibServlet]: PWC1406: Servlet.service() for servlet uibServlet threw exception java.io.IOException: Invalid chunk header at org.apache.coyote.http11.filters.ChunkedInputFilter.doRead(ChunkedInputFilter.java:171) at org.apache.coyote.http11.InternalInputBuffer.doRead(InternalInputBuffer.java:722) at org.apache.coyote.Request.doRead(Request.java:482) at org.apache.coyote.tomcat5.InputBuffer.realReadBytes(InputBuffer.java:342) at org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:411) at org.apache.coyote.tomcat5.InputBuffer.read(InputBuffer.java:357) at org.apache.coyote.tomcat5.CoyoteInputStream.read(CoyoteInputStream.java:263) at php.java.bridge.Parser.read(Parser.java:94) at php.java.bridge.Parser.parse(Parser.java:176) at php.java.bridge.Request.handleRequest(Request.java:383) at php.java.bridge.Request.handleRequests(Request.java:500) at php.java.bridge.JavaBridge.handleRequests(JavaBridge.java:150) at php.java.servlet.RemoteHttpServletContextFactory.handleRequests(RemoteHttpServletContextFactory.java:262) at com.pedigree.lineage.web.servlets.UIBServlet.doPut(UIBServlet.java:1923) at javax.servlet.http.HttpServlet.service(HttpServlet.java:757) at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:333) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) at org.springframework.security.util.FilterChainProxy.doFilter(FilterChainProxy.java:169) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:236) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) at com.pedigree.web.support.filters.RequestTimingFilter.doFilter(RequestTimingFilter.java:74) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:313) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94) at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98) at com.sun.enterprise.ee.web.sessmgmt.SessionLockingStandardPipeline.invoke(SessionLockingStandardPipeline.java:120) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:291) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:666) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:597) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:872) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214) at com.sun.enterprise.web.portunif.PortUnificationPipeline$PUTask.doTask(PortUnificationPipeline.java:382) at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:264) at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106) It seems to be directly caused by HAproxy because it works fine without it in between. Has anyone seen this error message before? I'll try asking the HAproxy lists as well to see if they would know a work around. Thanks! On Thu, 2011-04-28 at 22:59 -0500, php...@li... wrote: > 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-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 |
From: <php...@li...> - 2011-03-29 17:20:05
|
Hi, i had a similar problem. In any case you need the tomcat. There is a xampp version with integrated tomcat. In that tomcat you integrate your java. Alltough there are more ways and im anything but an expert, I did it as follows: Build a jar with your classes and integrate them into the JavaBridge.war file. Just put them in the lib folder and do not forget to set the Manifest file of your jarfiles properly. Deploy JavaBridge.war on the tomcat. Then you include the Java.inc file via url import in your php script or (if you do not want to allow them) you follow the instructions of the last mailing list topic (look in the archiv). Now you can use the Java classes out of your jar file from php. To run your webservice you need to run both servers. I hope it isn't written to confusing. greets Frerik Am 29.03.2011 07:09, schrieb php...@li...: > means, i need to install java server support and use php/java bridge to overcome > this issue? > > > > > ________________________________ > From: "php...@li..." > <php...@li...> > To: php-java-bridge-users<php...@li...> > Sent: Tue, March 29, 2011 1:06:20 PM > Subject: Re: [Php-java-bridge-users] Do i need to use php/java > bridgeforthisproblem? > > it needs a java application server > > > ------------------ Original ------------------ > From: "php-java-bridge-users"<php...@li...>; > Date: Tue, Mar 29, 2011 12:32 PM > To: "php-java-bridge-users"<php...@li...>; > > Subject: Re: [Php-java-bridge-users] Do i need to use php/java > bridgeforthisproblem? > > > Can u please explain why? > > > > > > ________________________________ > From: "php...@li..." > <php...@li...> > To: php-java-bridge-users<php...@li...> > Sent: Tue, March 29, 2011 11:13:05 AM > Subject: Re: [Php-java-bridge-users] Do i need to use php/java bridge > forthisproblem? > > Install tomcat > > > ------------------ Original ------------------ > From: "php-java-bridge-users"<php...@li...>; > Date: Tue, Mar 29, 2011 10:40 AM > To: "php-java-bridge-users"<php...@li...>; > > Subject: Re: [Php-java-bridge-users] Do i need to use php/java bridge > forthisproblem? > > > its already installed > > > > > ________________________________ > From: "php...@li..." > <php...@li...> > To: php-java-bridge-users<php...@li...> > Sent: Tue, March 29, 2011 10:36:30 AM > Subject: Re: [Php-java-bridge-users] Do i need to use php/java bridge for > thisproblem? > > Install apache server for XMAPP and follow the instructions > > > ------------------ Original ------------------ > From: "php-java-bridge-users"<php...@li...>; > Date: Tue, Mar 29, 2011 10:33 AM > To: "php-java-bridge-users"<php...@li...>; > > Subject: [Php-java-bridge-users] Do i need to use php/java bridge for > thisproblem? > > > im using XAMPP means use apache and mysql database.XAMPP only allows PHP. > i want to generate something from user input and the generator is using java > application.currently, i post user input to database and i use JDBC to connect > to database and retrieve data from there... > but the problem is, i cant communicate with the client.currently i cant run my > java application through the website(GUI), i just compile using command > prompt.do i need to use php/java bridge to solve this issue? > this is my goal: users enter information-click run button-data sent to java > application to process-the result sent to database-user view the result > > i really need help!!!! > > thanks > ------------------------------------------------------------------------------ > Enable your software for Intel(R) Active Management Technology to meet the > growing manageability and security demands of your customers. Businesses > are taking advantage of Intel(R) vPro (TM) technology - will your software > be a part of the solution? Download the Intel(R) Manageability Checker > today! http://p.sf.net/sfu/intel-dev2devmar > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > ------------------------------------------------------------------------------ > Enable your software for Intel(R) Active Management Technology to meet the > growing manageability and security demands of your customers. Businesses > are taking advantage of Intel(R) vPro (TM) technology - will your software > be a part of the solution? Download the Intel(R) Manageability Checker > today! http://p.sf.net/sfu/intel-dev2devmar > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > ------------------------------------------------------------------------------ > Enable your software for Intel(R) Active Management Technology to meet the > growing manageability and security demands of your customers. Businesses > are taking advantage of Intel(R) vPro (TM) technology - will your software > be a part of the solution? Download the Intel(R) Manageability Checker > today! http://p.sf.net/sfu/intel-dev2devmar > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > ------------------------------------------------------------------------------ > Enable your software for Intel(R) Active Management Technology to meet the > growing manageability and security demands of your customers. Businesses > are taking advantage of Intel(R) vPro (TM) technology - will your software > be a part of the solution? Download the Intel(R) Manageability Checker > today! http://p.sf.net/sfu/intel-dev2devmar > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > ------------------------------------------------------------------------------ > Enable your software for Intel(R) Active Management Technology to meet the > growing manageability and security demands of your customers. Businesses > are taking advantage of Intel(R) vPro (TM) technology - will your software > be a part of the solution? Download the Intel(R) Manageability Checker > today! http://p.sf.net/sfu/intel-dev2devmar > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > ------------------------------------------------------------------------------ > Enable your software for Intel(R) Active Management Technology to meet the > growing manageability and security demands of your customers. Businesses > are taking advantage of Intel(R) vPro (TM) technology - will your software > be a part of the solution? Download the Intel(R) Manageability Checker > today! http://p.sf.net/sfu/intel-dev2devmar > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > ------------------------------------------------------------------------------ > Enable your software for Intel(R) Active Management Technology to meet the > growing manageability and security demands of your customers. Businesses > are taking advantage of Intel(R) vPro (TM) technology - will your software > be a part of the solution? Download the Intel(R) Manageability Checker > today! http://p.sf.net/sfu/intel-dev2devmar > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |
From: <php...@li...> - 2011-03-29 08:09:39
|
> Re: Not allowed to set allow_url_include. What now? Hi, use ini_set() in your own script at runtime. Tom |
From: <php...@li...> - 2011-03-29 05:09:39
|
means, i need to install java server support and use php/java bridge to overcome this issue? ________________________________ From: "php...@li..." <php...@li...> To: php-java-bridge-users <php...@li...> Sent: Tue, March 29, 2011 1:06:20 PM Subject: Re: [Php-java-bridge-users] Do i need to use php/java bridgeforthisproblem? it needs a java application server ------------------ Original ------------------ From: "php-java-bridge-users"<php...@li...>; Date: Tue, Mar 29, 2011 12:32 PM To: "php-java-bridge-users"<php...@li...>; Subject: Re: [Php-java-bridge-users] Do i need to use php/java bridgeforthisproblem? Can u please explain why? ________________________________ From: "php...@li..." <php...@li...> To: php-java-bridge-users <php...@li...> Sent: Tue, March 29, 2011 11:13:05 AM Subject: Re: [Php-java-bridge-users] Do i need to use php/java bridge forthisproblem? Install tomcat ------------------ Original ------------------ From: "php-java-bridge-users"<php...@li...>; Date: Tue, Mar 29, 2011 10:40 AM To: "php-java-bridge-users"<php...@li...>; Subject: Re: [Php-java-bridge-users] Do i need to use php/java bridge forthisproblem? its already installed ________________________________ From: "php...@li..." <php...@li...> To: php-java-bridge-users <php...@li...> Sent: Tue, March 29, 2011 10:36:30 AM Subject: Re: [Php-java-bridge-users] Do i need to use php/java bridge for thisproblem? Install apache server for XMAPP and follow the instructions ------------------ Original ------------------ From: "php-java-bridge-users"<php...@li...>; Date: Tue, Mar 29, 2011 10:33 AM To: "php-java-bridge-users"<php...@li...>; Subject: [Php-java-bridge-users] Do i need to use php/java bridge for thisproblem? im using XAMPP means use apache and mysql database.XAMPP only allows PHP. i want to generate something from user input and the generator is using java application.currently, i post user input to database and i use JDBC to connect to database and retrieve data from there... but the problem is, i cant communicate with the client.currently i cant run my java application through the website(GUI), i just compile using command prompt.do i need to use php/java bridge to solve this issue? this is my goal: users enter information-click run button-data sent to java application to process-the result sent to database-user view the result i really need help!!!! thanks ------------------------------------------------------------------------------ Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users ------------------------------------------------------------------------------ Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users ------------------------------------------------------------------------------ Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users ------------------------------------------------------------------------------ Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users ------------------------------------------------------------------------------ Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users ------------------------------------------------------------------------------ Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |