| | |
jsp not loading in JBoss server
Please support our JSP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Apr 2008
Posts: 1
Reputation:
Solved Threads: 0
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
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
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.
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.
![]() |
Other Threads in the JSP Forum
- Previous Thread: First Servlet
- Next Thread: Exception in jsp
Views: 1086 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for JSP
apache array backbutton combobox comma connection csv database development directorystructure dropdownlist dynamicpagetitles eclipse frames glassfish ie8 imagetodatabse imageupload integer internet java javaee javascript jsf jsp jsppagetitles levels mvc2 mvcmodel2 mysql netbeans network parameters passing ping printinserverinsteadofclient project read redirect request.getparameter response seperated servlet servletdopost()readxml sessions software sql ssl state_saving_method stocks sun tomcat tutorial update values video web write






