2014-03-06 166 views
-1

每当我启动grails应用程序时,它都有这个错误信息,我不知道为什么?Grails启动应用程序

|错误2014-03-06 19:30:55,494 [localhost-startStop-1]错误context.GrailsContextLoader - 初始化应用程序时出错:无法解析属性:location:tutor.com.Tutor;嵌套异常是org.hibernate.QueryException:无法解析属性:位置:tutor.com.Tutor 消息:无法解析属性:位置:tutor.com.Tutor;嵌套的例外是org.hibernate.QueryException:无法解析属性:位置:tutor.com.Tutor

这是我tutor.com.Tutor域:

package tutor.com 

class Tutor { 

    String description 
    String qualifications 
    String experience 
    double feedback 
    int rate 

    User user 

    static hasMany = [ subjects: Subject ] 

    static mapping={ 
     description(sqlType: 'text') 
    } 

    static constraints = { 
     feedback(nullable:true) 
    } 
} 
+0

您是否试图在Bootstrap.groovy中创建一些Tutors对象? –

+0

是你的包是否正确? –

回答

1

一定有什么东西在你Bootstrap或其他一些初始化代码来调用丢失的tutor.location属性