User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JSP section within the Web Development category of DaniWeb, a massive community of 373,936 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,582 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JSP advertiser: Lunarpages JSP Web Hosting
Views: 378 | Replies: 1
Reply
Join Date: Apr 2008
Posts: 1
Reputation: nare_splen is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
nare_splen nare_splen is offline Offline
Newbie Poster

jsp not loading in JBoss server

  #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
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Nov 2004
Location: Netherlands
Posts: 5,588
Reputation: jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough 
Rep Power: 18
Solved Threads: 187
Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: jsp not loading in JBoss server

  #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.
42 Private messages asking for help will be ignored
In the frozen land of Nador they were forced to eat Steve's iMinstrels, and there was much rejoicing.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb JSP Marketplace
Thread Tools Display Modes

Other Threads in the JSP Forum

All times are GMT -4. The time now is 6:36 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC