zhangyuesheng666 2019-03-26 09:32 采纳率: 25%
浏览 4579
已采纳

tomcat启动后包错,HHH000342: Could not obtain connection to query metadata

2019-03-26 17:27:09,539 [localhost-startStop-1] WARN [org.hibernate.engine.jdbc.internal.JdbcServicesImpl] - HHH000342: Could not obtain connection to query metadata : Failed to grow the connection pool
2019-03-26 17:27:09,540 [localhost-startStop-1] INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@63be73ae: defining beans [logAspect,logSpELParseImpl,logDaoImpl,baseCommonRedisDao,baseRedisDao,redisTemplateUtil,restController,baseService,i18NService,sysLogTplService,baseSmsService,appCtxUtils,invokeRest,commonDataController,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.context.support.PropertySourcesPlaceholderConfigurer#0,desktopResourceDaoImpl,userDesktopDaoImpl,reqLogRedisDao,userDesktopService,reqLogService,commonRedisDao,sysCommonDaoImpl,checkDataDaoImpl,argumentsConfigurateDaoImpl,argumentsConfigurateRedisDao,ftpProcessLogDaoImpl,ftpServerDaoImpl,ftpUtilDaoImpl,sysLogAnalyzeDaoImpl,sysLogAuditDaoImpl,sysLogDaoImpl,sysLogStatisticsDaoImpl,sysRegionLogDaoImpl,sysUserOnlineLogDaoImpl,sysMonitorNDaoImpl,sysMonitorNIndicatorDaoImpl,sysMonitorNMappingDaoImpl,sysMonitorNServerDaoImpl,notificationDaoImpl,notificationLogDaoImpl,notificationRedisDao,portalDaoImpl,portalOperationDaoImpl,portletConfDaoImpl,projectInfoConfigDaoImpl,redisKeyValuesDao,monitorAlarmDaoImpl,monitorIndicatorDaoImpl,monitorInstantAlarmDaoImpl,monitorLogCacheDaoImpl,monitorLogCpuDaoImpl,monitorLogDatabaseDaoImpl,monitorLogDiskDaoImpl,monitorLogIoDaoImpl,monitorLogLoadaverageDaoImpl,monitorLogMemDaoImpl,monitorLogMqDaoImpl,monitorLogNetDaoImpl,monitorLogProcDaoImpl,monitorMappingDaoImpl,monitorResourceConfDaoImpl,monitorServerDaoImpl,sysCommonService,checkDataService,argumentsConfigurateService,ftpProcessLogServiceImpl,ftpServerServiceImpl,ftpUtilService,ftpUtilServiceProxy,sysLogAnalyzeService,sysLogsAuditService,sysLogService,sysLogStatisticsService,sysRegionLogService,sysUserOnlineLogService,sysMonitorNIndicatorService,sysMonitorNMappingService,sysMonitorNServerService,sysMonitorNService,notificationLogService,notificationRedisService,notificationService,portalOperationService,portalService,portletConfService,projectInfoConfigService,redisKeyValuesService,monitorAlarmService,monitorIndicatorService,monitorLogCacheService,monitorLogCpuService,monitorLogDatabaseService,monitorLogDiskService,monitorLogIoService,monitorLogLoadaverageService,monitorLogMemService,monitorLogMqService,monitorLogNetService,monitorLogProcService,monitorMappingService,monitorServerService,esdpBaseDao,clusterMngDaoImpl,esdpModNodeOperationsImpl,esdpModNodeStatusImpl,esdpJobContainerMngDaoImpl,esdpTaskMngDaoImpl,taskFilterPoolDapImpl,taskFilterSelectedDaoImpl,taskParamDaoImpl,esdpFtpInfoDaoImpl,esdpJobDaoImpl,esdpJobGroupDaoImpl,esdpJobParamDaoImpl,esdpJobSchDaoImpl,esdpJobSchRedoDaoImpl,jobAttributeDaoIpml,jobServiceDaoImpl,jobServiceGroupDaoImpl,jobServiceVarDaoIpml,esdpBaseService,clusterMngService,esdpJobContainerService,esdpTaskMngService,taskFilterPoolService,taskFilterSelectedService,taskParamService,jobService,jobServiceService,departmentDaoImpl,deptRedisDao,menuVisitedRedisDao,onlineUserRedisDao,resourceDaoImpl,resourceRedisDao,roleDaoImpl,userDaoImpl,userDepartmentDaoImpl,userRoleRedisDao,BaseFrameSysmngService,departmentService,menuVisitedService,resourceService,roleService,systemUserService,userDepartmentService,userService,configurationExtensionRedisDao,resourceExtensionDaoImpl,resourceExtensionRedisDao,roleExtensionDaoImpl,userExtensionDaoImpl,userExtensionRedisDao,configurationExtensionService,resourceExtensionService,roleExtensionService,userExtensionService,org.springframework.data.repository.core.support.RepositoryInterfaceAwareBeanPostProcessor#0,baseConfigurer,entitymanagerfactory,eastcomPersistenceUnitManager,jpaVendor,atomikosTransactionManager,atomikosUserTransaction,transactionManager,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,defaultConfigurer,dataSource,esdpManagerFactory,esdpConfigurer,esdpDataSource,redisConfigurer,connectionFactory,userDesktopController,loginExtensionController,projectInfoController,userGuideController,loginController,mainV3Controller,subjectV1Controller,SSOController,validateCodeController,menuVisitedLogController,sysCommonController,argumentsConfigurateController,ftpProcessLogController,ftpServerController,sysLogAnalyzeController,sysLogAuditController,sysLogController,sysLogStatisticsController,sysRegionLogController,sysUserOnlineLogController,sysMonitorController,notificationController,notificationLogController,portalOperationController,portletConfController,initRedisDataController,redisDataController,monitorController,clusterMngController,esdpJobContainerController,esdpTaskMngController,esdpJobController,jobServiceController,casSecurityService,departmentController,resourceController,roleController,userController,userDepartmentController,configurationExtensionController,userExtensionController,redisTemplate,jedisPoolConfig,requestLogFilter,reqLogFilterUrls,reqLogFuzzyFilterUrls,shiroConfigurer,securityManager,casRealm,casSubjectFactory,ncspRealm,ncspAuth,safelessList,xssFilter,csrfFilter,hostFilter,customFilter,hostIpFilter,casFilter,authc,shiroFilterChainDefinitionsMap,shiroFilter,cacheManager,org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor]; root of factory hierarchy
2019-03-26 17:27:09,544 [localhost-startStop-1] ERROR [org.springframework.web.context.ContextLoader] - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shiroFilter' defined in file [/home/bca/bca_app/apache-tomcat-7.0.92/webapps/web-esdp/WEB-INF/classes/security/applicationContext-shiro.xml]: Cannot resolve reference to bean 'securityManager' while setting bean property 'securityManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'securityManager' defined in file [/home/bca/bca_app/apache-tomcat-7.0.92/webapps/web-esdp/WEB-INF/classes/security/applicationContext-shiro.xml]: Cannot resolve reference to bean 'ncspRealm' while setting bean property 'realm'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ncspRealm': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.eastcom_sw.core.service.security.UserService com.eastcom_sw.core.service.security.NcspRealm.userService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.eastcom_sw.common.dao.jpa.LogDao com.eastcom_sw.common.service.BaseService.logDao; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'logDaoImpl': Injection of persistence dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entitymanagerfactory' defined in file [/home/bca/bca_app/apache-tomcat-7.0.92/webapps/web-esdp/WEB-INF/classes/default-db/applicationContext-default.xml]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: defaultPU] Unable to build EntityManagerFactory
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:329)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:107)

展开全部

  • 写回答

1条回答 默认 最新

  • 燕双嘤嘤 2019-03-26 10:18
    关注

    连接问题,检查自己的项目配置文件看一下,可能是驱动相关的一些配置文件出错了

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
编辑
预览

报告相同问题?

悬赏问题

  • ¥50 关于#php#的问题,请各位专家解答!
  • ¥15 python 3.8.0版本,安装官方库ibm_db遇到问题,提示找不到ibm_db模块。如何解决?
  • ¥15 TMUXHS4412如何防止静电,
  • ¥30 Metashape软件中如何将建模后的图像中的植被与庄稼点云删除
  • ¥20 机械振动学课后习题求解答
  • ¥15 IEC61850 客户端和服务端的通讯机制
  • ¥15 MAX98357a(关键词-播放音频)
  • ¥15 Linux误删文件,请求帮助
  • ¥15 IBMP550小型机使用串口登录操作系统
  • ¥15 关于#python#的问题:现已知七自由度机器人的DH参数,利用DH参数求解机器人的逆运动学解目前使用的PSO算法