[問題] 有關於Struts的問題

看板java作者 (リリカルマジカル)時間16年前 (2009/06/08 18:39), 編輯推噓2(200)
留言2則, 2人參與, 最新討論串1/1
小弟正在學寫Struts 然而最近碰上了這個問題 我的IDE使用Eclipse 當啟動tomcat的時候Console顯示了下面的訊息 Unable to initialize Struts ActionServlet due to an unexpected exception or error thrown, so marking the servlet as unavailable. Most likely, this is due to an incorrect or missing library dependency. 因此我在想我是不是少安裝了lib檔案到WEB-INF裡面 不過查了一下基本上該安裝的lib檔案都安裝了 commons-beanutils commons-beanutils-1.8.0 commons-collections commons-digester commons-digester-1.8 commons-fileupload commons-lang commons-validator jstl-api-1.2 jstl-impl-1.2 sqljdbc struts-core-1.3.10 struts-el-1.3.10 struts-extras-1.3.10 struts-faces-1.3.10 struts-mailreader-dao-1.3.10 struts-scripting-1.3.10 struts-taglib-1.3.10 struts-tiles-1.3.10 本來想說是否是commons-beanutils和commons-digester這兩個因為有兩種不同的版本 所以只保留了commons-beanutils-1.8.0和commons-digester-1.8 可是問題還是存在 啟動了JSP以後,進入的畫面是顯示Servlet action is not available console也還是顯示同樣的訊息 因此想請問一下是否有版友知道我這樣到底哪裡有出問題嗎?? -- オレは正義の仲間なんかじゃない,お前の敵だ                               ~セツコ.オハラ~ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 211.20.59.2

06/09 10:23, , 1F
struts-config.xml與web.xml設定有設好嗎?
06/09 10:23, 1F

06/09 12:10, , 2F
感覺像 struts-config.xml沒設定好
06/09 12:10, 2F
問題解決了...謝謝解答<(_ _)> 應該是我隨便使用struts.lib的下場 後來跑去重新抓了官方網站的struts1.3版本丟進lib資料夾後就沒有這些錯誤訊息了 ※ 編輯: chikasa 來自: 211.20.59.2 (06/09 14:34)
文章代碼(AID): #1ABEfTYF (java)