开始错误如下:
Nov 27, 2018 10:43:09 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultTaskExecutorContainer': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.dianping.phoenix.lb.deploy.service.DeployTaskService com.dianping.phoenix.lb.deploy.executor.DefaultTaskExecutorContainer.deployTaskService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'deployTaskServiceImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.dianping.phoenix.lb.service.model.VirtualServerService com.dianping.phoenix.lb.deploy.service.impl.DeployTaskServiceImpl.virtualServerService; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'virtualServerServiceImpl' defined in file [/var/lib/tomcat/webapps/camel-admin-1.0.0/WEB-INF/classes/com/dianping/phoenix/lb/service/model/VirtualServerServiceImpl.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [com.dianping.phoenix.lb.dao.VirtualServerDao]: : Error creating bean with name 'virtualServerDaoImpl' defined in file [/var/lib/tomcat/webapps/camel-admin-1.0.0/WEB-INF/classes/com/dianping/phoenix/lb/dao/impl/VirtualServerDaoImpl.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [com.dianping.phoenix.lb.dao.ModelStore]: : Error creating bean with name 'mongoModelStoreImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.dianping.phoenix.lb.api.dao.AutoIncrementIdGenerator com.dianping.phoenix.lb.dao.mongo.AbstractDbStore.idGenerator; nested exception is
参照word改的,最后结果是war无法被容器启动。启动日志参见附件 catalina.2018-11-27.log
开始错误如下: Nov 27, 2018 10:43:09 PM org.apache.catalina.core.StandardContext listenerStart SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultTaskExecutorContainer': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.dianping.phoenix.lb.deploy.service.DeployTaskService com.dianping.phoenix.lb.deploy.executor.DefaultTaskExecutorContainer.deployTaskService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'deployTaskServiceImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.dianping.phoenix.lb.service.model.VirtualServerService com.dianping.phoenix.lb.deploy.service.impl.DeployTaskServiceImpl.virtualServerService; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'virtualServerServiceImpl' defined in file [/var/lib/tomcat/webapps/camel-admin-1.0.0/WEB-INF/classes/com/dianping/phoenix/lb/service/model/VirtualServerServiceImpl.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [com.dianping.phoenix.lb.dao.VirtualServerDao]: : Error creating bean with name 'virtualServerDaoImpl' defined in file [/var/lib/tomcat/webapps/camel-admin-1.0.0/WEB-INF/classes/com/dianping/phoenix/lb/dao/impl/VirtualServerDaoImpl.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [com.dianping.phoenix.lb.dao.ModelStore]: : Error creating bean with name 'mongoModelStoreImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.dianping.phoenix.lb.api.dao.AutoIncrementIdGenerator com.dianping.phoenix.lb.dao.mongo.AbstractDbStore.idGenerator; nested exception is