File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Generated servlet error:

 
Sudharshan Reddy Ch
Ranch Hand
Posts: 36
  • 0
  • Mark post as helpful
  • send pies
  • 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,
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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 Redhat VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
Muhammad Saifuddin
Ranch Hand
Posts: 1324
Android Java Windows
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic