求助!weblogic10.3.0升级到10.3.6后项目部署报错

问题描述

最近要把weblogic服务器从10.3.0升级到10.3.6同时升级JDK,服务器的操作系统是UNIX的,我在测试环境升级完之后,用原来的domain部署项目是没有问题的,但如果用新建的domain部署项目就会报以下错误<Feb16,20139:38:19AMGMT+08:00><Warning><HTTP><BEA-101162><Userdefinedlistenerorg.springframework.web.context.ContextLoaderListenerfailed:org.springframework.beans.factory.BeanCreationException:Errorcreatingbeanwithname'sessionFactory'definedinURL[file:/tmp/ccicfile/ccic_test/CCICConsole/WEB-INF/classes/spring/applicationContext-dataAccess-hibernate-annotation.xml]:Invocationofinitmethodfailed;nestedexceptionisorg.hibernate.HibernateException:Errorsinnamedqueries:GraphSession.findActiveNodesByProcessInstance,GraphSession.deleteJobsForProcessInstance,GraphSession.findAllProcessInstancesWithProcessName,GraphSession.calculateAverageTimeByNode,GraphSession.findProcessInstanceByKey,GraphSession.findProcessDefinitionByNameAndVersion,GraphSession.findTokensForProcessInNode,GraphSession.findAllRunningProcessInstancesWithProcessName,GraphSession.findAllRunningProcessInstances,GraphSession.findSubProcessInstances,GraphSession.selectLogsForTokens,TaskMgmtSession.findPooledTaskInstancesByActorId,GraphSession.findAllSwimlaneNames,GraphSession.findTokensForProcessInstance,JobSession.getFirstDueJob,GraphSession.deleteTaskInstancesById,TaskMgmtSession.findTaskInstancesByActorIds,GraphSession.findAllProcessInstancesForADefinition,TaskMgmtSession.findOpenTasksOfProcessInstance,TaskMgmtSession.findPooledTaskInstancesByActorIds,LoggingSession.findLogsByToken,JobSession.getFirstAcquirableJob,JobSession.findExclusiveJobs,JobSession.deleteExecuteNodeJobsForProcessInstance,JobSession.deleteTimersForProcessInstance,TaskMgmtSession.findTaskInstancesByProcessInstance,GraphSession.findLatestProcessDefinitionQuery,JobSession.getFirstDueJobExlcMonitoredJobs,TaskMgmtSession.findTaskForNode,GraphSession.findAllProcessInstances,JobSession.getTimersByName,GraphSession.findAllTokensOfProcessInstance,GraphSession.findAllProcessDefinitions,TaskMgmtSession.findTaskInstancesByActorId,JobSession.resumeJobs,GraphSession.findTaskInstanceIdsForProcessInstance,GraphSession.findAllProcessDefinitionVersions,TaskMgmtSession.findTaskInstancesByTokenId,JobSession.suspendJobs,TaskMgmtSession.findTaskInstancesByIds.org.springframework.beans.factory.BeanCreationException:Errorcreatingbeanwithname'sessionFactory'definedinURL[file:/tmp/ccicfile/ccic_test/CCICConsole/WEB-INF/classes/spring/applicationContext-dataAccess-hibernate-annotation.xml]:Invocationofinitmethodfailed;nestedexceptionisorg.hibernate.HibernateException:Errorsinnamedqueries:GraphSession.findActiveNodesByProcessInstance,GraphSession.deleteJobsForProcessInstance,GraphSession.findAllProcessInstancesWithProcessName,GraphSession.calculateAverageTimeByNode,GraphSession.findProcessInstanceByKey,GraphSession.findProcessDefinitionByNameAndVersion,GraphSession.findTokensForProcessInNode,GraphSession.findAllRunningProcessInstancesWithProcessName,GraphSession.findAllRunningProcessInstances,GraphSession.findSubProcessInstances,GraphSession.selectLogsForTokens,TaskMgmtSession.findPooledTaskInstancesByActorId,GraphSession.findAllSwimlaneNames,GraphSession.findTokensForProcessInstance,JobSession.getFirstDueJob,GraphSession.deleteTaskInstancesById,TaskMgmtSession.findTaskInstancesByActorIds,GraphSession.findAllProcessInstancesForADefinition,TaskMgmtSession.findOpenTasksOfProcessInstance,TaskMgmtSession.findPooledTaskInstancesByActorIds,LoggingSession.findLogsByToken,JobSession.getFirstAcquirableJob,JobSession.findExclusiveJobs,JobSession.deleteExecuteNodeJobsForProcessInstance,JobSession.deleteTimersForProcessInstance,TaskMgmtSession.findTaskInstancesByProcessInstance,GraphSession.findLatestProcessDefinitionQuery,JobSession.getFirstDueJobExlcMonitoredJobs,TaskMgmtSession.findTaskForNode,GraphSession.findAllProcessInstances,JobSession.getTimersByName,GraphSession.findAllTokensOfProcessInstance,GraphSession.findAllProcessDefinitions,TaskMgmtSession.findTaskInstancesByActorId,JobSession.resumeJobs,GraphSession.findTaskInstanceIdsForProcessInstance,GraphSession.findAllProcessDefinitionVersions,TaskMgmtSession.findTaskInstancesByTokenId,JobSession.suspendJobs,TaskMgmtSession.findTaskInstancesByIdsatorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1175)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:427)atorg.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:249)atorg.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:155)atorg.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:246)Truncated.seelogfileforcompletestacktraceCausedBy:org.hibernate.HibernateException:Errorsinnamedqueries:GraphSession.findActiveNodesByProcessInstance,GraphSession.deleteJobsForProcessInstance,GraphSession.findAllProcessInstancesWithProcessName,GraphSession.calculateAverageTimeByNode,GraphSession.findProcessInstanceByKey,GraphSession.findProcessDefinitionByNameAndVersion,GraphSession.findTokensForProcessInNode,GraphSession.findAllRunningProcessInstancesWithProcessName,GraphSession.findAllRunningProcessInstances,GraphSession.findSubProcessInstances,GraphSession.selectLogsForTokens,TaskMgmtSession.findPooledTaskInstancesByActorId,GraphSession.findAllSwimlaneNames,GraphSession.findTokensForProcessInstance,JobSession.getFirstDueJob,GraphSession.deleteTaskInstancesById,TaskMgmtSession.findTaskInstancesByActorIds,GraphSession.findAllProcessInstancesForADefinition,TaskMgmtSession.findOpenTasksOfProcessInstance,TaskMgmtSession.findPooledTaskInstancesByActorIds,LoggingSession.findLogsByToken,JobSession.getFirstAcquirableJob,JobSession.findExclusiveJobs,JobSession.deleteExecuteNodeJobsForProcessInstance,JobSession.deleteTimersForProcessInstance,TaskMgmtSession.findTaskInstancesByProcessInstance,GraphSession.findLatestProcessDefinitionQuery,JobSession.getFirstDueJobExlcMonitoredJobs,TaskMgmtSession.findTaskForNode,GraphSession.findAllProcessInstances,JobSession.getTimersByName,GraphSession.findAllTokensOfProcessInstance,GraphSession.findAllProcessDefinitions,TaskMgmtSession.findTaskInstancesByActorId,JobSession.resumeJobs,GraphSession.findTaskInstanceIdsForProcessInstance,GraphSession.findAllProcessDefinitionVersions,TaskMgmtSession.findTaskInstancesByTokenId,JobSession.suspendJobs,TaskMgmtSession.findTaskInstancesByIdsatorg.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:407)atorg.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1341)atorg.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)atorg.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:805)atorg.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:745)Truncated.seelogfileforcompletestacktrace>我在百度和谷歌搜了一下,好像跟jar报冲突有关,我也试了下那些解决方法,比如<container-descriptor><prefer-web-inf-classes>true</prefer-web-inf-classes></container-descriptor>、修改启动参数等等,但都没效果还是会报错,报其他错,我现在怀疑跟JDK有关,原本用的是weblogic自带的java6_64sr4这个JDK,现在换成JDK1.6.0.24的了,不知道是哪的问题,搞得我很头痛,各位大神们有没有解决办法啊?

解决方案

解决方案二:
我以前碰到过,也是从10.3.0升到10.3.6.错误忘了是否跟你一样,不过,我们将JDK从1.6.37升到1.6.45后,就可以正常deploy,没有错了。你可以试试。
解决方案三:
我之前遇到过这个类似的问题,是spring的jar冲突了。在tomcat里面工程可以正常发布,访问,到weblogic里面启动就报bean无法创建。在工程里面的jar中搜sessionFactory这个类,估计有好几个sessionFactory类,找到后,找个可以支撑起工程的,将多余的jar删除。可能一次试不成功,可以多试几次。希望可以帮到楼主

时间: 2016-04-13

求助!weblogic10.3.0升级到10.3.6后项目部署报错的相关文章

hadoop 2 2 0-hadoop升级2.2.0后运行job报错Shell$ExitCodeException: id: dr.who: No such user

问题描述 hadoop升级2.2.0后运行job报错Shell$ExitCodeException: id: dr.who: No such user 2013-12-03 11:34:56,590 WARN org.apache.hadoop.security.UserGroupInformation: No groups available for user dr.who 2013-12-03 11:34:56,589 WARN org.apache.hadoop.security.Shel

服务器-eclipse中无法创建动态web项目,报错运行时“Apache Tomcat v7.0”是无效的

问题描述 eclipse中无法创建动态web项目,报错运行时"Apache Tomcat v7.0"是无效的 应该点哪里如何操作解决这个,在线等,谢谢! 解决方案 window-perferences-server-Runtime environment,将邮编的server run environment中的内容移除再重新添加,因为其中有指定tomcat的安装路径,这个tomcat的位置变了,这个要重新设置一下 解决方案二: 楼上说的有道理,不过我是来蹭分升级的,谢谢合作

linux-ubuntu 15.10切换root账户,但是报错没有这条命令

问题描述 ubuntu 15.10切换root账户,但是报错没有这条命令 如上图,求指教 解决方案 切到root账号试试 su root 解决方案二: Ubuntu 命令 root切换 解决方案三: 当前用户是否配置了sudoer的权限 解决方案四: 很显然你的vi 和/usr之间少了空格,导致路径错误 解决方案五: 很明显啊, vi 后面是空格,但是你没有

class-为什么我想把b和i的值10或者6输出,却报错哪。

问题描述 为什么我想把b和i的值10或者6输出,却报错哪. class TestData { public static void main(String[] args) { byte b = 10; // 1个字节 int i = 6; // 4个字节 i = b; // OK b = (byte)i; //Ok 强制类型转化 System.out.printf(b + ", " + i + "); } } 解决方案 最后的+"是多余,引号不匹配 解决方案二: l

c++builder问题-c++ builder 6.0项目编译报错

问题描述 c++ builder 6.0项目编译报错 新安装了一个c++ builder 6.0,操作系统是win7. 新建了一个项目,没有做任何改动,编译之后报错,错误为: "[C++ Fatal error] Files(1): F1009 Unable to open input file 'Files'" 之后,我打开了在builder目录下的实例程序,编译之后还是报出了一样的错误. 解决方案 你肯定用过#include包含头文件

rehl 5.10安装oracle 11g R1数据库报错

问题描述 rehl 5.10安装oracle 11g R1数据库报错 解决方案 你需要手工创建一个数据库 解决方案二: 手工创建一下数据库试试 http://wenku.baidu.com/view/a43a532f915f804d2b16c1fa.html

c#-求助,请问,E写的DLL被C#调用就报错是为什么?

问题描述 求助,请问,E写的DLL被C#调用就报错是为什么? 求助,请问,E写的DLL被C#调用就报错是为什么? 传参弹窗的那种DLL 解决方案 贴出你的函数原型,看看C#这里声明的对不对. 解决方案二:

新版V2.2.0 2015-08-17 不只支持armv7吗 ? pod update下来报错

问题描述 新版V2.2.0 2015-08-17 不只支持armv7吗 ? pod update下来报错:Pods/EaseMobSDK/EaseMobSDK/lib/libEaseMobClientSDKLite_armv7.a(LBSCommandProcessor.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an u

安装Oracle JDK 7.0与8.0 for Mac OS X后Eclipse启动报错的解决之道

启动 Eclipse 时,直接报错The JVM shared library "/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/bin/../jre/lib/server/libjvm.dylib"does not contain the JNI_CreateJavaVM symbol. Unable to find any JVMs matching architecture "i386&qu