Bug 14359 - largefile option has no effect
Summary: largefile option has no effect
Status: RESOLVED FIXED
Alias: None
Product: Tomcat 4
Classification: Unclassified
Component: Jasper 2 (show other bugs)
Version: 4.1.12
Hardware: All All
: P1 critical with 8 votes (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-07 16:18 UTC by Holger Brozio
Modified: 2004-11-16 19:05 UTC (History)
3 users (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Holger Brozio 2002-11-07 16:18:08 UTC
In my opinion the largefile option of the jsp servlet in the global web.xml 
file seems to be without effect. No ".dat" file are generated like in 4.0.x. I 
have also scanned the jasper2 code for this option. The option is set at the 
EmbededServletOptions class, but nobody seems to use this value inside of the 
jasper package?

If i have a large jsp page, which produces a method, that is bigger than 64k 
the following execption is thrown:

javax.servlet.ServletException: org/apache/jsp/ch1253utf8_jsp (Code of a method 
longer than 65535 bytes)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at org.apache.catalina.core.ApplicationDispatcher.invoke
(ApplicationDispatcher.java:684)
        at org.apache.catalina.core.ApplicationDispatcher.doInclude
(ApplicationDispatcher.java:575)
        at org.apache.catalina.core.ApplicationDispatcher.include
(ApplicationDispatcher.java:498)
Comment 1 jjc 2003-02-20 09:35:57 UTC
I too have this bug - my code works in 4.0.5 and 4.0.4 even without the
largeFile option.
Also in version 4.1.18.

My complete code is available see:
http://lists.w3.org/Archives/Public/www-webont-wg/2003Feb/0267.html

It is not the world's best code - I don't understand tags and have used include
as an alternative for the functionality I wanted - which is one of the reasons I
hit this bug.
(The goal of the code is to generate:
http://www.w3.org/TR/owl-test/
which is a static copy of the output).

Thanks for your efforts.
Comment 2 Mark Thomas 2004-03-10 20:31:55 UTC
You are correct. Largefile does have no effect as it is not a valid option for 
Jasper2. To save future confusion I will remove all references to it from both 
the source and the docs.
Comment 3 Mark Thomas 2004-03-10 21:39:27 UTC
I have just committed changes to TC4 and TC5 to remove references to the 
largefile option.
Comment 4 Marcin Stolarz 2004-03-24 10:43:17 UTC
So how to resolve this problem (Code of a method longer than 65535 bytes)???