Php java bridge not working on tomcat 6

I just installed the current version of Tomcat on my mac because I wanted to try the PHP Java bridge.

I followed the manual here http://php-java-bridge.sourceforge.net/pjb/tomcat6.php , but when I insert the xml configuration into the tomcat configuration file

<listener><listener-class>php.java.servlet.ContextLoaderListener</listener-class></listener> <servlet><servlet-name>PhpJavaServlet</servlet-name><servlet-class>php.java.servlet.PhpJavaServlet</servlet-class></servlet> <servlet><servlet-name>PhpCGIServlet</servlet-name><servlet-class>php.java.servlet.PhpCGIServlet</servlet-class> <init-param><param-name>prefer_system_php_exec</param-name><param-value>On</param-value></init-param> <init-param><param-name>php_include_java</param-name><param-value>On</param-value></init-param> </servlet> <servlet-mapping><servlet-name>PhpJavaServlet</servlet-name><url-pattern>*.phpjavabridge</url-pattern> </servlet-mapping> <servlet-mapping><servlet-name>PhpCGIServlet</servlet-name><url-pattern>*.php</url-pattern></servlet-mapping> 

nothing works - all I get when I open localhost: 8080 is "404 error - resource () not found". If I leave these lines, at least I get a welcome page, but then the directory where I put the phpJavaBridge application shows only a resource () error.

I am new to development with Tomcat, so I really don't know how to fix this problem. Any help would be greatly appreciated!

+6
java php tomcat6
source share
2 answers

Your version of Java is deprecated. Use Sun Java 6 or higher instead.

"NoClassDefFoundError" means that the Sun script api is missing. Find script -api.jar and install this to get rid of this error.

+3
source share

Deploying JavaBridge.war is easy https://sourceforge.net/projects/php-java-bridge/files/Binary%20package/php-java-bridge_6.2.1/php-java-bridge_6.2.1_documentation.zip

unzip php-java-bridge_6.2.1_documentation.zip, you will find JavaBridge.war in the folder.

+1
source share

All Articles