[weld-dev] org.jboss.weld.exceptions.WeldException: Not an entity
Ales Justin
ales.justin at gmail.com
Thu May 12 16:23:25 EDT 2011
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 at 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 at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/weld-dev
More information about the weld-dev
mailing list