You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2005/04/07 03:48:36 UTC
DO NOT REPLY [Bug 34341] New: -
SSI "exec cmd=" vis-�-vis Apache+Tomcat/mod_jk issue
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=34341>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=34341
Summary: SSI "exec cmd=" vis-�-vis Apache+Tomcat/mod_jk issue
Product: Tomcat 5
Version: 5.5.7
Platform: Sun
OS/Version: Solaris
Status: NEW
Severity: major
Priority: P1
Component: Native:JK
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: parramorej@homes.com
[This is a duplicate of bug #34232
(http://issues.apache.org/bugzilla/show_bug.cgi?id=34232) which was marked as
INVALID for httpd-2.0]
I�m working on porting some legacy code into Java, piecewise. The legacy code
has a script (which I have to keep for now) that generates a header and footer
separately for a page using SSIs for a given HTML page request, e.g., a page
on the server would look like
<!--#exec cmd=�/path/to/headerfooterscript --showheader�-->
�
(some HTML or other SSI directives here)
�
<!--#exec cmd=�/path/to/headerfooterscript --showfooter�-->
Instead of HTML files now, I have JSPs. I have an Apache (2.0.53)
installation handing off requests to a Tomcat (5.5.7) server via mod_jk
(1.2.8). The output from those requests has the header/footer includes in it,
after which Apache is configured to process the output for the SSIs
(using �SetOutputFilter INCLUDES� in the configuration) and run those. Apache
parses the output for SSIs but fails to run the �headerfooterscript�,
returning this message in the log:
(2)No such file or directory: change of working directory failed
The directory exists, the script exists, it�s executable, the Apache user has
permissions to run it, but I get this message. Doing a little debugging, I
see that the value that Apache has for the working directory is empty.
Now, one odd thing is that doing this works if I use �#exec cgi� or �#include
virtual� commands in the JSP output instead of �#exec cgi� (using either of
those is undesirable for other reasons right now), it works --- I get the
output from a test script or file included in the output from the JSP.
The other odd thing is that if I write a plain CGI script (Perl in this case)
to return as output the header/footer includes using the �#exec cmd� syntax,
it also works --- no �(2)No such file or directory: change of working
directory failed� messages. Debugging shows that the value for the working
directory is being set correctly for all the working cases.
So it appears that it might be a bug vis-�-vis Apache and mod_jk (but I'm
filing it under mod_include for the moment) in some fashion, either before the
request is handed off, or after it comes back. I should note that the
original issue was spotted under Solaris 8, but it also happens under Solaris
9. Also, I don�t have any third-party modules compiled either. I haven�t
tested Apache under Linux (wouldn�t be the production environment anyway) to
see if it also happens there.
Additional notes: I just saw that mod_jk 1.2.10 is available and have not
tried that yet to see if the problem is addressed; I have also not tried
Tomcat 5.5.9 (wouldn't put that into production anyway).
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org