0 Replies Latest reply on May 13, 2011 10:35 AM by brian long

    entity not an entity

    brian long Newbie
      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?