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 |