You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by QM <qm...@brandxdev.net> on 2004/07/07 17:09:47 UTC

Re: some problem in tomcat 5.0.25

On Wed, Jul 07, 2004 at 03:05:26PM +0100, archana gupta wrote:
:     Its 168 KB after compiling , this because its a single in which   different JSP are included depending upon the condition . This works fine in 5.0.16  .

Is this the size of the compiled .class file or the generated .java
source file?

How large is the JSP itself?

Are you using runtime JSP includes or compile-time JSP includes?

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: some problem in tomcat 5.0.25

Posted by archana gupta <ar...@yahoo.co.in>.
Hi Peter ,
 
This is the exact error which i get
 
org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
    [javac] Compiling 1 source file

C:\jakarta-tomcat-5.0.25\work\Catalina\localhost\eform\org\apache\jsp\incident_005freport_jsp.java:7933: code too large for try statement
    } catch (Throwable t) {
      ^
C:\jakarta-tomcat-5.0.25\work\Catalina\localhost\eform\org\apache\jsp\incident_005freport_jsp.java:75: code too large for try statement
    try {
        ^
C:\jakarta-tomcat-5.0.25\work\Catalina\localhost\eform\org\apache\jsp\incident_005freport_jsp.java:61: code too large
  public void _jspService(HttpServletRequest request, HttpServletResponse response)
              ^
3 errors


	org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:83)
	org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:315)
	org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:406)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:463)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:442)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:430)
	org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
 
Thanks
Archana


Peter Lin <wo...@gmail.com> wrote:
I remember back in tomcat4 several people discovered that long JSP
pages would fail because the file exceeded the limit in javac, or
using include directive resulted in a servlet with deeply nested
try/catch blocks.

what is the exact error you are getting?

peter


On Wed, 7 Jul 2004 10:09:47 -0500, QM wrote:
> On Wed, Jul 07, 2004 at 03:05:26PM +0100, archana gupta wrote:
> : Its 168 KB after compiling , this because its a single in which different JSP are included depending upon the condition . This works fine in 5.0.16 .
> 
> Is this the size of the compiled .class file or the generated .java
> source file?
> 
> How large is the JSP itself?
> 
> Are you using runtime JSP includes or compile-time JSP includes?
> 
> -QM
> 
> --
> 
> software -- http://www.brandxdev.net
> tech news -- http://www.RoarNetworX.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org

Yahoo! India Careers: Over 50,000 jobsonline.

Re: some problem in tomcat 5.0.25

Posted by Peter Lin <wo...@gmail.com>.
I remember back in tomcat4 several people discovered that long JSP
pages would fail because the file exceeded the limit in javac, or
using include directive resulted in a servlet with deeply nested
try/catch blocks.

what is the exact error you are getting?

peter


On Wed, 7 Jul 2004 10:09:47 -0500, QM <qm...@brandxdev.net> wrote:
> On Wed, Jul 07, 2004 at 03:05:26PM +0100, archana gupta wrote:
> :     Its 168 KB after compiling , this because its a single in which   different JSP are included depending upon the condition . This works fine in 5.0.16  .
> 
> Is this the size of the compiled .class file or the generated .java
> source file?
> 
> How large is the JSP itself?
> 
> Are you using runtime JSP includes or compile-time JSP includes?
> 
> -QM
> 
> --
> 
> software  -- http://www.brandxdev.net
> tech news -- http://www.RoarNetworX.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: some problem in tomcat 5.0.25

Posted by archana gupta <ar...@yahoo.co.in>.
Hi ,
 
Its  the size of the compiled .class file and i'm using runtime JSP includes and Java Bean
 
Regards
Archana Gupta 


QM <qm...@brandxdev.net> wrote:
On Wed, Jul 07, 2004 at 03:05:26PM +0100, archana gupta wrote:
: Its 168 KB after compiling , this because its a single in which different JSP are included depending upon the condition . This works fine in 5.0.16 .

Is this the size of the compiled .class file or the generated .java
source file?

How large is the JSP itself?

Are you using runtime JSP includes or compile-time JSP includes?

-QM

-- 

software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org

Yahoo! India Careers: Over 50,000 jobsonline.