title: Connect Spring roo project to Mongo database
body: <p>I am new too roo and trying to create a simple app to push to Heroku. I have the app up and working on my localhost with a MongoDB running on the localhost as well. I added a MongoDB to the app in Heroku but it will not open on Heroku (the app not the DB). I don't know what the issue is but do I need to connect my app to the Heroku DB somehow? As in changing the <code>database.properties</code> file? I tried to test it locally using the Heroku DB by taking this URL (Which I can use to log into the DB just fine with mongoctl):</p>
  <pre><code>mongodb://heroku_app10830648:************************@ds047387.mongolab.com:4738/heroku_app10830648
  </code></pre>
  <p>and putting the info into the <code>database.properties</code> file:</p>
  <pre><code>#Updated at Wed Jan 09 19:16:49 MST 2013
  #Wed Jan 09 19:16:49 MST 2013
  mongo.database=heroku_app10830648
  mongo.host=ds047387.mongolab.com
  mongo.password=***********************
  mongo.port=47387
  mongo.username=heroku_app10830648
  </code></pre>
  <p>but when I build it with mvn package I get this error:</p>
  <hr />
  <h2>T E S T S</h2>
  <p>Results:</p>
  <p>Tests in error:</p>
  <pre><code>  testFindNotebook(com.xebia.shortnotes.domain.NotebookIntegrationTest): command failed [command failed [count] { &quot;assertion&quot; : &quot;unauthorized db:heroku_app10830648 ns:heroku_app10830648.notebook lock type:0 client:71.208.224.103&quot; , &quot;assertionCode&quot; : 10057 , &quot;errmsg&quot; : &quot;db assertion failure&quot; , &quot;ok&quot; : 0.0}
    testFindAllNotebooks(com.xebia.shortnotes.domain.NotebookIntegrationTest): command failed [command failed [count] { &quot;assertion&quot; : &quot;unauthorized db:heroku_app10830648 ns:heroku_app10830648.notebook lock type:0 client:71.208.224.103&quot; , &quot;assertionCode&quot; : 10057 , &quot;errmsg&quot; : &quot;db assertion failure&quot; , &quot;ok&quot; : 0.0}
    testFindNotebookEntries(com.xebia.shortnotes.domain.NotebookIntegrationTest): command failed [command failed [count] { &quot;assertion&quot; : &quot;unauthorized db:heroku_app10830648 ns:heroku_app10830648.notebook lock type:0 client:71.208.224.103&quot; , &quot;assertionCode&quot; : 10057 , &quot;errmsg&quot; : &quot;db assertion failure&quot; , &quot;ok&quot; : 0.0}
    testSaveNotebook(com.xebia.shortnotes.domain.NotebookIntegrationTest): command failed [command failed [count] { &quot;assertion&quot; : &quot;unauthorized db:heroku_app10830648 ns:heroku_app10830648.notebook lock type:0 client:71.208.224.103&quot; , &quot;assertionCode&quot; : 10057 , &quot;errmsg&quot; : &quot;db assertion failure&quot; , &quot;ok&quot; : 0.0}
    testDeleteNotebook(com.xebia.shortnotes.domain.NotebookIntegrationTest): command failed [command failed [count] { &quot;assertion&quot; : &quot;unauthorized db:heroku_app10830648 ns:heroku_app10830648.notebook lock type:0 client:71.208.224.103&quot; , &quot;assertionCode&quot; : 10057 , &quot;errmsg&quot; : &quot;db assertion failure&quot; , &quot;ok&quot; : 0.0}
    testCountAllNotes(com.xebia.shortnotes.domain.NoteIntegrationTest): command failed [command failed [count] { &quot;assertion&quot; : &quot;unauthorized db:heroku_app10830648 ns:heroku_app10830648.note lock type:0 client:71.208.224.103&quot; , &quot;assertionCode&quot; : 10057 , &quot;errmsg&quot; : &quot;db assertion failure&quot; , &quot;ok&quot; : 0.0}
    testFindNote(com.xebia.shortnotes.domain.NoteIntegrationTest): command failed [command failed [count] { &quot;assertion&quot; : &quot;unauthorized db:heroku_app10830648 ns:heroku_app10830648.note lock type:0 client:71.208.224.103&quot; , &quot;assertionCode&quot; : 10057 , &quot;errmsg&quot; : &quot;db assertion failure&quot; , &quot;ok&quot; : 0.0}
    testFindAllNotes(com.xebia.shortnotes.domain.NoteIntegrationTest): command failed [command failed [count] { &quot;assertion&quot; : &quot;unauthorized db:heroku_app10830648 ns:heroku_app10830648.note lock type:0 client:71.208.224.103&quot; , &quot;assertionCode&quot; : 10057 , &quot;errmsg&quot; : &quot;db assertion failure&quot; , &quot;ok&quot; : 0.0}
    testFindNoteEntries(com.xebia.shortnotes.domain.NoteIntegrationTest): command failed [command failed [count] { &quot;assertion&quot; : &quot;unauthorized db:heroku_app10830648 ns:heroku_app10830648.note lock type:0 client:71.208.224.103&quot; , &quot;assertionCode&quot; : 10057 , &quot;errmsg&quot; : &quot;db assertion failure&quot; , &quot;ok&quot; : 0.0}
    testSaveNote(com.xebia.shortnotes.domain.NoteIntegrationTest): command failed [command failed [count] { &quot;assertion&quot; : &quot;unauthorized db:heroku_app10830648 ns:heroku_app10830648.note lock type:0 client:71.208.224.103&quot; , &quot;assertionCode&quot; : 10057 , &quot;errmsg&quot; : &quot;db assertion failure&quot; , &quot;ok&quot; : 0.0}
    testDeleteNote(com.xebia.shortnotes.domain.NoteIntegrationTest): command failed [command failed [count] { &quot;assertion&quot; : &quot;unauthorized db:heroku_app10830648 ns:heroku_app10830648.note lock type:0 client:71.208.224.103&quot; , &quot;assertionCode&quot; : 10057 , &quot;errmsg&quot; : &quot;db assertion failure&quot; , &quot;ok&quot; : 0.0}
  
  Tests run: 14, Failures: 0, Errors: 12, Skipped: 0
  
  [INFO] ------------------------------------------------------------------------
  
  [ERROR] BUILD FAILURE
  
  [INFO] ------------------------------------------------------------------------
  
  [INFO] There are test failures.
  </code></pre>
  <p>How do I use a different DB besides local in a mvn project.</p>