glassfish里抛出以下毛病:
org.apache.jasper.JasperException: PWC6033: Unable to compile class for JSP PWC6199: Generated servlet error: string:///XXXX_jsp.java:169: constant string too long PWC6199: Generated servlet error: Note: string:///XXXX_jsp.java from uses unchecked or unsafe operations.
折腾了好久,始终找不到缘由。 最后,经老大指导,并实际测试。终究发现缘由是由于glassfish里 把genStrAsCharArray 项设为 true 致使的。
解决办法:
具体为: 把 $GLASSFISH_HOME/domains/domain1/config/default-web.xml 里的 <param-name>genStrAsCharArray</param-name>
<param-value>true</param-value> 修改成:
<param-name>genStrAsCharArray</param-name>
<param-value>false</param-value>
genStrAsCharArray | false | If set to true, generates text strings as char arrays, which improves performance in some cases. |
The default-web.xml file defines features such as filters and security constraints that apply to all web applications. The parameter, development=true, (the default value for developer profile) enables changes made to JSPTM
上一篇 bower_install用法
下一篇 如何判断系统是否64位系统