org.apache.jasper.JasperException: Unable to compile class for JSP
Generated servlet error:
Type mismatch: cannot convert from null to int
Generated servlet error:
Cannot cast from Object to int
Suddenly when I deployed my app I started getting the above errors on loading my jsp pages.
It took a couple of hours but I tracked it down. To do so I had to pre compile my jsps since the default output to browser and to catalina.out id not show enough details. luckily my app is based on appfuse so I was able toset precompile="true" in properties.xml and run ant compile-jsp . For other people you will have to compile your jsp using javac and setting your classpath etc on the command line. But you should be able to see where the compile error is occurring.
In my case I include a bunch of constants in my web page as attributes. They are all strings, but one of the new ones I had added,was, gasp, an int. This threw the errors above.
Generated servlet error:
Type mismatch: cannot convert from null to int
Generated servlet error:
Cannot cast from Object to int
Suddenly when I deployed my app I started getting the above errors on loading my jsp pages.
It took a couple of hours but I tracked it down. To do so I had to pre compile my jsps since the default output to browser and to catalina.out id not show enough details. luckily my app is based on appfuse so I was able toset precompile="true" in properties.xml and run ant compile-jsp . For other people you will have to compile your jsp using javac and setting your classpath etc on the command line. But you should be able to see where the compile error is occurring.
In my case I include a bunch of constants in my web page as attributes. They are all strings, but one of the new ones I had added,was, gasp, an int. This threw the errors above.