得到 JdkVersion classNotFoundException [英] Got JdkVersion classNotFoundException

查看:27
本文介绍了得到 JdkVersion classNotFoundException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将 spring 版本从 4.2.3 更新到 5.0.2,安全性从 5.0.1 更新到 5.0.10 并使用 spring-flex 版本 1.6.0.RC1.

I have Updated spring version from 4.2.3 to 5.0.2 and security from 5.0.1 to 5.0.10 and using spring-flex version 1.6.0.RC1.

像这样使用 BlazeDS 依赖项.

using BlazeDS Dependencies like this.

    <!--=| 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"/>

但是我遇到了以下异常.

But i am getting following exception.

  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)

推荐答案

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

the Flex Bean _messageBroker initialized failed. It seems it only support spring 4.X and JdkVersion is deprecated in Spring 5.X

这篇关于得到 JdkVersion classNotFoundException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆