[
https://issues.jboss.org/browse/JBSEAM-4996?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12711255#comment-12711255
]
Daniel Hinojosa commented on JBSEAM-4996:
-----------------------------------------
Is there a project that I can duplicate this scenario? I am going to just
create an ear project in seam-gen and I hope to get the same thing. The
standard up to this time is java:app/${project.name}-ejb/#{ejbName} so I am at
a loss as to why it needs to be any different. Will post my findings
momentarily.
> 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
_______________________________________________
seam-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/seam-issues