title: The default EbeanServer has not been defined?
body: <p>PersistenceException: The default EbeanServer has not been defined? This is normally set via the ebean.datasource.default property. Otherwise it should be registered programatically via registerServer()</p>
  
  <p>Hi, I am getting above exception.i am trying to write sql query like</p>
  
  <pre><code>String sql = "select r.cpu as cpu, r.ram as ram, r.core as core"+"from res r,env e,env_reser"+"where e.node =1 and e.host= 1 and e.apps= 1 and er.eid=e.eid and r.rid=er.rid";
  SqlRow bug = Ebean.createSqlQuery(sql)
  .setParameter("h",1)
  .setParameter("n",1 )
  .setParameter("a",1 )
  .findUnique();
  </code></pre>
  
  <p>in Models package res.java file.</p>
  
  <p>If i comment above code error disappears.
  Can anybody plz help me.</p>
  
  <p>Thanku</p>