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!
java php tomcat6
_max
source share