Announcement Announcement Module
Collapse
No announcement yet.
CustomScopeConfigurer support in Spring 3.1.X Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • CustomScopeConfigurer support in Spring 3.1.X

    In spring 3.0 , to define a custom scope, I used the following in my application context


    <!-- Spring 3 custom declaration -->
    <bean class="org.springframework.beans.factory.config.Cu stomScopeConfigurer">
    <property name="scopes">
    <map>
    <entry key="view">
    <bean class="x.xxx.customscope.ViewScope" />
    </entry>
    </map>
    </property>
    </bean>

    But when migrating to 3.1.x, i get the following error.
    The stack trace is:

    org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'org.springframework.beans.factory.config.CustomSc opeConfigurer#0' defined in class path resource [core-applicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoSuchFieldError: NULL

    Namespace config is

    <beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
    xmlns:tx="http://www.springframework.org/schema/tx" xmlns="http://www.springframework.org/schema/p"
    xmlns:aop="http://www.springframework.org/schema/aop" xmlns:cache="http://www.springframework.org/schema/cache"
    xsi:schemaLocation="http://www.springframework.org/schema/aop ttp://www.springframework.org/schema/aop/spring-aop-3.0.xsd
    http://www.springframework.org/schema/beans http://www.springframework.org/schem...-beans-3.1.xsd
    http://www.springframework.org/schema/cache http://www.springframework.org/schem...-cache-3.1.xsd
    http://www.springframework.org/schema/tx http://www.springframework.org/schem...ing-tx-3.1.xsd
    http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd">


    Any help is greatly appreciated.
Working...
X