[seam-issues] [JBoss JIRA] (JBSEAM-4996) Seam-gen generated EAR project not working

Marek Novotny (JIRA) jira-events at lists.jboss.org
Mon Aug 13 16:26:15 EDT 2012


    [ https://issues.jboss.org/browse/JBSEAM-4996?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12711295#comment-12711295 ] 

Marek Novotny commented on JBSEAM-4996:
---------------------------------------

Dan, 
you're right that all seam examples have got 
{noformat}java:app/${project.name}-ejb/#{ejbName} {noformat} but examples are in maven directory structure and  they builds ejb module as {noformat}example.name-ejb.jar{noformat} so the JNDI depends on what we have in generated project. seam-gen generates ejb jar as ${project.name}.jar, so that JNDI has to be the same as Tomas suggested in the issue description.

                
> Seam-gen generated EAR project not working
> ------------------------------------------
>
>                 Key: JBSEAM-4996
>                 URL: https://issues.jboss.org/browse/JBSEAM-4996
>             Project: Seam 2
>          Issue Type: Bug
>          Components: Tools
>    Affects Versions: 2.3.0.BETA2
>         Environment: Seam-2.3.0.CR1-SNASPHOT dist from 2012-06-22
>            Reporter: Tomas Remes
>            Assignee: Daniel Hinojosa
>              Labels: seam-gen
>             Fix For: 2.3.0.CR1
>
>
> 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:
> {noformat}
> 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
> {noformat}
> The jndiPattern value is set in generated project build.xml where is this:
> {noformat}
> <property name="ejbJndiPattern" value="java:app/${project.name}-ejb/#{ejbName}"/>
> {noformat}
> This pattern is not available in deployed EAR, so it probably should be like this:
> {noformat}
> <property name="ejbJndiPattern" value="java:app/${project.name}.jar/#{ejbName}"/>
> {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