First they ignore you
then they ridicule you
then they fight you
then you win
    -- Mahatma Gandhi
Chinese => English     英文 => 中文             
随笔-221  评论-1047  文章-0  trackbacks-0
今天重拾以前一个项目时,无意间发现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=35956

It 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 山风小子 阅读(2726) 评论(7)  编辑  收藏 所属分类: Spring