Issue Type: Bug Bug
Affects Versions: 2.3.0.BETA2
Assignee: Unassigned
Components: Tools
Created: 22/Jun/12 4:06 AM
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}"/>
Environment: Seam-2.3.0.CR1-SNASPHOT dist from 2012-06-22
Fix Versions: 2.3.0.CR1
Project: Seam 2
Labels: seam-gen
Priority: Major Major
Reporter: Tomas Remes
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira