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

Marek Novotny (JIRA) jira-events at lists.jboss.org
Fri Jun 8 04:45:17 EDT 2012


     [ https://issues.jboss.org/browse/JBSEAM-4975?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marek Novotny resolved JBSEAM-4975.
-----------------------------------

    Resolution: Done


I am now resolving this as I tried war and ear and the entityManager not found error didn't show up
                
> 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.BETA2
>            Reporter: Tomas Remes
>            Assignee: Marek Novotny
>              Labels: seam-gen
>             Fix For: 2.3.0.CR1
>
>
> 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:
> <available file="${jboss.home}/lib/jboss-vfs.jar"/>
> 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