关注JEECG发展历程 关注最新动态和版本, 记录JEECG成长点滴 更新日志 - 技术支持 - 招聘英才

JEECG最新版本下载 JEECG智能开发平台 - 显著提高开发效率 常见问题 - 入门视频 - 参与开源团队

商务QQ: 69893005、418799587 商务热线(5*8小时): 010-64808099 官方邮箱: jeecgos@163.com

查看: 5025|回复: 1

切换环境session报错,请帮忙看一下,谢谢

[复制链接]
发表于 2015-5-23 11:08:04 | 显示全部楼层 |阅读模式
在win7环境下运行正常,切换到linux下就会出现以下异常信息:




严重: Exception sending context initialized event to listener instance of class com.jetone.system.listener.InitListener
org.hibernate.HibernateException: No Session found for current thread
at org.springframework.orm.hibernate4.SpringSessionContext.currentSession(SpringSessionContext.java:97)
at org.hibernate.internal.SessionFactoryImpl.getCurrentSession(SessionFactoryImpl.java:988)
at com.jetone.framework.core.common.dao.impl.GenericBaseCommonDao.getSession(GenericBaseCommonDao.java:83)
at com.jetone.framework.core.common.dao.impl.GenericBaseCommonDao.createCriteria(GenericBaseCommonDao.java:452)
at com.jetone.framework.core.common.dao.impl.GenericBaseCommonDao.loadAll(GenericBaseCommonDao.java:439)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:196)
at com.sun.proxy.$Proxy55.loadAll(Unknown Source)
at com.jetone.system.service.impl.SystemServiceImpl.initAllTypeGroups(SystemServiceImpl.java:104)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at com.sun.proxy.$Proxy56.initAllTypeGroups(Unknown Source)
at com.jetone.system.listener.InitListener.contextInitialized(InitListener.java:29)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4992)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5490)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1247)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1898)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
五月 23, 2015 6:22:57 下午 org.apache.catalina.core.ApplicationContext log
信息: Shutting down log4j
五月 23, 2015 6:22:57 下午 org.apache.catalina.core.ApplicationContext log
信息: Closing Spring root WebApplicationContext




五月 23, 2015 6:22:57 下午 org.apache.catalina.core.StandardContext startInternal
严重: Error listenerStart
五月 23, 2015 6:22:57 下午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/customer] startup failed due to previous errors

 楼主| 发表于 2015-5-23 11:15:57 | 显示全部楼层
网上的资料搜了一大堆,都不能用
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表