• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Generated servlet error:

 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I'm working on Eclipse 3.2 and using Tomcat 5.5 web server. When i'm trying to run a JSP page, its giving the following error.




Previousely i used to run the same file without any problem. After including some more functionality i am getting that error.

Please help me.....

Thanks,
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

The code of method _jspService(HttpServletRequest, HttpServletResponse) is exceeding the 65535 bytes limit



That's the limit for the amount of Java code that you can stuff into a try/catch block.
It's time to refactor your JSP.

I've seen people buy some more time by breaking some of the code into separate JSPs and including them with the JSP include action.
[ November 22, 2006: Message edited by: Ben Souther ]
 
Sudharshan Reddy Ch
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Ben Souther,

Thanks for your reply, but the same program is running under WSAD 5.1.1 and Websphere Application Server 5.1. Is there any limitation for Tomcat Server or Web servers?

Thanks,
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The generated servlet code for Websphere may be slightly smaller than it is for Tomcat. My guess is that, if that JSP continues to grow, it won't be long before you have the same problem in Websphere as well.
 
Ranch Hand
Posts: 1325
Android Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Sudharshan Reddi Chemicala:

Is there any limitation for Tomcat Server or Web servers?



Tomcat is a Web Server
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic