XP Tomcat6+mimetex 配置

mayflowers posted @ 2008年6月26日 07:54 in Java , 1349 阅读

1、下载 mimetex.exe 到 ....webapps\ROOT\WEB-INF\cgi-bin\

2、修改 $Tomct_PATH$\conf \ web.xml:

<servlet>
        <servlet-name>cgi</servlet-name>
        <servlet-class>org.apache.catalina.servlets.CGIServlet</servlet-class>
        <init-param>
          <param-name>clientInputTimeout</param-name>
          <param-value>100</param-value>
        </init-param>
        <init-param>
          <param-name>debug</param-name>
          <param-value>6</param-value>
        </init-param>
        <init-param>
          <param-name>cgiPathPrefix</param-name>
          <param-value>WEB-INF/cgi-bin</param-value>
        </init-param>
        <init-param> 
         <param-name>executable</param-name> 
         <param-value>cmd   /c   </param-value> 
    </init-param> 
         <load-on-startup>5</load-on-startup>
  </servlet>

 <servlet-mapping>
        <servlet-name>cgi</servlet-name>
        <url-pattern>/cgi-bin/*</url-pattern>
 </servlet-mapping>

3、修改 $Tomcat_PATH$\conf \contex.xml

<Context privileged="true">

加入 privileged ="true“是为了防止出现 ...Servlet of class org.apache.servlets.CGIServlet is privileged and cannot be loaded by this web application ...的错误

4、找个 servlets-cgi.renametojar 改名为 servlets-cgi.jar 保存到 $Tomcat_PATH$\lib\

5、重启 tomcat 

6、测试:

 

 

boardmodelpaper.com 说:
2024年1月09日 14:10

The Board model paper" typically refers to a sample or model question paper that is designed by educational boards or institutions for various exams. These papers serve as practice material for students preparing for exams, providing them with an idea of the question format, difficulty level, and the type of content that may be covered in the actual examination. boardmodelpaper.com Model papers are usually created for specific subjects or courses. They cover a range of topics and chapters that students are expected to have studied during the academic term. Students often use these educational board model papers as an integral part of their exam preparation strategy, helping them familiarize themselves with the exam pattern and refine their understanding of the subject matter.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter