I'm having problems deploying Spring/Java 1.5/Tomcat 6 webapp on CentOS. It breaks during JSP execution on one specific form which uses BigDecimals; it seems that somewhere in the bowels of Tomcat JSPs BigDecimal is being initialized with new BigDecimal(""); - why there is empty string sent to JSP I can't figure out. This is not anywhere in app code, it's during JSP compilation/execution.
Here's the exception it's been throwing at me:
SEVERE: Servlet.service() for servlet dispatcher threw exception
java.lang.NumberFormatException
at java.math.BigDecimal.<init>(BigDecimal.java:457)
at java.math.BigDecimal.<init>(BigDecimal.java:647)
at org.apache.el.lang.ELArithmetic$BigDecimalDelegate.coerce(ELArithmetic.java:48)
at org.apache.el.lang.ELArithmetic.coerce(ELArithmetic.java:357)
at org.apache.el.lang.ELArithmetic.add(ELArithmetic.java:236)
at org.apache.el.parser.AstPlus.getValue(AstPlus.java:40)
at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
at org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:935)
...
When I run this webapp on Windows, either in Eclipse or directly in Tomcat 6, it runs with no problems whatsoever. I'm kind of stuck and any general direction at where to look would be appreciated.
One thing I've been thinking is that somehow something is wrong with Tomcat sessions, so that JSP gets blank session and then breaks when it's not able to instantiate variables... but there's not really much to configure on Tomcat regarding sessions, and it's basically a blank Tomcat installation and sessions should work by default.