zoukankan      html  css  js  c++  java
  • Caused by: java.lang.ClassNotFoundException: org.hibernate.service.ServiceRegistry

    Caused by: java.lang.IllegalStateException: Failed to introspect Class [org.springframework.orm.hibernate5.LocalSessionFactoryBean] from ClassLoader [sun.misc.Launcher$AppClassLoader@b4aac2]
    	at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:659)
    	at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:556)
    	at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:541)
    	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:245)
    	... 55 more
    Caused by: java.lang.NoClassDefFoundError: org/hibernate/service/ServiceRegistry
    	at java.lang.Class.getDeclaredMethods0(Native Method)
    	at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
    	at java.lang.Class.getDeclaredMethods(Class.java:1975)
    	at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:641)
    	... 58 more
    Caused by: java.lang.ClassNotFoundException: org.hibernate.service.ServiceRegistry
    	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    	... 62 more
    hibernate5.LocalSessionFactoryBean用到了ServiceRegistry。
    解决办法:将hibernate的core包改为hibernate3。hibernate的包版本问题。


    Caused by: java.lang.IllegalStateException: Failed to introspect Class [org.springframework.orm.hibernate5.LocalSessionFactoryBean] from ClassLoader [sun.misc.Launcher$AppClassLoader@b4aac2]at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:659)at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:556)at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:541)at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:245)... 55 moreCaused by: java.lang.NoClassDefFoundError: org/hibernate/service/ServiceRegistryat java.lang.Class.getDeclaredMethods0(Native Method)at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)at java.lang.Class.getDeclaredMethods(Class.java:1975)at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:641)... 58 moreCaused by: java.lang.ClassNotFoundException: org.hibernate.service.ServiceRegistryat java.net.URLClassLoader.findClass(URLClassLoader.java:381)at java.lang.ClassLoader.loadClass(ClassLoader.java:424)at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)at java.lang.ClassLoader.loadClass(ClassLoader.java:357)... 62 more

  • 相关阅读:
    地址栏传值 JS取值方法
    定位导航 制作
    验证码
    图片水印
    AJAX 三级联动
    javascript 和Jquery 互转
    Jquery 事件 DOM操作
    Jquery 基础
    软件工程中的形式化方法读后感
    软件工程理论、方法与实践 需求工程读后感
  • 原文地址:https://www.cnblogs.com/super-chao/p/15226687.html
Copyright © 2011-2022 走看看