_jspService 超出了 65535 字节的限制 [英] _jspService is exceeding the 65535 bytes limit

查看:54
本文介绍了_jspService 超出了 65535 字节的限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我正在处理在 Websphere 7 (JDK 6) 上运行的遗留 servlet 代码.开发环境设置使用 Tomcat 6 (JDK 6).

So I'm dealing with a legacy servlet code that runs on Websphere 7 (JDK 6). Development environment setup uses Tomcat 6 (JDK 6).

  1. 为什么它适用于 Websphere 7 和不在 Tomcat 6 中?
  2. 这是否与应用服务器?

如果您的回答是肯定的,则不是.2、除了分解代码或使用动态包含之外,您在 Tomcat 6 (JDK 6) 上是否有解决方法?

If your answer is yes for no. 2, do you have a workaround for this on Tomcat 6 (JDK 6) aside from breaking down the code or using dynamic includes?

计划不同意将静态包含更改为动态包含,主要是因为大多数页面都与业务模型代码(包括应用的主模板)相关联.

The schedule does not agree with changing static includes to dynamic includes primarily because most pages are coupled with the business model code including the main template of the app.

推荐答案

这听起来像是您遇到了64k 方法限制,可能是由于 Tomcat 如何从您的 JSP 构建一个类.此页面建议像这样更改您的静态包含:

It sounds like you're hitting a 64k method limit, probably due to how Tomcat builds a class out of your JSP. This page suggests changing your static includes like this:

<%@ include file="test.jsp" %>

像这样动态包含以避免问题:

To dynamic includes like this to avoid the issue:

<jsp:include page="test.jsp" /> 

这篇关于_jspService 超出了 65535 字节的限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆