简体   繁体   中英

problem when a Grails domain class extends from a EJB

When I has a grails domain class User that extends from a UserT class that is an EJB, in the User() instantiation throw an error. I understand not the cause of this problem, please help me for it and explain me why require the init method and where should be it. The follow is the error code:

Error creating bean with name 'gn.User': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [gn.User]: Constructor threw exception; nested exception is java.lang.NoSuchMethodError: com.jobs.users.UserT: method <init>()V not found

Does the super class have a default constructor? I think it needs one.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM