<web-app>
<display-name>Archetype Created Web Application</display-name>
<filter>
<filter-name>jfinalFilter</filter-name>
<filter-class>com.jfinal.core.JFinalFilter</filter-class>
<init-param>
<param-name>configClass</param-name>
<param-value>com.canv.dome.DemoConfig</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>jfinal</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
</web-app>
Caused by: java.lang.IllegalStateException: No filter named jfinal
at org.eclipse.jetty.servlet.ServletHandler.updateMappings(ServletHandler.java:1131)
at org.eclipse.jetty.servlet.ServletHandler.setFilterMappings(ServletHandler.java:1233)
at org.eclipse.jetty.servlet.ServletHandler.addFilterMapping(ServletHandler.java:1062)
at org.eclipse.jetty.webapp.StandardDescriptorProcessor.addFilterMapping(StandardDescriptorProcessor.java:1242)
at org.eclipse.jetty.webapp.StandardDescriptorProcessor.visitFilterMapping(StandardDescriptorProcessor.java:1813)
... 18 more
解决方法 :
将 <filter-name>jfinalFilter</filter-name> 改为<filter-name>jfinal</filter-name>
即可!!!!