struts2.0问题
我新建立项目后,lib中有5个jar: commons-logging-api-1.1.jar, freemarker-2.3.8.jar, ognl-2.6.11.jar, struts2-core-2.0.8.jar, xwork-2.0.3.jar
tomcat 启动时会报错:
严重: Exception starting filter struts2
Unable to load bean: type: class:com.opensymphony.xwork2.ObjectFactory - bean - jar:file:/D:/workspace/Struts2Demo/webapp/WEB-INF/lib/struts2-core-2.0.8.jar!/struts-default.xml:8:72
classes目录下的struts.xml配置为:
<struts>
<package name="example" namespace="/example" extends="struts-default">
<action name="hello" class="cn.com.ldns.struts2.demo.HelloAction">
<result name="success">
/hello.jsp
</result>
<result name="fal">
/errors.jsp
</result>
</action>
</package>
</struts>
请问我哪写错了?