_jspService超过65535字节限制 [英] _jspService is exceeding the 65535 bytes limit

查看:612
本文介绍了_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天全站免登陆