原创 Unable to load configuration. - action -

如果你的struts.xml和applicationContext.xml都配置正確,還報以上的錯誤,那麼可以判斷你的項目缺少jar包: struts2-spring-plugin-2.0.11.1.jar、commons-fileup

原创 java.lang.ClassNotFoundException與java.lang.NoClassDefFoundError

While it's possible that this is due to a classpath mismatch between compile-time and run-time, it's not necessarily t

原创 Error starting static Resources java.lang.IllegalArgumentException

網上找到很多方法, 1、有說的刪錯東西的 其實是在刪除了tomcat的webapps下的一個工程後,有些東西沒刪完全,出現“嚴重:Error starting static Resources錯誤”,提示java.lang.Illega

原创 發現eclipse紅叉,查看markers發現Target runtime Apache Tomcat 6.0 is not defined

Target runtime Apache Tomcat 6.0 is not defined 1、導入以前的項目(Markers中注意查看,就在console選項卡旁邊),報以下錯誤,但不影響操作: Description

原创 Could not load the Tomcat server configuration at \Servers\Tomcat v7.0 Server at localhost-config

之前不小心刪除了server的服務器設置,運行時各種報錯Could not load the Tomcat server configuration at \Servers\Tomcat v7.0 Server at localhost-

原创 Unable to load configuration. - action - |Caused by: Action class [login] not found - action -

Ssh導入eclipse後各種報錯,一路修改,又出現以下問題 Unable to load configuration. - action - |Caused by: Action class [login] not found - a

原创 ERROR 1045: Access denied for user: 'root@localhost' (Using password: YES)

前兩天也偶爾出現這個錯誤,也沒在意,因爲我重新修改一下mysql的root密碼後又可以用了,但昨天卻不行,我把root密碼修改以後雖然當時能用, 一旦重新進入就都不能用了,可我的密碼明明沒有錯啊?今天終於找到了原因,是權限問題,大家可以

原创 Eclipse下把jar包放到工程lib下和通過buildpath加載有什麼不同(解決找不到類的中級方法)

我通過Eclipse的 User Libranry 將jar導入 Eclipse裏面,編譯沒有問題,運行的時候就報class文件沒有定義,後來上網上查了下,原因找到啦,是這樣的:  用Java Build Path導入包和把包複製到lib

原创 hadoop學習 ubuntu下安裝

最近一直在自學Hadoop,今天花點時間搭建一個開發環境,並整理成文。 首先要了解一下Hadoop的運行模式: 單機模式(standalone)        單機模式是Hadoop的默認模式。當首次解壓Hadoop的源碼

原创 java.lang.IllegalArgumentException: Invalid uri ......

reqUrl = "http://item.yhd.com/item/8104287_2?ref=gl.1.1.0."+URLEncoder.encode("[", "utf-8")+"pms_15_4_54" +URLEncoder.e

原创 eclipse中文亂碼

但最近在Ubuntu環境使用eclipse出現了亂碼,我先是用老辦法,修改字體(網上很多人都這麼說),但還是不行,後來我想到了字符編碼。 因爲windows採用的是GBK,而Linux使用的是UTF-8。這個問題其實在存在於數據庫方面

原创 org.springframework.transaction.CannotCreateTransactionException: Could not open

數據庫連不上  1.看看 用戶名/密碼是否正確  2.數據庫是否啓動  3.看看spring的數據庫、事務等配置文件 解決: 刪除了重複和衝突的jar包 等待一會或者重啓eclipse就好了

原创 eclipse 顏色設置

eclipse  顏色設置 http://eclipsecolorthemes.org/ 下載EPF文件。 爲了美化Eclipse大家可以從 http://www.eclipsecolorthemes.org/ 下載EPF配置文件,使用方

原创 onblur,onchange

onblur事件只有表單元素具有這個事件!比如說一個輸入用戶名的登陸框,你把鼠標點上去,光標變一閃一閃的提示你輸入信息,這個時候就是得到焦點,就會觸發onfocus事件,當你把鼠標點擊到輸入框外,這個時候就是失去焦點,就會觸發onblur

原创 如何從Eclipse導入github上的項目源碼

1.首先在github.com上申請一個賬號,比如筆者的賬號爲puma0072.Eclipse需要安裝egit插件,在Eclipse中選擇help-》Marketplace,在search中輸入egit,找到後安裝即可3.在github上