aspose file tools*
The moose likes JSP and the fly likes Generated servlet error: Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Generated servlet error:" Watch "Generated servlet error:" New topic
Author

Generated servlet error:

Sudharshan Reddy Ch
Ranch Hand

Joined: Jul 12, 2006
Posts: 36
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,


Cheers,
Sudha C Reddi
http://techelp.in
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

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 ]

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Sudharshan Reddy Ch
Ranch Hand

Joined: Jul 12, 2006
Posts: 36
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

Joined: Dec 11, 2004
Posts: 13410

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.
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1321

Originally posted by Sudharshan Reddi Chemicala:

Is there any limitation for Tomcat Server or Web servers?


Tomcat is a Web Server


Saifuddin..
[Blog][Linkedin] How To Ask Questions On JavaRanch My OpenSource
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Generated servlet error: