隨筆-8  評(píng)論-8  文章-10  trackbacks-0

          這個(gè)錯(cuò)誤主要是struts-config.xml或web.xml上配置出錯(cuò)
          仔細(xì)對(duì)比后就可以解決
          struts-config.xml
          <controller
            processorClass="org.springframework.web.struts.DelegatingRequestProcessor">
           </controller>

            <plug-in className="org.springframework.web.struts.ContextLoaderPlugIn">
              <set-property property="contextConfigLocation" value="/WEB-INF/classes/applicationContext.xml" />
            </plug-in>

          web.xml
          <context-param>
             <param-name>contextConfigLocation</param-name>
             <param-value>/WEB-INF/classes/applicationContext.xml</param-value>
            </context-param>
           
            <servlet>
             <servlet-name>context</servlet-name>
             <servlet-class>org.springframework.web.context.ContextLoaderServlet</servlet-class>
             <load-on-startup>1</load-on-startup>
            </servlet>

          仔細(xì)對(duì)比 要一字不差


          每天進(jìn)步一點(diǎn)點(diǎn)

          posted on 2008-10-24 15:55 應(yīng)越 閱讀(5908) 評(píng)論(2)  編輯  收藏

          評(píng)論:
          # re: Could not open ServletContext resource [/WEB-INF/action-servlet.xml]解決方案 2010-03-13 23:57 | Josh
          <listener>
          <listener-class>
          org.springframework.web.context.ContextLoaderServlet
          </listener-class>
          </listener>

          <context-param>
          <param-name>contextConfigLocation</param-name>
          <param-value>/WEB-INF/applicationContext.xml</param-value>
          </context-param>

          要記住順序,先監(jiān)聽(tīng),后面再寫(xiě)applicationContext.xml  回復(fù)  更多評(píng)論
            
          # re: Could not open ServletContext resource [/WEB-INF/action-servlet.xml]解決方案 2013-07-19 23:26 | tolerance
          錯(cuò)誤,看這里

          http://wenku.baidu.com/view/20a87eef551810a6f52486ae.html

          Spring2.5、Struts2.1、Hibernate3.2、sitemesh、freemarker整合開(kāi)發(fā)常見(jiàn)問(wèn)題及解決方案  回復(fù)  更多評(píng)論
            

          只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 长子县| 若羌县| 桑日县| 青浦区| 尖扎县| 和平区| 三门峡市| 任丘市| 东辽县| 安陆市| 营山县| 宁南县| 萨嘎县| 尼勒克县| 专栏| 喀喇沁旗| 丰镇市| 海兴县| 班戈县| 布拖县| 新化县| 涡阳县| 库尔勒市| 当雄县| 邯郸市| 禄丰县| 望江县| 黄陵县| 扬中市| 西乌| 增城市| 河间市| 雷州市| 阿瓦提县| 灵璧县| 鱼台县| 司法| 临漳县| 靖江市| 淮安市| 蒙阴县|