“班级不可转让”是什么意思?

时间:2011-04-13 07:19:07

标签: java eclipse jsf glassfish

我正在使用Eclipse Helios,JSF 2和Glassfish 3.1服务器.....以及发生的错误......

javax.servlet.ServletException: com.sun.faces.mgbean.ManagedBeanCreationException: Unable to create managed bean contactController.  The following problems were found:
     - The property groupRepository for managed bean contactController is defined with a property class of ibm.contact.model.ContactRepository, however, this class is not assignable to the property.

该错误的含义是什么以及如何解决?

1 个答案:

答案 0 :(得分:1)

我可以尝试猜测。控制器ContactController上的属性groupRepository的类型与容器尝试注入此属性的实例的类型不同,因此它不可取消。你是通过某种界面注入的吗?控制器接口中属性groupRepository的类型是什么?