title: Method on class [] was used outside of a Grails application. If running in the context of a test using the mocking API or bootstrap Grails Correctly
body: <h1>PROBLEM</h1>
  
  <p>I know there is already a question in regards to this but I think that the issue that causes might be different based on what they are saying. I have the following setup:</p>
  
  <ol>
  <li><strong>grails version:</strong> 2.3.4</li>
  <li><strong>Hibernate plugin:</strong> runtime ":hibernate:3.6.10.6"</li>
  <li>My Bootstrap is empty</li>
  <li>My Controller and Service tests are commented</li>
  </ol>
  
  <p>This grails application has multiple data sources (I am not sure if this fact has anything to do with it) and it occurs after a call against a Domain object from the second datasource which has been reversed engineered with the grails reverse engineer plugin (have done that on a separate project and then imported to my project. </p>
  
  <p>This is the GORM call that causes the problem from both the <strong>Controller</strong> and the <strong>Service</strong> layers</p>
  
  <pre><code>def campusAttributes = CampusAttribute.findAllByNameLike("%Next Option%")
  </code></pre>
  
  <p>I have found some other complains about this and it seems to be an issue with Maven and the grails hibernate plugin version but in that scenario the issue was very particular to grails 2.3.1 and a specific hibernate plugin version.</p>
  
  <p>All I did was a <strong>grails run-app</strong> (did not build the app with maven neither have any mocking)</p>
  
  <p>Thanks in advance</p>