Grails 在AmazonEC2上部署war

Grails 在AmazonEC2上部署war,grails,amazon-ec2,Grails,Amazon Ec2,当我使用RDS部署Grails应用程序时,出现以下错误: Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nest

当我使用RDS部署Grails应用程序时,出现以下错误:

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': 
Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: 
Error creating bean with name 'sessionFactory': 
Invocation of init method failed; nested exception is java.lang.NullPointerException   

检查数据库是否正在运行。是的,我已经检查并能够创建数据库。但它仍然抛出了这个错误