改成
<?xml   version="1.0"   encoding="UTF-8"?> 
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
....

解决方案 »

  1.   

    给你看看我可用的配置好了<?xml version="1.0" encoding="UTF-8"?>
    <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> <context-param>
    <param-name>contextConfigLocation</param-name>
    <param-value>/WEB-INF/classes/applicationContext.xml</param-value>
    </context-param>

    <listener>
         <listener-class>com.cabyte.common.StartupListener</listener-class>
    </listener> 
      
        <filter>
            <filter-name>struts</filter-name>
            <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
        </filter>    <filter-mapping>
            <filter-name>struts</filter-name>
            <url-pattern>/*</url-pattern>
        </filter-mapping></web-app>注意你的 applicationContext.xml如果有错也不行的
      

  2.   

    这是我的applicationContext.xml<?xml version="1.0" encoding="UTF-8"?>
    <beans
    xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd"> <!-- sessionFactory spring管理hibernate-->
    <bean id="sessionFactory"
    class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
    <property name="configLocation"
    value="classpath:hibernate.cfg.xml">
    </property>
    </bean>

    </beans>
      

  3.   

    你把<context-param>
            <param-name> contextConfigLocation </param-name>
            <param-value> classpath:applicationContext.xml </param-value>
        </context-param> 屏蔽掉试试。
      

  4.   

    我试了不行,
    <context-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>classpath:applicationContext.xml</param-value>
    </context-param>
    是联系spring的,去掉好像不行。
      

  5.   

    首先,注意你的contextConfigLocation的路径
    然后,如果<filter>没必要就不要配置
      

  6.   

    contextConfigLocation的路径是自动生成的。
    我也觉得我的jar包有问题,我把所有的struts2.0.11的jar包都放到lib下了。
      

  7.   

    好像不是jar问题,我把一个能运行得项目的jar放到lib下,也是不行,还是
          严重:   Error   filterStart 
         2008-2-27   16:41:35   org.apache.catalina.core.StandardContext   start 
         严重:   Context   [/strive]   startup   failed   due   to   previous   errors  <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> 
    是什么意思?