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-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 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-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-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 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-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-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-07-21 13:13:44
|
Hello, As Hermod, I am facing the same problem. Just after restart the system and start the Tomcat service, the error happens. If I stop and start the Tomcat service, all works fine. How can I see if the FastCGI server is running ok? Where is the global.properties file to check? Thanks, Ely Matos -----Original Message----- From: php...@li... [mailto:php...@li...] Sent: terça-feira, 19 de abril de 2011 01:12 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 |
From: <php...@li...> - 2011-07-22 07:27:08
|
Hi There is a global.properties.in in the JavaBridge.jar file. I am going to start to experiment with the MAX_WAIT parameter there and see what happens. Hermod -----Original Message----- From: php...@li... [mailto:php...@li...] Sent: Thursday, July 21, 2011 3:14 PM To: php...@li... Subject: Re: [Php-java-bridge-users] PHP/JAVA Bridge Write socket error Hello, As Hermod, I am facing the same problem. Just after restart the system and start the Tomcat service, the error happens. If I stop and start the Tomcat service, all works fine. How can I see if the FastCGI server is running ok? Where is the global.properties file to check? Thanks, Ely Matos -----Original Message----- From: php...@li... [mailto:php...@li...] Sent: terça-feira, 19 de abril de 2011 01:12 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 ------------------------------------------------------------------------------ 5 Ways to Improve & Secure Unified Communications Unified Communications promises greater efficiencies for business. UC can improve internal communications as well as offer faster, more efficient ways to interact with customers and streamline customer service. Learn more! http://www.accelacomm.com/jaw/sfnl/114/51426253/ _______________________________________________ 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. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * |