1 Reply Latest reply on Aug 28, 2009 11:05 PM by Arbi Sookazian

    Seam generated project in Eclipse always fails to load

    B Tomic Newbie

      I have a very simple project generated by Seam-gen's command line interface. When deployed, it works normally. But, if I use the Seam-gen plugin for Eclipse to generate the project, when deployed and accessed always generates the following exception:

      org.jboss.seam.InstantiationException: Could not instantiate Seam component: itemList
           at org.jboss.seam.Component.newInstance(Component.java:2106)
      Caused by: java.lang.IllegalArgumentException: EntityManagerFactory not found in JNDI : java:/testEntityManagerFactory
           at org.jboss.seam.persistence.ManagedPersistenceContext.getEntityManagerFactoryFromJndiOrValueBinding(ManagedPersistenceContext.java:245)

      Does anyone have any clue what's going on here? What could be the difference between the projects generated by Seam-gen and it's Eclipse equivalent that prevents the EntityManagerFactory from being bound to a JNDI name?

      I checked every single xml to see if there's something suspicious but everything seems to be in order... Any idea is appreciated...