Sun Java System Web Server 7.0 Update 8 Troubleshooting Guide

java.lang.StackOverflowError when accessing JSP and/or Servlet

The default value for thread stack size is 128K for 32-bit server and 256K for 64-bit server. Depending on the web application, the server may require additional thread stack size to service a request. If you are seeing java.lang.StackOverflowError when servicing Java content, you should increase the thread stack size using the Administration Console or the wadm CLI utility. It is recommended that you increase the thread stack size in increments of 8K until the problem ceases to exist. For example, to set the thread stack size to the default +8K on a 64-bit server, execute the following command:

$wadm set-thread-pool-prop --user=admin --port=8989 
--password-file=passwordfile --config=config-name stack-size=270336