myeclipse版本6.0.1GA,spring整合hibernate在applicationContext.xml中,经过测试正确,webwork的jar包为2.1.7.jar,还有webwork2-spring.jar,以下为web.xml的配置:
<?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">
  
 <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
  </welcome-file-list>  
  <listener>   
                  <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>   
          </listener>   
          <listener>   
                  <listener-class>com.opensymphony.xwork.spring.SpringObjectFactoryListener</listener-class>   
          </listener>   
            
  <servlet>   
  <servlet-name>webwork</servlet-name>   
  <servlet-class>   
  com.opensymphony.webwork.dispatcher.ServletDispatcher   
  </servlet-class>   
  </servlet>   
  <servlet-mapping>   
  <servlet-name>webwork</servlet-name>   
  <url-pattern>*.action</url-pattern>   
  </servlet-mapping>   
  <taglib>
  <taglib-uri>webwork</taglib-uri>   
  <taglib-location>   
  /WEB-INF/lib/webwork-2.1.7.jar   
  </taglib-location>   
  </taglib>  
</web-app>
添加listener后出现org.apache.catalina.core.StandardContext start错误,浏览器报404错误,而且taglib也报错。兄弟接触这些东西不是太多,不知道哪里出了问题了,请见过的朋友给指点一二!谢谢

解决方案 »

  1.   

    hibernate+spring整合参考的是:
    http://blog.csdn.net/xjxhd/archive/2008/03/12/2172579.aspx按这个处理过也不行:
    http://diracstar.spaces.live.com/blog/cns!ae01b12996553c76!265.entry
    tomcat中没有无关的其它配置!
      

  2.   

    tomcat已经5.5了,将welcom-file-list拿到后边也不行,还是报如下错误:
    2008-6-11 11:52:01 org.apache.catalina.core.StandardContext start
    严重: Error listenerStart
    2008-6-11 11:52:01 org.apache.catalina.core.StandardContext start
    严重: Context [/webpro] startup failed due to previous errors
      

  3.   

    谁有spring+hibernate+webwork2的具体的配置过程例子啊!