From: <php...@li...> - 2010-09-21 21:14:59
|
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 |
From: <php...@li...> - 2010-09-22 06:54:24
|
jboss/jetty or jboss/tomcat? On 9/21/10, php...@li... <php...@li...> 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 > ------------------------------------------------------------------------------ > Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing. > http://p.sf.net/sfu/novell-sfdev2dev > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |
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 |
From: <php...@li...> - 2010-09-22 17:01:11
|
Hi, you say "latest" PHP/Java Bridge version. I assume it is version 6.2.1RC3. -- latest stable is 5.4.something. > env.servletPath = (String) req.getAttribute("javax.servlet.include.servlet_path"); We've made a change regarding this, please see http://sourceforge.net/mailarchive/message.php?msg_id=AANLkTikUyejJ_jaZ9XBo2DUL1r9_RK6_W-bCyoByJ_4t%40mail.gmail.com > JBOSS, and its own servlet container. I don't think jboss uses its own servlet container. Do you use jetty or tomcat? Regards, Jost Bökemeier |
From: <php...@li...> - 2010-09-22 17:59:01
|
I downloeded 6.2.1.RC3 http://sourceforge.net/projects/php-java-bridge/files/Binary%20package/php-java-bridge_6.2.1rc3/exploded/JavaBridge.jar/download We use Tomcat with our JBOSS. I am not understanding how http://sourceforge.net/mailarchive/message.php?msg_id=AANLkTikUyejJ_jaZ9XBo2DUL1r9_RK6_W-bCyoByJ_4t%40mail.gmail.com is related to my problem... Please elaborate. Thanks! Theen-Theen On Sep 22, 2010, at 10:01 AM, <php...@li...> wrote: > Hi, > > you say "latest" PHP/Java Bridge version. I assume it is version > 6.2.1RC3. -- latest stable is 5.4.something. > > >> env.servletPath = (String) req.getAttribute("javax.servlet.include.servlet_path"); > > We've made a change regarding this, please see > http://sourceforge.net/mailarchive/message.php?msg_id=AANLkTikUyejJ_jaZ9XBo2DUL1r9_RK6_W-bCyoByJ_4t%40mail.gmail.com > > >> JBOSS, and its own servlet container. > > I don't think jboss uses its own servlet container. Do you use jetty or tomcat? > > > Regards, > Jost Bökemeier > > ------------------------------------------------------------------------------ > Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing. > http://p.sf.net/sfu/novell-sfdev2dev > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
From: <php...@li...> - 2010-09-23 17:38:19
|
> am not understanding how http://sourceforge.net/mailarchive/message.php?msg_id=AANLkTikUyejJ_jaZ9XBo2DUL1r9_RK6_W-bCyoByJ_4t%40mail.gmail.com is related to my problem.. It probably isn't. http://localhost:8080/test/env.jsp/tail?a=b => URI /test/env.jsp/tail ServletPath /test/env.jsp PathInfo /tail QueryString a=b a b >env.servletPath = (String) req.getAttribute("javax.servlet.include.servlet_path"); >if (env.servletPath == null) { >env.servletPath = req.getServletPath() + req.getPathInfo(); >} So PATH_INFO should be null for your request. The super.setupRequestVariables() sets env.servletPath = (String) req.getAttribute("javax.servlet.include.servlet_path"); if (env.servletPath == null) env.servletPath = req.getServletPath(); which is equivalent to your code. Regards, Jost Bökemeier |
From: <php...@li...> - 2010-09-25 08:20:50
|
Hi Theen-Theen, [please excuse the delay] I am sorry, but I could not reproduce this problem with jboss-4.0.3SP1 > - 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 Please upgrade jboss 4.0.3 or please send a bug report to the vendor. Regards, Jost Bökemeier |