qq_42934929
zhangyuesheng666
采纳率45.5%
2019-03-26 17:32

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

5
已采纳

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条回答

  • weixin_37486553 燕双嘤嘤 2年前

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

    点赞 评论 复制链接分享