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

Tomas Remes updated JBSEAM-4975:
--------------------------------

        Fix Version/s: 2.3.0.CR1
    Affects Version/s: 2.3.0.BETA2
                           (was: 2.3.0.CR1)

    
> 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
>             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

        
_______________________________________________
seam-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/seam-issues

Reply via email to