[seam-issues] [JBoss JIRA] (JBSEAM-4975) Seam-gen generated project entityManager problem

Tomas Remes (JIRA) jira-events at lists.jboss.org
Tue May 29 09:59:17 EDT 2012


Tomas Remes created JBSEAM-4975:
-----------------------------------

             Summary: Seam-gen generated project entityManager problem
                 Key: JBSEAM-4975
                 URL: https://issues.jboss.org/browse/JBSEAM-4975
             Project: Seam 2
          Issue Type: Bug
          Components: Tools
    Affects Versions: 2.3.0.CR1
            Reporter: Tomas Remes


When you generate Seam project in Seam-gen, it will create build.xml inside your new project. In this build.xml file there is handled "puJndiName" variable, which is then referenced in components.xml. The problem is that this variable is not set properly, because it depends on value of variable "seamBootstrapsPu" and this variable is assigned based on availability of ${jboss.home}/lib/jboss-vfs.jar file, which does not exist in AS7.
So the problem is this line (69) in build.xml:

{noformat}
 <available file="${jboss.home}/lib/jboss-vfs.jar"/>
{noformat}

When the entityManager could'nt be found, following exception occurs:
{noformat}
Caused by: javax.naming.NameNotFoundException: entityManager -- service jboss.naming.context.java.entityManager
	at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:97)
	at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:178)
	at org.jboss.as.naming.InitialContext.lookup(InitialContext.java:119)
	at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:214)
	at javax.naming.InitialContext.lookup(InitialContext.java:392)
	at org.jboss.seam.persistence.ManagedPersistenceContext.getEntityManagerFactoryFromJndiOrValueBinding(ManagedPersistenceContext.java:257)
{noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the seam-issues mailing list