后台(platform)安装运行问题
xueerfei opened this issue · 0 comments
分支v0.0.1.5-alpha
mvn构建成功,将两个war包 copy到 tomcat webapps目录下,
在浏览器中访问 http://localhost:8080/flow-api-v0.1.4-alpha/index,报如下异常:
(tomcat 和 mysql 已启动成功)
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'actionController': Unsatisfied dependency expressed through field 'actionService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'actionServiceImpl': Unsatisfied dependency expressed through field 'actionDao'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'actionDaoImpl': Unsatisfied dependency expressed through field 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [hibernate-mysql.config.xml]: Cannot resolve reference to bean 'hikariCpDataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hikariCpDataSource' defined in class path resource [hibernate-mysql.config.xml]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.zaxxer.hikari.HikariDataSource]: Constructor threw exception; nested exception is com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Communications link failure
另:还有问题,对于文档中关于安装的部分不太理解:
原文如下:
导入配置文件并启动
安装 dist 目录下的 flow-api-.war 以及 flow-control-center-.war 到 Apache Tomcat 服务器中,并设置上一步配置的 app-api.properties 到 FLOW_API_CONFIG_PATH 环境变量,app-cc.properties 到 FLOW_CC_CONFIG_PATH 环境变量。
配置两个properties文件到 环境变量,是说需要在系统的~/.bash_profile中增加 这两个变量吗?
如果是,那么值是什么? 解压打包后的war包,flow-api-.war 和 flow-control-center-.war两个包里app-default.properties已经有了相关的配置,不知道该怎么配置,求解答~