In grails 2.x I could perform GORM operation in both the console and shell. Now when I try to do the same thing in 3.0.9, I get this error:
groovy:000> Person.count()
ERROR org.springframework.dao.DataAccessResourceFailureException:
Could not obtain current Hibernate Session; nested exception is org.hibernate.HibernateException: No Session found for current thread