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

Seam-gen generated EAR project not working

    Details

      Description

      I think that jndiPattern is not set correctly in EAR project generated by Seam-gen. For example it is not possible to login because of:

      Caused by: javax.naming.NameNotFoundException: myprojectEAR-ejb/AuthenticatorBean -- service jboss.naming.context.java.app.myprojectEAR.myprojectEAR-ejb.AuthenticatorBean
      	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:129)
      	at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:214)
      	at javax.naming.InitialContext.lookup(InitialContext.java:409) [rt.jar:1.6.0_22]
      	at org.jboss.seam.Component.instantiateSessionBean(Component.java:1403) [jboss-seam.jar:2.3.0.CR1-SNAPSHOT]
      	at org.jboss.seam.Component.instantiate(Component.java:1367) [jboss-seam.jar:2.3.0.CR1-SNAPSHOT]
      	at org.jboss.seam.Component.newInstance(Component.java:2148) [jboss-seam.jar:2.3.0.CR1-SNAPSHOT]
      	... 79 more
      

      The jndiPattern value is set in generated project build.xml where is this:

      <property name="ejbJndiPattern" value="java:app/${project.name}-ejb/#{ejbName}"/>
      

      This pattern is not available in deployed EAR, so it probably should be like this:

      <property name="ejbJndiPattern" value="java:app/${project.name}.jar/#{ejbName}"/>
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                dhinojosa Daniel Hinojosa
                Reporter:
                tremes Tomas Remes
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: