东方通中间件文件超大

2020-11-16 10:33发布

问题:

小白求助,公司用东方通中间件,今天看日志报错。

回答1:

这么大的长度值,估计是post请求长度的限制
找下中间件的手册,看下其post情况的长度设置项,修改成你需要的就行



回答2:

修改web.xml

<servlet>
        <servlet-name>jsp</servlet-name>
        <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
        <init-param>
            <param-name>mappedfile</param-name>
            <param-value>false</param-value>
        </init-param>
    </servlet>

异常---is exceeding the 65535 bytes limit



回答3:

TongWeb 7 编译JSP出错 exceeding 65535 bytes limit, 需要在confi/default-web.xml中增加如下红色配置,原因:解释也多余。

<servlet>
<servlet-name>jsp</servlet-name>
<servlet-class>com.tongweb.web.jasper.servlet.ThanosJspServlet</servlet-class>
<init-param>
<param-name>fork</param-name>
<param-value>false</param-value>
</init-param>
<init-param>
<param-name>xpoweredBy</param-name>
<param-value>false</param-value>
</init-param>
<init-param>
<param-name>development</param-name>
<param-value>false</param-value>
</init-param>
<init-param>
<param-name>mappedfile</param-name>
<param-value>false</param-value>
</init-param>
<load-on-startup>3</load-on-startup>
</servlet>