2013年11月29日 星期五

[Bug]Exception occurred during processing request: There is no Action mapped for namespace [/data:image/gif]

最近使用struts2+jQueryMobile遇到的問題

2013-11-12 13:25:21,804 ERROR (org.apache.struts2.dispatcher.Dispatcher:38) - Exception occurred during processing request: There is no Action mapped for namespace [/data:image/gif] and action name [AMDAwAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw] associated with context path [/xxxxxxxxx].
There is no Action mapped for namespace [/data:image/gif] and action name [AMDAwAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw] associated with context path [/xxxxxxxxx]. - [unknown location]
at com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:185)
.....

因為使用的圖片不多,遍尋不著它發生的原因

後來B大同事指示
把原本使用的jquery.mobile-1.3.1.min.css及jquery.mobile-1.3.1.min.js
換成最新版的jquery.mobile-1.3.2.min.css及jquery.mobile-1.3.2.min.js後
問題就解決了 : )

2013年8月27日 星期二

[問題] jar檔方法重複了

前幾天遇到的問題
我的jar檔打架了

有兩個jar檔都提供同一個方法(名稱相同)
但是方法的內容不一樣
而且怎麼取都只能取到其中一個jar檔的方法
(是的,再怎麼import也是沒用地)

首先要到Java Build Path裡
可以依下圖方式進入或從Properties進入皆可


接著切到Order and Export的Tab
將你想使用的那個jar檔給排到另一個jar檔之上

這樣就完成了
eclipse讀jar檔是由上往下的
而它真實的記錄位址則是在...

.classpath檔裡頭
以上! 若有錯誤請多多指教囉!