目前使用Spring-Flex 1.0.0.m2,作为弹簧升级的一部分,将Spring-Flex升级为1.5.2.Release。
我会收到以下错误:
错误[org.springframework.web.servlet.dispatcherservlet] [localhost-startstop-1]上下文初始化失败 -
org.springframework.beans.factory.parsing.parsing.beandefinitionparsingexception:配置问题:无法找到XML Schema namespace的Spring namespaceHandler [http://www.springframework.orgg/schema/flex]
有问题的资源:ServletContext Resource [/web-inf/applicationContext-flex.xml]
我添加了对pom.xml的依赖性,仍然遇到相同的错误。
我看到spring-flex-1.5.2.Release没有罐子。它只有POM文件。因此,我将版本更改为spring-flex-1.0.3.release,其中有jar,我会收到以下错误:
错误[org.springframework.web.servlet.dispatcherservlet] [local-host-startstop-1]失败的 -
org.springframework.beans.factory.beandefinitionStoreException:意外的异常从ServletContext Resources [/web-inf/applicationContext-flex-flex.xml]中解析XML文档;嵌套的异常是org.springframework.beans.fatalbeanexception:namespacehandler类的不可忽视的类定义[org.springframework.flex.flex.config.config.config.xml.flexnamespacehandler] namespace [http:http:http:///wwwww.springfremegremgemg/schema/schema/schema/schema/嵌套例外是Java.lang.nosuchmethoderror:org.springframework.util.classutils.forname(ljava/lang/string;)ljava/lang/class;
1.0.3.Release Jar中的一个类是指弹簧3中的类。
我想知道什么是Spring 5的兼容Spring-Flex版本,或者我需要解决上述错误。
任何帮助将不胜感激。
Currently using spring-flex 1.0.0.M2, As part of spring upgrade to 5.3.20, upgraded spring-flex to 1.5.2.RELEASE.
I'm getting the following error:
ERROR [org.springframework.web.servlet.DispatcherServlet] [localhost-startStop-1] Context initialization failed -
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/flex]
Offending resource: ServletContext resource [/WEB-INF/applicationContext-flex.xml]
I added the dependency on pom.xml, still getting the same error.
I see spring-flex-1.5.2.RELEASE does not have jar. It only has pom file. So, I changed the version to spring-flex-1.0.3.RELEASE, which has the jar and I am getting the below error:
ERROR [org.springframework.web.servlet.DispatcherServlet] [localhost-startStop-1] Context initialization failed -
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/applicationContext-flex.xml]; nested exception is org.springframework.beans.FatalBeanException: Unresolvable class definition for NamespaceHandler class [org.springframework.flex.config.xml.FlexNamespaceHandler] for namespace [http://www.springframework.org/schema/flex]; nested exception is java.lang.NoSuchMethodError: org.springframework.util.ClassUtils.forName(Ljava/lang/String;)Ljava/lang/Class;
One of the classes in the 1.0.3.RELEASE jar is referring to class in spring 3.
I want to know what is the compatible spring-flex version for spring 5 or I need to resolve the above error.
Any help would be appreciated.
发布评论
评论(1)
弹簧弹性没有活跃,也没有官方支持。多年来,事实就是如此。
结果,与Spring Framework 5不兼容版本。
https://github.com/spring-projects/spring-framework/issues/28737
Spring Flex is not active and there is no official support for it. This has been the case for many years now.
As a result, there is no version compatible with Spring Framework 5.