From: <php...@li...> - 2011-09-07 18:20:06
|
Hello, I have just starting using javabridge because another entity of a project I'm playing with needs it. I really don't use PHP so this is all very new to me, but for the mast part I have it working. that is until I add the cURL extension to the php config. the dll's are in the correct locations and other than that I'm not sure what else to look at. I am running a standard tomcat6 install through eclipse. I used the msi file for the php and extension install. (PHP 5.2.17) Attached is the stack I get when starting the server in eclipse. This is happening when the server is trying to initialize the application. java.io.IOException: File \\.\pipe\C:\Apache_Software_Foundation\apache-tomcat-6.0.32\temp\JavaBridge64116.socket not writable at php.java.bridge.http.NPChannelFactory.test(NPChannelFactory.java:66) at php.java.servlet.fastcgi.FastCGIServlet.init(FastCGIServlet.java:131) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4420) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4733) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1315) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1061) at org.apache.catalina.core.StandardHost.start(StandardHost.java:840) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463) at org.apache.catalina.core.StandardService.start(StandardService.java:525) at org.apache.catalina.core.StandardServer.start(StandardServer.java:754) at org.apache.catalina.startup.Catalina.start(Catalina.java:595) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) any help would be much appreciated. Al Dispennette |
From: <php...@li...> - 2011-09-07 20:28:28
|
Hi, > java.io.IOException: File > \\.\pipe\C:\Apache_Software_Foundation\apache-tomcat-6.0.32\temp\JavaBridge64116.socket > not writable this usually means that PHP has crashed during startup so that Java doesn't have a socket to write to. Please check your PHP installation php.ini file. (see result of http://.../phpinfo.php). > I used the msi file for the php and Don't. The PHP installer adds some obscure extensions, which will only work in certain environments (iis for example). Please remove the installed php.ini file and start with the recommended php.ini file from the zip download. You only need the php-cgi.exe and the php5[ts].dll (and optionally some php.ini file, if you want to load additional PHP extensions). Regards, Jost Bökemeier |
From: <php...@li...> - 2011-09-08 15:54:22
|
Thanks for the replies I have made changes to give all permissions to the temp folder as well as using the default ini file from the zip from the PHP site. all of this was to no avail.the phpinfo show the session save directory as the same temp folder that is failing when I add the cURL extension. I can add any other extension and everything works fine it is only the cURL extension that fails. Al Dispennette ________________________________ From: "php...@li..." <php...@li...> To: php...@li... Sent: Wednesday, September 7, 2011 1:28 PM Subject: Re: [Php-java-bridge-users] %TOMCAT_HOME%\temp\JavaBridge64116.socket not writable Hi, > java.io.IOException: File > \\.\pipe\C:\Apache_Software_Foundation\apache-tomcat-6.0.32\temp\JavaBridge64116.socket > not writable this usually means that PHP has crashed during startup so that Java doesn't have a socket to write to. Please check your PHP installation php.ini file. (see result of http://.../phpinfo.php). > I used the msi file for the php and Don't. The PHP installer adds some obscure extensions, which will only work in certain environments (iis for example). Please remove the installed php.ini file and start with the recommended php.ini file from the zip download. You only need the php-cgi.exe and the php5[ts].dll (and optionally some php.ini file, if you want to load additional PHP extensions). Regards, Jost Bökemeier ------------------------------------------------------------------------------ Using storage to extend the benefits of virtualization and iSCSI Virtualization increases hardware utilization and delivers a new level of agility. Learn what those decisions are and how to modernize your storage and backup environments for virtualization. http://www.accelacomm.com/jaw/sfnl/114/51434361/ _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
From: <php...@li...> - 2011-09-08 16:39:43
|
Hi, > I have made changes to give all permissions to the Adjusting folder permissions won't change anything; \\pipe\...is a virtual name of a pipe used for php<->java communication. > I can add any other extension and everything works fine it is only the cURL > extension that fails. Never heard of this php extension, sorry. The page http://php.net/manual/de/book.curl.php mentions problems with win7, though. Regards, Jost Bökemeier |
From: <php...@li...> - 2011-09-07 18:36:45
|
Hi Al, I'm not convinced this problem is related to the cURL extension. Instead, it sounds like there are some file permissions that aren't correct for your Tomcat installation. Find the user or system account that Tomcat uses to run. Then make sure that it has permissions to write to the folder C:\Apache_Software_Foundation\apache-tomcat-6.0.32\temp\ Just a thought for something you should check. Thanks, Brandon (Just some random but very satisfied user) On Wed, Sep 7, 2011 at 2:19 PM, <php...@li... > wrote: > Hello, > > I have just starting using javabridge because another entity of a project > I'm playing with needs it. > I really don't use PHP so this is all very new to me, but for the mast part > I have it working. > that is until I add the cURL extension to the php config. > the dll's are in the correct locations and other than that I'm not sure > what else to look at. > I am running a standard tomcat6 install through eclipse. I used the msi > file for the php and extension install. (PHP 5.2.17) > Attached is the stack I get when starting the server in eclipse. This is > happening when the server is trying to initialize the application. > > java.io.IOException: File > \\.\pipe\C:\Apache_Software_Foundation\apache-tomcat-6.0.32\temp\JavaBridge64116.socket > not writable > at php.java.bridge.http.NPChannelFactory.test(NPChannelFactory.java:66) > at php.java.servlet.fastcgi.FastCGIServlet.init(FastCGIServlet.java:131) > at > org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173) > at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993) > at > org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4420) > at > org.apache.catalina.core.StandardContext.start(StandardContext.java:4733) > at > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799) > at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779) > at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601) > at > org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079) > at > org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002) > at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506) > at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1315) > at > org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324) > at > org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142) > at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1061) > at org.apache.catalina.core.StandardHost.start(StandardHost.java:840) > at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) > at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463) > at org.apache.catalina.core.StandardService.start(StandardService.java:525) > at org.apache.catalina.core.StandardServer.start(StandardServer.java:754) > at org.apache.catalina.startup.Catalina.start(Catalina.java:595) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) > > any help would be much appreciated. > > Al Dispennette > > ------------------------------------------------------------------------------ > Using storage to extend the benefits of virtualization and iSCSI > Virtualization increases hardware utilization and delivers a new level of > agility. Learn what those decisions are and how to modernize your storage > and backup environments for virtualization. > http://www.accelacomm.com/jaw/sfnl/114/51434361/ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |