做一个ssh的demo ,前面按照 struts spring Hibernian 的顺序分别添加了三个框架, 之后把自己备好的ssh jar 全部黏贴进这个demo的lib , 没有被配置文件和 jsp 页面做什么修改, 就像验证一下 jar 添加的是否都正确。加载tomcat , 到了http://localhost:8080/manager/html  选择demo的名称之后 报出了404 错误type Status reportmessage /xdoa/description The requested resource (/xdoa/) is not available.

解决方案 »

  1.   

    我那普通的web project 测试了没用问题 不是tomcat 的问题 应该问题就在 project 本身
      

  2.   

    奇怪了 难道是tomcat 的问题? 刚才启动成功的项目  这次启动有2条信息
    2009-4-7 15:30:35 org.apache.catalina.core.StandardContext start
    严重: Error listenerStart
    2009-4-7 15:30:35 org.apache.catalina.core.StandardContext start
    严重: Context [/newshieldoa] startup failed due to previous errors
    2009-4-7 15:30:37 org.apache.coyote.http11.Http11BaseProtocol start之后再访问程序又是404 了 。
      

  3.   

    看看你的Web.xml里面是不是有Listener配置有问题?注销了看能不能正常运行一个简单页面?
      

  4.   

    sorry,说的不清楚……
    我的意思是把Listener注释掉,看能不能运行个简单页面试试看?
      

  5.   


    看起来的确是和 listener 有关系  <!-- 下面开始Struts 与Spring的集成配置 -->
      <context-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>/WEB-INF/application*.xml,classpath*:application*.xml</param-value>
      </context-param>
      <listener>
        <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
      </listener>这样写了 就是不行 , 
      

  6.   

    好像是jar 的问题 我添加了几个jar 就Ok 了
      

  7.   

    应该是3个框架之间的兼容性问题,添加一些必要的jar包