使用mongo的Grails应用程序不能在heroku上启动

时间:2013-05-16 16:39:40

标签: mongodb grails heroku

我正在尝试在heroku上部署我的Grails应用程序但部署在连接我的mongo bean时仍然失败。

我使用的部署方法是heroku deploy:war

我有MONGOLAB_URI设置,我可以使用命令heroku config检查。 阅读他们的插件文档,我认为应用程序中不需要mongo配置。

Stacktrace提取如下:

Error initializing the application: 
Error creating bean with name 'transactionManagerPostProcessor': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: 
Error creating bean with name 'mongoTransactionManager': Cannot resolve reference to bean 'mongoDatastore' while setting bean property 'datastore'; nested exception is org.springframework.beans.factory.BeanCreationException: 
Error creating bean with name 'mongoDatastore': FactoryBean threw exception on object creation; nested exception is org.springframework.data.mongodb.CannotGetMongoDbConnectionException: Failed to authenticate to database [heroku_blahblah], username = [heroku_blahblah], password = [blahblah] 

有谁知道我错过了什么?

0 个答案:

没有答案
相关问题