隨筆-348  評論-598  文章-0  trackbacks-0
          今天碰到了這個錯誤,找了很多方法包括了Amigo姐姐的,都不能解決。。沒辦法只好把
            <plug-in className="org.springframework.web.struts.ContextLoaderPlugIn">
              
          <set-property property="contextConfigLocation" value="/WEB-INF/applicationContext.xml" />
            
          </plug-in>
          從Struts-Config.xml中移除,在web.xml中加入了
          <context-param> 
          <param-name>contextConfigLocation</param-name> 
          <param-value>/WEB-INF/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>
          調(diào)試的時候發(fā)現(xiàn)了錯誤,Myeclipse在部署的時候沒有把一些類庫添加到lib里面(我的是jboss-j2ee.jar )。手動復(fù)制下。
          解決后,再改回來就沒問題了。

          ---------------------------------------------------------
          專注移動開發(fā)

          Android, Windows Mobile, iPhone, J2ME, BlackBerry, Symbian
          posted on 2007-05-10 16:13 TiGERTiAN 閱讀(18520) 評論(11)  編輯  收藏 所屬分類: Java

          評論:
          # re: Servlet Action is not available 錯誤的其他可能原因和解決方法[未登錄] 2007-07-31 20:59 | xxx
          恩,我也遇到了同樣的問題,按照你的方法修改后,果然也是缺少jar  回復(fù)  更多評論
            
          # re: Servlet Action is not available 錯誤的其他可能原因和解決方法 2007-08-10 17:21 | lisa
          那是少了什么包啊,我也遇到這個問題,老覺得是少了包。但是不知道是少了什么包?能告訴一下嗎??  回復(fù)  更多評論
            
          # re: Servlet Action is not available 錯誤的其他可能原因和解決方法[未登錄] 2007-08-10 20:33 | TiGERTiAN
          @lisa
          用我的方法就可以了!  回復(fù)  更多評論
            
          # re: Servlet Action is not available 錯誤的其他可能原因和解決方法[未登錄] 2008-05-15 08:46 | moon
          是往哪個web里面加入那段代碼了,是放在最下面嗎,謝謝!  回復(fù)  更多評論
            
          # re: Servlet Action is not available 錯誤的其他可能原因和解決方法 2008-05-15 09:07 | TiGERTiAN
          @moon
          上面的代碼從Struts-Config.xml中移除,在web.xml中加入了下面的代碼,這個方法是用來調(diào)試的,看到底什么錯誤,我最后的錯誤是Myeclipse在部署的時候沒有把一些類庫添加到lib里面(我的是jboss-j2ee.jar )  回復(fù)  更多評論
            
          # re: Servlet Action is not available 錯誤的其他可能原因和解決方法 2008-05-19 17:21 |
          我也遇到過這種情況,挺郁悶的,在網(wǎng)上找了一大堆解決方法,都不起作用,我重復(fù)多次重啟服務(wù),竟然好了,到現(xiàn)在也不知道究竟是那兒出了問題,郁悶,請高手指點指點。。  回復(fù)  更多評論
            
          # re: Servlet Action is not available 錯誤的其他可能原因和解決方法 2008-08-04 16:25 | 黑風(fēng)
          @xxx
          樓主,我按照你ideas方法一試,結(jié)果竟然好了
          但是我現(xiàn)在都不知道為什么會這樣就OK了
            回復(fù)  更多評論
            
          # re: Servlet Action is not available 錯誤的其他可能原因和解決方法 2008-08-05 08:50 | TiGERTiAN
          @黑風(fēng)
          少類庫吧,這個方面就是用來將詳細(xì)的錯誤信息顯示出來的  回復(fù)  更多評論
            
          # re: Servlet Action is not available 錯誤的其他可能原因和解決方法 2008-08-13 14:54 | yin
          我也是按照樓主方法就好了,謝謝..
          但是還上不知道原因..  回復(fù)  更多評論
            
          # re: Servlet Action is not available 錯誤的其他可能原因和解決方法 2008-08-13 15:11 | TiGERTiAN
          @yin
          java的錯誤就是莫名其妙的。  回復(fù)  更多評論
            
          # re: Servlet Action is not available 錯誤的其他可能原因和解決方法 2008-09-07 22:30 | Good Guy
          2 reasons

          1. configuration of web.xml does not match with struts-config.xml
          2. The library you have stored in the /WEB-INF/lib does not match with the library shown in the xml files.  回復(fù)  更多評論
            
          主站蜘蛛池模板: 石狮市| 古蔺县| 南宫市| 宝山区| 阿巴嘎旗| 清水县| 平泉县| 平乐县| 景洪市| 萨嘎县| 安宁市| 金川县| 鹤山市| 饶平县| 耿马| 天峻县| 柳州市| 商都县| 通海县| 万载县| 天津市| 郧西县| 基隆市| 芦溪县| 府谷县| 盐山县| 巴彦县| 广州市| 松潘县| 榆社县| 和顺县| 张北县| 平陆县| 清徐县| 收藏| 体育| 海口市| 永州市| 许昌县| 济宁市| 龙井市|