From: <php...@li...> - 2010-06-23 09:12:21
|
Hello, After further testing, it might actually be a network issue, but I don't understand it. The server is located on the local network. The web browsers on the company computers are set to work through the company's proxy. With the proxy, I can reach and run any of the Java applications without any problem. /JavaBridge/jsr223.jsp can be reached as I mentionned in my previous post, but all the .php files cannot be reached at all. When I disable the proxy, the Java applications are still available, and my Php application works too. But disabling the proxy is not a viable solution, and I don't have any admin rights to set up the network differently. That's why I would like to make it work connected through the proxy. So I tried to rename index.php into index.phtml. What I get is a uninterpreted php file (the text content of my php file. seems normal since the phtml extension is not mapped). Then I opened /JavaBridge/WEB-INF/web.xml and replaced <servlet-mapping> <servlet-name>PhpCGIServlet</servlet-name> <url-pattern>*.php</url-pattern> </servlet-mapping> by <servlet-mapping> <servlet-name>PhpCGIServlet</servlet-name> <url-pattern>*.phtml</url-pattern> </servlet-mapping> Then I tried to open index.phtml, but could not reach it. Can you confirm that the PhpCGIServlet mapping is only necessary in the JavaBridge/WEB-INF/web.xml ? I haven't added it in the main tomcat web.xml as I haven't found anything in the documentation that mentioned it. (Edit : I just tried to add it, but no changes). What I don't really understand is that when I am on the server and use localhost as my server address, it works great, so I guess php request and CGI servlet mapping is fine. And since other Java applications can work well when using the proxy, that means that the proxy is not a problem to run Java applications (JavaBridge is one of them, and jsr223.jsp can be reached) That's why I think you are right when saying there is something intercepting .php requests. To make it short : there is something that intercepts .php requests only when connected through the proxy. Everything else works. Any other idea ? Thanks a lot. Regards, Julien Mallet. On Wed, Jun 23, 2010 at 4:29 PM, <php...@li...> wrote: > Hi, > > >> I tried to run http://myServerIP:8080/JavaBridge/jsr223.jsp, and it >> can be reached. > > this means that the PHP/Java Bridge is up and running and can be > reached from a remote host. jsr223.jsp returns PHP-generated content. > > >> Does it confirm this is not a network issue ? > > Not necessarily. It could still be possible that some component is > intercepting *.php requests. > > Can you please rename index.php to index.phtml and try to access it? > If it works, please change the servlet mapping from WEB-INF/web.xml > from php to phtml. Does that work? > > > >> I have an exception report though. >> >> javax.servlet.ServletException: java/io/Closeable >> I forgot to add in my first post that I am using Tomcat 5.0.27, is >> that an issue ? > > This is another issue. Java 1.4 doesn't have java.io.Closeable, so > jsr223.jsp has caught an exception. Upgrading Java to 1.5 or 1.6 > should solve this issue. > > > Regards, > Jost Bökemeier > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > -- Julien Mallet Infopower Consultant +86 150 00 201 802 |