954,568 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

jsp not loading in JBoss server

Hi,

I had a jsp which is built using struts. It is 54 Kb.

Problem is page is not getting loading in JBoss server. Server console error is : “Code too large for try statement”.

When I see the java file what server generates for the jsp, all the (form)fields (all and )are under out.println()… and all the out.printlns() are inside the try block.

Where as the same works fine using Weblogic server.

I copied some code in some other jsp and included that jsp using page directive include, thinking that page is heavy to load or to render.

If you have idea on this please give some inputs.

Regards,
Naresh

nare_splen
Newbie Poster
1 post since Apr 2008
Reputation Points: 10
Solved Threads: 0
 

says it all.
A 54KB JSP is WAY too large.

ANY method in Java can contain at most 64KB of code. Your entire 54KB JSP ends up as part of a single method, expanded into Java code.
That's going to be one massive method, most likely several hundred KB of code.

If it works on WL, WL's JSP compiler does not conform to the language standard.

Split the thing up, organise it properly, start learning to use dynamic includes.

jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You