From: <php...@li...> - 2010-09-22 16:35:04
|
Hi, JBOSS, and its own servlet container. I wrote a servlet that replaced this in FastCGIServlet protected void setupRequestVariables(HttpServletRequest req, Environment env) { super.setupRequestVariables(req, env); env.servletPath = (String) req.getAttribute("javax.servlet.include.servlet_path"); if (env.servletPath == null) { env.servletPath = req.getServletPath() + req.getPathInfo(); } } And I can get to pages with https://localhost:8080/ctx/directory/directory/test.php now. But not sure if I should do that ... PS. I don't know how to reply to my own email in digest mode... Thanks. Theen-Theen Message: 5 Date: Wed, 22 Sep 2010 08:54:18 +0200 From: php...@li...<mailto:php...@li...> Subject: Re: [Php-java-bridge-users] No input file specified. To: php...@li...<mailto:php...@li...> Message-ID: <AANLkTi=FuwJ5jX9VPvPEaxGLMrDEdzZH_0pF=3M...@ma...<mailto:AANLkTi=FuwJ5jX9VPvPEaxGLMrDEdzZH_0pF=3M...@ma...>> Content-Type: text/plain; charset=UTF-8 jboss/jetty or jboss/tomcat? On Sep 21, 2010, at 1:40 PM, Theen-Theen Tan wrote: Hi, I am running - on MacOSX - php-cgi compiled using Macport. - latest php-java-bridge - JBOSS 4.0.3 - I do not have the doc_root variable set in my php.ini I can access the test.php page (which is a call to phpinfo) fine from php-cgi directly, or when I place it one level from my web app root. But I get "No input file specified." on the page when I place the file under a directory. Here are the various environment parameters that is useful for debugging. For me, it looks like both SCRIPT_NAME and SCRIPT_FILENAME are wrong. This fails https://localhost:8080/ctx/directory/directory/test.php PATH_INFO=/test.php PATH_TRANSLATED=/<JBOSS_HOME>/server/myserver/./deploy/ctx.war/test.php SCRIPT_NAME=/ctx/directory SCRIPT_FILENAME=/<JBOSS_HOME>/server/myserver/./deploy/ctx.war/directory This works https://localhost:8080/ctx/test.php SCRIPT_NAME=/ctx/test.php SCRIPT_FILENAME=/<JBOSS_HOME>/server/myserver/./deploy/ctx.war/test.php What can be done? Thanks. Theen-Theen |