隨筆-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)越 閱讀(5913) 評(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)聽,后面再寫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整合開發(fā)常見問題及解決方案  回復(fù)  更多評(píng)論
            

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


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 浮山县| 土默特左旗| 湛江市| 康马县| 阳东县| 岚皋县| 汾西县| 荃湾区| 荣成市| 桃源县| 博白县| 察隅县| 河间市| 呼伦贝尔市| 聊城市| 德安县| 郎溪县| 祁门县| 普兰店市| 固安县| 永登县| 泌阳县| 肇州县| 巴里| 岐山县| 桂平市| 铁力市| 恩平市| 延边| 望城县| 偏关县| 桂林市| 平安县| 拜泉县| 景德镇市| 江口县| 平山县| 丰县| 湘潭市| 佛冈县| 宜城市|