0

Grails アプリを heroku にデプロイしようとしていますが、mongo Bean を接続している間、デプロイが失敗し続けます。

私が使用している展開方法はheroku deploy:war.

MONGOLAB_URIコマンドheroku configで確認できるセットがあります。アドオンのドキュメントを読むと、アプリケーション内で mongo の構成は必要ないと思います。

スタックトレースの抜粋は次のとおりです。

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] 

誰かが私が欠けているものを知っていますか?

4

0 に答える 0