得到了JdkVersion classNotFoundException

时间:2018-01-02 09:15:07

标签: java spring spring-mvc flex

我已将 4.2.3到5.0.2 的春季版本和 5.0.1 的安全性更新为 5.0.10 并使用spring -flex version 1.6.0.RC1

使用像这样的BlazeDS依赖。

    <!--=| BlazeDS Dependencies |=-->
    <dependency org="com.adobe.blazeds" name="blazeds-core" rev="4.0.0.14931"/>
    <dependency org="com.adobe.blazeds" name="blazeds-common" rev="4.0.0.14931"/>
    <dependency org="com.adobe.blazeds" name="blazeds-remoting" rev="4.0.0.14931"/>

但是我得到了例外。

  SEVERE: Exception sending context initialized event to listener instance of class [org.springframework.web.context.ContextLoaderListener]
org.springframework.beans.factory.BeanCreationException: Error creating bean with name '_messageBrokerDefaultHandlerMapping': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '_messageBroker': Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanInitializationException: MessageBroker initialization failed; nested exception is java.lang.NoClassDefFoundError: org/springframework/core/JdkVersion
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:591)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:502)
    at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:312)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:310)

1 个答案:

答案 0 :(得分:1)

Flex Bean _messageBroker初始化失败。 它似乎只支持spring 4.X和JdkVersion在Spring 5.X中被弃用