当我 运行 Liferay 模块时 Bean 创建异常

Bean Creation Exception when I run Liferay module

我得到 Bean Creation Exception:

Caused by: org.springframework.beans.factory.BeanCreationException: Error creati
ng bean with name 'counterHibernateSessionFactory' defined in class path resourc
e [META-INF/hibernate-spring.xml]: Cannot resolve reference to bean 'counterData
Source' while setting bean property 'dataSource'; nested exception is org.spring
framework.beans.factory.BeanCreationException: Error creating bean with name 'co
unterDataSource' defined in class path resource [META-INF/counter-infrastructure
-spring.xml]: Cannot resolve reference to bean 'counterDataSourceImpl' while set
ting bean property 'targetDataSource';

我正在尝试 运行 tomcat server.I 上的 liferay 模块使用 Eclipse Lunatomcat server 8.0.32liferay 7.0 ga3。我搜索了对于有用的信息,没有找到任何可以解决问题的 problem.Thank 你!

我解决了这个问题,问题是我没有 Gradle IDE 合并,而且我试图 运行 模块直接在我的服务器上,但首先我必须用 gradle.Now 构建它 我正在通过转到模块的根路径并使用 blade cli 应用命令来在服务器上部署我的 liferay 模块:blade deploy.