hi all
i am new to java
i want to run java php bridge as described here

now i am getting the following error

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: Could not connect to server
	php.java.servlet.fastcgi.FastCGIServlet.init(FastCGIServlet.java:133)
	org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
	org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
	org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:879)
	org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
	org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
	org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
	org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
	java.lang.Thread.run(Unknown Source)
root cause

php.java.bridge.http.FCGIConnectException: Could not connect to server
	php.java.bridge.http.NPChannelFactory.test(NPChannelFactory.java:64)
	php.java.servlet.fastcgi.FastCGIServlet.init(FastCGIServlet.java:131)
	org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
	org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
	org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:879)
	org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
	org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
	org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
	org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
	java.lang.Thread.run(Unknown Source)
root cause

java.io.IOException: File \\.\pipe\C:\Program Files\Apache Software Foundation\Tomcat 5.5\temp\JavaBridge614082128684791829.socket not writable
	php.java.bridge.http.FCGIConnectException.<init>(FCGIConnectException.java:37)
	php.java.bridge.http.NPChannelFactory.test(NPChannelFactory.java:64)
	php.java.servlet.fastcgi.FastCGIServlet.init(FastCGIServlet.java:131)
	org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
	org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
	org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:879)
	org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
	org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
	org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
	org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
	java.lang.Thread.run(Unknown Source)
root cause

java.io.IOException: PHP not found. Please install php-cgi. PHP test command was: [php-cgi, -v] 
	php.java.bridge.Util$Process.start(Util.java:1145)
	php.java.servlet.fastcgi.FCGIProcess.start(FCGIProcess.java:68)
	php.java.bridge.http.NPChannelFactory.doBind(NPChannelFactory.java:94)
	php.java.bridge.http.FCGIConnectionFactory.runFcgi(FCGIConnectionFactory.java:88)
	php.java.bridge.http.FCGIConnectionFactory$1.run(FCGIConnectionFactory.java:109)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.35 logs.

Apache Tomcat/5.5.35

Recommended Answers

All 5 Replies

What java code are you executing the generates the error?
How and where is the code being executed?

i am executing a php file simple with

phpinfo();

Is that a java method? What class is it in?
Where is the coding executing?
What starts the code's execution?

Is that a java method? What class is it in?
Where is the coding executing?
What starts the code's execution?

it is a php method
using java-php bridge to run php on tomcat. after installation, when i go to http://localhost:8080/myproject,
here it shows me this error

Sorry, I know nothing about using php methods.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.