Spring 3.0: Unable to locate Spring NamespaceHandler for XML schema namespace

后端 未结 11 1879
鱼传尺愫
鱼传尺愫 2020-12-05 10:01

My setup is fairly simple: I have a web front-end, back-end is spring-wired.

I am using AOP to add a layer of security on my rpc services.

It\'s all good, ex

11条回答
  •  情话喂你
    2020-12-05 10:37

    I have the same problem with spring 3.0.2 and spring-beans-3.0.xsd.

    My solution:

    Create a file META-INF/spring.schemas in the source folder and copy all necesary definitions. Create spring.handlers too.

    I think that the class PluggableSchemaResolver is not working correctly.

    http://static.springsource.org/spring/docs/3.0.x/javadoc-api/org/springframework/beans/factory/xml/PluggableSchemaResolver.html

    from the javadoc:

    "By default, this class will look for mapping files in the classpath using the pattern: META-INF/spring.schemas allowing for multiple files to exist on the classpath at any one time."

    but in my case, this class only read the first spring.schemas finded.

    Grettings. pacovr

提交回复
热议问题