zhangyuesheng666 2019-03-26 17:32 采纳率: 25%
浏览 4573
已采纳

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 18:18
    关注

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

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

报告相同问题?

悬赏问题

  • ¥50 MATLAB APP 制作出现问题
  • ¥15 wannier复现图像时berry曲率极值点与高对称点严重偏移
  • ¥15 利用决策森林为什么会出现这样·的问题(关键词-情感分析)
  • ¥15 DispatcherServlet.noHandlerFound No mapping found for HTTP request with URI[/untitled30_war_e
  • ¥15 使用deepspeed训练,发现想要训练的参数没有梯度
  • ¥15 寻找一块做为智能割草机的驱动板(标签-stm32|关键词-m3)
  • ¥15 信息管理系统的查找和排序
  • ¥15 基于STM32,电机驱动模块为L298N,四路运放电磁传感器,三轮智能小车电磁组电磁循迹(两个电机,一个万向轮),怎么用读取的电磁传感器信号表示小车所在的位置
  • ¥15 如何解决y_true和y_predict数据类型不匹配的问题(相关搜索:机器学习)
  • ¥15 PB中矩阵文本型数据的总计问题。