今天遇到一个问题,ssh整合的时候,用tomcat5和spring.jar包,这个spring.jar里不包含关于struts的类,但是没有报错;
用tomcat6的时候报了 找不到org.springframework.web.struts.ContextLoader类的问题,一样的包,只是tomcat的版本换了下,我想知道为什么tomcat5不报错呢

解决方案 »

  1.   

    你看下你tomcat中的web.xml中是否配置了org.springframework.web.struts.ContextLoader,就是spring的监听
      

  2.   

    web.xml中没有配置org.springframework.web.struts.ContextLoader,我是菜鸟看着网上的教程来的,只配置了 struts.config.xml里相关;想问一下在web.xml配置这个有啥作用吗?
    还有问题就是,我的配置文件完全一样的,为什么在tomcat5里没有spring-webmvc-struts.jar时也不报错呢;而在tomcat6里就报错;tomcat5和6有什么区别吗?还是tomcat5里自动包含了org.springframework.web.struts.ContextLoaderPlugIn这个类呢?