首页上一页 1 下一页尾页 1 条记录 1/1页
java.lang.UnsupportedClassVersionError
发表在JavaWeb图书答疑
2016-09-12
是否精华
是
否
版块置顶:
是
否
老师您好:
Java Web开发实战最后那个SSH整合的项目 。项目导入进去后有红叉,肯定是configure path
的问题,完后了讲path改为jdk1.7后,还有一两个报错。这还是不是主要的
部署后浏览器加载不出来http://localhost:8080/shop/index.jsp,显示404
然后就报了这个异常,肯定是版本的问题,但是改了还是加载不出来,报错信息摘录如下:
警告: Exception encountered during context initialization - cancelling refresh attempt
[strong]org.springframework.beans.factory.BeanCreationException:[/strong]
Error creating bean with name 'orderDao': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException:
Could not autowire field: private org.hibernate.SessionFactory com.lyq.dao.DaoSupport.sessionFactory; nested exception is java.lang.NoClassDefFoundError:
org/hibernate/cache/spi/RegionFactory
[font color=颜色] Caused by: org.springframework.beans.factory.BeanCreationException:
[strong] Could not autowire field: private org.hibernate.SessionFactory com.lyq.dao.DaoSupport.sessionFac[/strong]t[/font]ory; nested exception is java.lang.NoClassDefFoundError: org/hibernate/cache/spi/RegionFactory
[font color=#0000FF][strong] Caused by: java.lang.NoClassDefFoundError: org/hibernate/cache/spi/RegionFact[/strong]ory[/font]
[strong] Caused by: java.lang.ClassNotFoundException: org.hibernate.cache.spi.RegionFactory[[/strong]font color=#FF0000][/font][strong][/strong]
这就不是简单的版本问题了吧,缓存,包我感觉,可这是原生项目
谢谢!
Java Web开发实战最后那个SSH整合的项目 。项目导入进去后有红叉,肯定是configure path
的问题,完后了讲path改为jdk1.7后,还有一两个报错。这还是不是主要的
部署后浏览器加载不出来http://localhost:8080/shop/index.jsp,显示404
然后就报了这个异常,肯定是版本的问题,但是改了还是加载不出来,报错信息摘录如下:
警告: Exception encountered during context initialization - cancelling refresh attempt
[strong]org.springframework.beans.factory.BeanCreationException:[/strong]
Error creating bean with name 'orderDao': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException:
Could not autowire field: private org.hibernate.SessionFactory com.lyq.dao.DaoSupport.sessionFactory; nested exception is java.lang.NoClassDefFoundError:
org/hibernate/cache/spi/RegionFactory
[font color=颜色] Caused by: org.springframework.beans.factory.BeanCreationException:
[strong] Could not autowire field: private org.hibernate.SessionFactory com.lyq.dao.DaoSupport.sessionFac[/strong]t[/font]ory; nested exception is java.lang.NoClassDefFoundError: org/hibernate/cache/spi/RegionFactory
[font color=#0000FF][strong] Caused by: java.lang.NoClassDefFoundError: org/hibernate/cache/spi/RegionFact[/strong]ory[/font]
[strong] Caused by: java.lang.ClassNotFoundException: org.hibernate.cache.spi.RegionFactory[[/strong]font color=#FF0000][/font][strong][/strong]
这就不是简单的版本问题了吧,缓存,包我感觉,可这是原生项目
谢谢!