用struts2框架写的程序 可是tomcat打开报错Error filterStart
我的web.xml配置如下
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="3.0"
xmlns="http://java.sun.com/xml/ns/javaee"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
    http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
  
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.ng.filter.org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
</filter>

<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>

</web-app>此外之前我用的是myeclipse 最近换了eclipse 发现建了一个web项目后 WEB-INF文件夹下没有classes文件夹和web.xml配置文件 应该如何解决
分比较少 请知道的坛友帮个忙

解决方案 »

  1.   

    2个可能。一是包少导了。 二就是配置文件。还有就是我问下你说在eclipse下新建web项目没web.xml配置文件?? 不可能把.
      

  2.   


    的确没有呀 我的web.xml还是手动建的 之前都是用myeclipse开发的 web.xml和classes都会有 所以很奇怪
      

  3.   


    知道了 我用的是servelet3.0 所以可以没有web.xml
    但是Error filterStart这个问题还是无解