锘??xml version="1.0" encoding="utf-8" standalone="yes"?>91激情在线,91精品国产91久久久久久,а√在线天堂官网http://www.aygfsteel.com/bnlovebn/category/19921.html銆婂懆鏄撱嬫洶錛?lt;br> 澶╄鍋ワ紝鍚涘瓙浠ヨ嚜寮轟笉鎭?涔懼崷)<br> 鍦板娍鍧わ紝鍚涘瓙浠ュ帤寰瘋澆鐗?鍧ゅ崷) zh-cnWed, 12 Sep 2007 08:07:33 GMTWed, 12 Sep 2007 08:07:33 GMT60error:java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSourcehttp://www.aygfsteel.com/bnlovebn/archive/2007/09/12/144500.html閲嶅綊鏈瀿錛圔NBN錛?/dc:creator>閲嶅綊鏈瀿錛圔NBN錛?/author>Wed, 12 Sep 2007 07:16:00 GMThttp://www.aygfsteel.com/bnlovebn/archive/2007/09/12/144500.htmlhttp://www.aygfsteel.com/bnlovebn/comments/144500.htmlhttp://www.aygfsteel.com/bnlovebn/archive/2007/09/12/144500.html#Feedback0http://www.aygfsteel.com/bnlovebn/comments/commentRss/144500.htmlhttp://www.aygfsteel.com/bnlovebn/services/trackbacks/144500.htmljava.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSource
寰堟樉鐒惰繖鏄竴涓病鏈夋壘鍒板搴旂殑綾繪枃浠剁殑寮傚父銆?br /> 榪樻湁涓や釜鍖卌ommons-pool.jar鍜宑ommons-dbcp-1.2.1.jar闇瑕佸紩鍏ュ埌宸ョ▼涓?/span>


]]>
Initialization of bean failed; Cannot configure CacheManager;鏂囦歡鎻愬墠緇撴潫銆絳夐敊璇?/title><link>http://www.aygfsteel.com/bnlovebn/archive/2007/07/19/131202.html</link><dc:creator>閲嶅綊鏈瀿錛圔NBN錛?/dc:creator><author>閲嶅綊鏈瀿錛圔NBN錛?/author><pubDate>Thu, 19 Jul 2007 01:45:00 GMT</pubDate><guid>http://www.aygfsteel.com/bnlovebn/archive/2007/07/19/131202.html</guid><wfw:comment>http://www.aygfsteel.com/bnlovebn/comments/131202.html</wfw:comment><comments>http://www.aygfsteel.com/bnlovebn/archive/2007/07/19/131202.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/bnlovebn/comments/commentRss/131202.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/bnlovebn/services/trackbacks/131202.html</trackback:ping><description><![CDATA[<span style="FONT-SIZE: 12pt">org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactoryId' defined in ServletContext resource [/WEB-INF/classes/applicationContext.xml]: Initialization of bean failed; nested exception is org.hibernate.cache.CacheException: net.sf.ehcache.CacheException: Cannot configure CacheManager: 鏂囦歡榪囨棭緇撴潫銆?br><br>鏄ㄥぉrebase鍚庡嚭鐜頒簡榪欎釜闂錛岃垂浜嗘垜涓涓笅鍗堢殑鏃墮棿錛屽鏂規煡鎵捐祫鏂欓兘娌℃湁鍔炴硶錛屽埌浠婂ぉ鏃╀笂鍚庣湅鍒?/span><a style="FONT-SIZE: 12pt" >http://forum.springframework.org/showthread.php?t=25528</a><span style="FONT-SIZE: 12pt">涓婅鐨勩傛墠鐭ラ亾澶ф鏄痚hcache閰嶅埗涓嶅綋閫犳垚鐨?浜庢槸浠庡悓浜嬮偅閲屾嫹璐漞hcache.xml榪囨潵錛岃В鍐充簡錛佽鐨勬暀璁紒<br><br>ehcache鏄竴涓緢涓嶉敊鐨勮交閲忕駭緙撳瓨瀹炵幇錛岄熷害蹇紝鍔熻兘鍏ㄩ潰錛堜竴鑸殑搴旂敤瀹屽叏瓚沖浜嗭級錛屼粠1.2鐗堝悗鍙互鏀寔鍒嗗竷寮忕紦瀛橈紝鍙互鐢ㄥ湪闆嗙兢鐜涓傞櫎浜嗗彲浠ョ紦瀛樻櫘閫氱殑瀵硅薄錛岃繕鍙互鐢ㄦ潵浣滀負Web欏甸潰鐨勭紦瀛樸傜紦瀛橀潤鎬丠TML銆丣SP銆乂elocity銆丗reeMarker絳夌瓑鐨勯〉闈€侶ibernate閫夋嫨ehcache浣滀負榛樿鐨勭紦瀛樺疄鐜扮殑銆?br><br><br><br><br><br><br></span> <img src ="http://www.aygfsteel.com/bnlovebn/aggbug/131202.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/bnlovebn/" target="_blank">閲嶅綊鏈瀿錛圔NBN錛?/a> 2007-07-19 09:45 <a href="http://www.aygfsteel.com/bnlovebn/archive/2007/07/19/131202.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Spring+XFire+JUnit閰嶅埗Web Service騫跺湪client嫻嬭瘯.http://www.aygfsteel.com/bnlovebn/archive/2007/03/30/107405.html閲嶅綊鏈瀿錛圔NBN錛?/dc:creator>閲嶅綊鏈瀿錛圔NBN錛?/author>Fri, 30 Mar 2007 02:11:00 GMThttp://www.aygfsteel.com/bnlovebn/archive/2007/03/30/107405.htmlhttp://www.aygfsteel.com/bnlovebn/comments/107405.htmlhttp://www.aygfsteel.com/bnlovebn/archive/2007/03/30/107405.html#Feedback2http://www.aygfsteel.com/bnlovebn/comments/commentRss/107405.htmlhttp://www.aygfsteel.com/bnlovebn/services/trackbacks/107405.html闃呰鍏ㄦ枃

]]>
鐢⊿pring framework瀹炵幇瀹氭椂鍣ㄥ姛鑳絒杞琞http://www.aygfsteel.com/bnlovebn/archive/2007/02/12/99468.html閲嶅綊鏈瀿錛圔NBN錛?/dc:creator>閲嶅綊鏈瀿錛圔NBN錛?/author>Mon, 12 Feb 2007 07:47:00 GMThttp://www.aygfsteel.com/bnlovebn/archive/2007/02/12/99468.htmlhttp://www.aygfsteel.com/bnlovebn/comments/99468.htmlhttp://www.aygfsteel.com/bnlovebn/archive/2007/02/12/99468.html#Feedback0http://www.aygfsteel.com/bnlovebn/comments/commentRss/99468.htmlhttp://www.aygfsteel.com/bnlovebn/services/trackbacks/99468.html銆銆
銆銆浣跨敤Spring framework涓彁渚涚殑TimerTask鑷姩鍔犺澆鍔熻兘鍙互闈炲父瀹規槗鐨勫疄鐜板畾鏃跺櫒閾劇殑綆$悊銆傚悓鏃?閲囩敤Spring framework鐨勮繖涓鍔熻兘鍙互闈炲父瀹規槗鐨勫瀹氭椂鍣ㄨ繘琛屾坊鍔犮佸垹闄ゃ?br />銆銆
銆銆1.鍦╓eb.xml涓敵鏄?/b>
銆銆
銆銆錛渃ontext-param錛?br />銆銆錛減aram-name錛瀋ontextConfigLocation錛?param-name錛?br />銆銆錛減aram-value錛?WEB-INF/schedulingContext-timer.xml錛?param-value錛?br />銆銆錛?context-param錛?br />銆銆錛渟ervlet錛?br />銆銆錛渟ervlet-name錛瀋ontext錛?servlet-name錛?br />銆銆錛渟ervlet-class錛瀘rg.springframework.web.context.ContextLoaderServlet錛?servlet-class錛?br />銆銆錛渓oad-on-startup錛?錛?load-on-startup錛?br />銆銆錛?servlet錛?br />銆銆
銆銆2.鍦╯chedulingContext-timer.xml鎻忚堪鐢ㄦ埛鐨勫畾鏃跺櫒
銆銆
銆銆錛渂ean id="timer" class="org.springframework.scheduling.timer.TimerFactoryBean"錛?br />銆銆錛減roperty name="scheduledTimerTasks"錛?br />銆銆錛渓ist錛?br />銆銆錛渞ef local="JorwangScheduledTimerTask1"/錛?br />銆銆錛?list錛?br />銆銆錛?property錛?br />銆銆錛?bean錛?br />銆銆
銆銆錛渂ean id="JorTimeTask1" class="workflow.common.MyTimer"錛?br />銆銆錛?bean錛?br />銆銆錛渂ean id="JorwangScheduledTimerTask1" class="org.springframework.scheduling.timer.ScheduledTimerTask"錛?br />銆銆錛減roperty name="timerTask"錛烇紲ref bean="JorTimeTask1"/錛烇紲/property錛?br />銆銆錛減roperty name="delay"錛烇紲value錛?0000錛?value錛烇紲/property錛?br />銆銆錛減roperty name="period"錛烇紲value錛?6400000錛?value錛烇紲/property錛?br />銆銆錛?bean錛?br />銆銆
銆銆3.緙栧啓workflow.common.MyTimer瀹氭椂鍣?/b>
銆銆
銆銆榪欐牱灝辮交鏉懼畬鎴愪簡瀹氭椂鍣ㄧ殑鍔熻兘銆傚鏋滈渶瑕佷慨鏀廣佸鍔犮佸垹闄ゅ畾鏃跺櫒,鍙渶瑕佸2銆?姝ョ殑鍐呭榪涜璋冩暣灝卞彲浠ュ疄鐜般?br />聽娉細杞嚜http://www.bitscn.com/java/spring/200605/23091.html

]]>
Spring鏂囦歡涓婁紶http://www.aygfsteel.com/bnlovebn/archive/2006/10/23/76792.html閲嶅綊鏈瀿錛圔NBN錛?/dc:creator>閲嶅綊鏈瀿錛圔NBN錛?/author>Mon, 23 Oct 2006 09:24:00 GMThttp://www.aygfsteel.com/bnlovebn/archive/2006/10/23/76792.htmlhttp://www.aygfsteel.com/bnlovebn/comments/76792.htmlhttp://www.aygfsteel.com/bnlovebn/archive/2006/10/23/76792.html#Feedback0http://www.aygfsteel.com/bnlovebn/comments/commentRss/76792.htmlhttp://www.aygfsteel.com/bnlovebn/services/trackbacks/76792.html聽聽聽聽<bean聽id="multipartResolver"
聽聽聽聽聽聽聽聽聽聽
class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
聽聽聽聽聽聽聽聽聽聽
<description>
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽ifpre::瑕佷嬌鐢ㄦ枃浠朵笂浼犲姛鑳斤紝蹇呴』鍦ㄥ畾涔夋枃浠朵腑鍔犲叆MeltipartResolver,
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽鍙互閫夌敤CommonsMutipartResolver鎴朇osMultipartResolver
聽聽聽聽聽聽聽聽聽聽
</description>
聽聽聽聽聽聽聽聽
<property聽name="maxUploadSize">
聽聽聽聽聽聽聽聽聽聽聽聽
<value>1000000</value>
聽聽聽聽聽聽聽聽
</property>
聽聽聽聽
</bean>

鍚屾椂涓婁紶鏂囦歡浣跨敤鍒扮浉渚濊禆鐨凜ommands FileUpload錛屾墍浠ヨ鍦╨ib鐩綍涓寘鎷琧ommons-fileupload.jar鏂囦歡銆?br />

鍐欏畬鍚庤皟璇曠殑榪囩▼涓紝鑰佹姤閿欙細java.lang.NoClassDefFoundError: org/apache/commons/io/output/DeferredFileOutputStream錛屽皯浜哻ommons-io.jar錛屽姞涓婂悗錛屽氨ok浜?br />
鍦–ontroller绔紝鍙互鐢ㄤ互涓嬫柟寮忓彇寰椾笂浼犵殑鏂囦歡錛屽彲浠ヤ笂浼犲涓枃浠訛細
聽public Set getMultipartFileForForm(HttpServletRequest req) {
聽聽MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) req;
聽聽// CommonsMultipartFile file = (CommonsMultipartFile)
聽聽// multipartRequest.getFile("attach");//attach涓篺orm涓篺ile鐨刬d鍊?br />聽聽// MultipartHttpServletRequest multipartRequest =
聽聽// (MultipartHttpServletRequest)request;
聽聽Set fileset = new LinkedHashSet();
聽聽for (Iterator it = multipartRequest.getFileNames(); it.hasNext();) {
聽聽聽String key = (String) it.next();
聽聽聽MultipartFile file = multipartRequest.getFile(key);
聽聽聽if (file.getOriginalFilename().length() > 0) {
聽聽聽聽fileset.add(file);
聽聽聽}
聽聽}
聽聽return fileset;
聽}



]]>
主站蜘蛛池模板: 晋中市| 商水县| 喀喇| 中山市| 当涂县| 昭平县| 云龙县| 达拉特旗| 祁门县| 莱芜市| 安仁县| 江西省| 建湖县| 镇远县| 齐河县| 泰来县| 宣武区| 阳信县| 葵青区| 合江县| 航空| 鄂州市| 砚山县| 昆山市| 达州市| 张家口市| 新泰市| 芷江| 黎城县| 吉安市| 古田县| 防城港市| 布尔津县| 额尔古纳市| 南通市| 昆山市| 巍山| 伊吾县| 炉霍县| 于都县| 农安县|