cgi and tomcat

岁酱吖の 提交于 2019-12-01 12:42:50

This is something of a guess, but you might need to add the following to your web.xml file so that Tomcat can find the perl executable. Tomcat doesn't look in your PATH to find executables, apparently:

executable
C:\perl\bin\perl

Use the actual path to perl on your system, of course.

You need to specify the "executable" parameter in the servlet element. According to the documentation, the default is "perl", which is probably what is triggering your error. Maybe changing it to something like cmd.exe will work.

The error is indicating that the executable named perl cannot be found. Is perl installed on your system? Is it in the path?

Thanks everyone, i didnt find out what was the correct syntax to run C++ cgi scripts, but if you leave the param blank it will run any script type.

<init-param>
  <param-name>executable</param-name>
  <param-value></param-value>
</init-param>

No perl is not installed. The CGI script is actually c++. I haven't installed anything other than the default tomcat installation.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!