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...
JBoss Tools is based on WTP and you get more than one high-level project when you create a new Seam project. Are you getting that in Eclipse w/ seam-gen plugin? The number of projects depends on whether you want a WAR or EAR.