2011-04-13 113 views
0

我使用Eclipse赫利俄斯JSF 2和Glassfish 3.1服务器.....什么的错误发生这样的...“class is not assignable”的含义是什么?

 
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

我只能尝试猜测。您的控制器ContactController上的属性groupRepository是不同类型的,那么容器试图向此属性注入的实例是不可信的。你是通过一些接口注入它吗?控制器界面中的属性groupRepository的类型是什么?

+0

我在faces-config.xml文件中发现错误.... groupRepository被注入为其他类型....谢谢。 – MineIsMine 2011-04-13 08:48:32

相关问题