Incorrect seam.properties generated from seam reverse eng to
apwalker Feb 1, 2006 11:23 PMNot sure if this is the best place to post this....
I working with the lastest Seam version from CVS as well the JBoss 4.0 Branch. Also I'm using eclipse 3.1.1 and JBossIDE 1.5 with Hibernate Tools 3.1.0beta4
The seam app gets generated fine and compiles but I get the following execption when I deploy it.
04:12:53,750 INFO [Component] Component: org.jboss.seam.debug.contexts, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.debug.Contexts 04:12:53,781 INFO [Component] Component: entityManager, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.ManagedPersistenceContext 04:13:14,671 ERROR [[/seamapp]] Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener java.lang.IllegalArgumentException: java.beans.IntrospectionException: Method not found: isJndiName at org.jboss.seam.Component.initInitializers(Component.java:267) at org.jboss.seam.Component.<init>(Component.java:187) at org.jboss.seam.Component.<init>(Component.java:142) at org.jboss.seam.Component.<init>(Component.java:137) at org.jboss.seam.init.Initialization.addComponent(Initialization.java:239) at org.jboss.seam.init.Initialization.addComponents(Initialization.java:196) at org.jboss.seam.init.Initialization.init(Initialization.java:93) at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:30) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3692) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4127) ..... Caused by: java.beans.IntrospectionException: Method not found: isJndiName at java.beans.PropertyDescriptor.<init>(PropertyDescriptor.java:89) at java.beans.PropertyDescriptor.<init>(PropertyDescriptor.java:53) at org.jboss.seam.Component.initInitializers(Component.java:263)
I trace it to the seam.properties file which was generated by the tool it looks like this
# seam.properties org.jboss.seam.core.init.managedPersistenceContexts entityManager entityManager.jndiName java:/EntityManager #org.jboss.seam.core.manager.conversationTimeout 30000 org.jboss.seam.core.init.jndiPattern seamapp/#{ejbName}/local
The ManagedPersistenceContext class has the property persistenceUnitJndiName and not jndiName so by changing seam.properties file to
# seam.properties org.jboss.seam.core.init.managedPersistenceContexts entityManager entityManager.persistenceUnitJndiName java:/EntityManager #org.jboss.seam.core.manager.conversationTimeout 30000 org.jboss.seam.core.init.jndiPattern seamapp/#{ejbName}/local
The app deploys fine. So the issue appears to be in the generation of the seam.properties file.
Can someone please confirm this.
cheers,
Aaron