今天重拾以前一個項目時,無意間發現Spring的官方網站上已經發布2.0.3版本了,得知2.0.3對
Groovy支持得更好之后,便迫不及待地試著將原本使用的Spring2.0.2升級到Spring2.0.3。不幸的是,原本在Spring2.0.2下能運行的項目,可在Spring2.0.3下就連啟動都不行了,在這個項目我用到了Spring2對Groovy的支持特性,異常信息如下:
Configuration problem: Unable to locate NamespaceHandler for namespace [http://www.springframework.org/schema/lang]當我看到這個異常信息后,我立刻
將Spring2.0.3中的spring-support.jar替換為Spring2.0.2中的spring-support.jar。當我再次運行工程時,一切又正常了。我現在還不知道這到底是由什么原因引起的,不過我的這點升級經驗希望對升級失敗的朋友有用,也希望知道為什么會導致發生上述異常的朋友告訴我原因,謝謝 :)
官方回復如下: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的這次更新的確有點草率 :)
posted on 2007-03-16 20:02
山風小子 閱讀(2759)
評論(7) 編輯 收藏 所屬分類:
Spring