First, this is *dev* list, not *user* list. ;)
Please try user forum.
Sent from my iPod
On 12. maj. 2011, at 22:20, brian <brianx(a)vt.edu> wrote:
Hi,
I used seam-forge to gen a project and am attempting to replace the
beans with beans from my existing application. Getting an exception
from Weld saying that my entity isn't an entity:
I have my Entity, edu.vt.Service, annotated @Entity:
@Entity Service
---
My Session bean looks like this:
import edu.vt.Service
@Transactional @Named @Stateful @RequestScoped public class ServiceBean
extends PersistenceUtil {
private List<Service> list=null;
---
list.xhtml:
<ui:repeat var="entity" value="#{serviceBean.list}">
<li>#{entity.uid} <h:link outcome="view"
value="[view]">
<f:param name="uid" value="#{entity.uid}"/>
</h:link> #{entity} </li>
</ui:repeat>
---
bean deploys fine, navigating to the 'list' page throws an exception:
16:15:46,875 ERROR
[org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/serviceDemo-1.0.0-SNAPSHOT].[FacesServlet]]
Servlet.service() for servlet FacesServlet threw exception:
java.lang.IllegalArgumentException: Not an entity: class edu.vt.Service
---
any idea what i'm doing wrong?
_______________________________________________
weld-dev mailing list
weld-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/weld-dev