今天重拾以前一個(gè)項(xiàng)目時(shí),無(wú)意間發(fā)現(xiàn)Spring的官方網(wǎng)站上已經(jīng)發(fā)布2.0.3版本了,得知2.0.3對(duì)
Groovy支持得更好之后,便迫不及待地試著將原本使用的Spring2.0.2升級(jí)到Spring2.0.3。不幸的是,原本在Spring2.0.2下能運(yùn)行的項(xiàng)目,可在Spring2.0.3下就連啟動(dòng)都不行了,在這個(gè)項(xiàng)目我用到了Spring2對(duì)Groovy的支持特性,異常信息如下:
Configuration problem: Unable to locate NamespaceHandler for namespace [http://www.springframework.org/schema/lang]當(dāng)我看到這個(gè)異常信息后,我立刻
將Spring2.0.3中的spring-support.jar替換為Spring2.0.2中的spring-support.jar。當(dāng)我再次運(yùn)行工程時(shí),一切又正常了。我現(xiàn)在還不知道這到底是由什么原因引起的,不過(guò)我的這點(diǎn)升級(jí)經(jīng)驗(yàn)希望對(duì)升級(jí)失敗的朋友有用,也希望知道為什么會(huì)導(dǎo)致發(fā)生上述異常的朋友告訴我原因,謝謝 :)
官方回復(fù)如下:Have a look at the following thread:
http://forum.springframework.org/showthread.php?t=35956It has been documented and entered in JIRA already, so a fix is on its way. In the meantime (i.e. before 2.0.4 is out) you can either stay with 2.0.2 or (for the time being) add all jars for dynamic languages to your classpath.
Apologies for any inconvenience this may cause!
regards,
Alef
Spring的這次更新的確有點(diǎn)草率 :)
posted on 2007-03-16 20:02
山風(fēng)小子 閱讀(2757)
評(píng)論(7) 編輯 收藏 所屬分類(lèi):
Spring