jsp not loading in JBoss server

Reply

Join Date: Apr 2008
Posts: 1
Reputation: nare_splen is an unknown quantity at this point 
Solved Threads: 0
nare_splen nare_splen is offline Offline
Newbie Poster

jsp not loading in JBoss server

 
0
  #1
Apr 22nd, 2008
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 <tr> and <td>)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
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 212
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: jsp not loading in JBoss server

 
0
  #2
Apr 22nd, 2008
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.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the JSP Forum


Views: 1086 | Replies: 1
Thread Tools Search this Thread



Tag cloud for JSP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC