问题:jfinal 报异常:java.lang.NoSuchMethodError: javax.servlet.ServletContext.getJspConfigDescriptor
jfinal 报异常:java.lang.NoSuchMethodError: javax.servlet.ServletContext.getJspConfigDescriptor
HTTP ERROR 500
Problem accessing /admin/site. Reason:javax.servlet.ServletContext.getJspConfigDescriptor()Ljavax/servlet/descriptor/JspConfigDescriptor;
Caused by:java.lang.NoSuchMethodError: javax.servlet.ServletContext.getJspConfigDescriptor()Ljavax/servlet/descriptor/JspConfigDescriptor;
at org.apache.jasper.compiler.JspConfig.processWebDotXml(JspConfig.java:106)
at org.apache.jasper.compiler.JspConfig.init(JspConfig.java:196)
at org.apache.jasper.compiler.JspConfig.findJspProperty(JspConfig.java:259)
这是因为jfinal 是1.2版的,访问时出现以上异常
解决:把工程当中的把JAVA EE 5 Libraries库删掉即可。