On 8/7/2014 4:01 PM, Buck Calabro wrote:
On 8/5/2014 1:14 PM, Buck Calabro wrote:
I had Perl working on my 7.1 box. Installed 7.2 and now I get the
dreaded 'ZSRV_MSG0947: End of script output before headers' error.
Follow-up: (short version)
IBM Support suggests Lab Services.
I'm following up on advice I got in a private email to try a different
web server - if it's an issue with IBM's Apache, then maybe a different
web server will do better. So I set up Tomcat 7.0.28. It serves web
pages even when not connected to Apache. Set up web.xml:
<servlet>
<servlet-name>cgi</servlet-name>
<servlet-class>org.apache.catalina.servlets.CGIServlet</servlet-class>
<init-param>
<param-name>debug</param-name>
<param-value>0</param-value>
</init-param>
<init-param>
<param-name>cgiPathPrefix</param-name>
<param-value>WEB-INF/cgi</param-value>
</init-param>
<!-- <init-param>
<param-name>executable</param-name>
<param-value>perl</param-value>
</init-param> -->
<init-param>
<param-name>passShellEnvironment</param-name>
<param-value>true</param-value>
</init-param>
<init-param>
<param-name>parameterEncoding</param-name>
<param-value>"ISO-8859-1")"</param-value>
</init-param>
<load-on-startup>5</load-on-startup>
</servlet>
<!-- The mapping for the CGI Gateway servlet -->
<servlet-mapping>
<servlet-name>cgi</servlet-name>
<url-pattern>/cgi-bin/*</url-pattern>
</servlet-mapping>
and when I try to run my "hello, world' Perl CGI script, I get this:
INFO: cgi: runCGI: bad header line
"Ö•£…•£`㨗…z@£…§£a—“?‰•%%È…““–k@¦–™“„ZZZ"
My system is QCCSID 37. This file is CCSID 1252. I tried 1208 and 819
but the symptoms don't change. Tomcat does serve up HTML pages in CCSID
1252 just fine. I tried several iterations of parameterEncoding,
including Windows-1252, ISO-8859-1, UTF-8 and commenting the parameter
out completely.
I tried submitting the Tomcat server as a separate job, and also running
it within QShell. Symptoms don't change.
I was able to install TWiki on my PC (it doesn't particularly care for
Windows, so there's a bit of a challenge) and got my wiki pages to serve
on my PC, so at least I can see them again.
I may tinker a bit more with this, but I have to admit to mounting
frustration. It's clearly a CCSID issue but I'm at a loss to work out
what lever I need to grab in order to effect any change whatsoever.
--buck
As an Amazon Associate we earn from qualifying purchases.