Uploaded image for project: 'Seam 2'
  1. Seam 2
  2. JBSEAM-4975

Seam-gen generated project entityManager problem

    Details

    • Affects:
      Release Notes

      Description

      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:

      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)
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                manaRH Marek Novotny
                Reporter:
                tremes Tomas Remes
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: