[weld-dev] org.jboss.weld.exceptions.WeldException: Not an entity

brian brianx at vt.edu
Thu May 12 16:49:08 EDT 2011


you know, i was hoping you'd say that.  on
https://lists.jboss.org/mailman/listinfo ,

there are 3 lists, none of which look like a user list.  this was the
closest i could find.

would you mind passing along a link to the user list?

thanks!


On Thu, 2011-05-12 at 22:23 +0200, Ales Justin wrote:
> 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