严重 exception starting filter struts2 unable to load configuration.

 

struts 2.1.6
 1.类库包:
commons-logging-1.0.4.jar
freemarker-2.3.13.jar
ognl-2.6.11.jar
struts2-core-2.1.6.jar
xwork-2.1.2.jar
2.web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app>
         <display-name>first Struts 2 Project</display-name>
    <filter>
        <filter-name>struts2</filter-name>
        <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
    </filter>
    <filter-mapping>
        <filter-name>struts2</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>
</web-app>

解决方法:

由于类库中缺少:commons-fileupload-1.2.1.jar

加上,一切将变得正常

 

你可能感兴趣的:(apache,freemarker,Web,xml,struts)