搭建struts2,解决Tomcat启动时的错误:严重: Error filterStart
<Context path="" docBase="D:\projects2\SSHDemo\war" workDir="" reloadable="false"></Context>
?
<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>?
?
2012-4-30 1:59:10 org.apache.catalina.core.ApplicationContext log信息: Initializing Spring root WebApplicationContext2012-4-30 1:59:10 org.apache.catalina.core.StandardContext listenerStart严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerjava.lang.NoClassDefFoundError: org/springframework/asm/ClassVisitor//错误为没有找到类:org.springframework.asm.ClassVisitor//这个类在Spring发布的release包里:/dist/org.springframework.asm-3.1.0.RELEASE.jar