[jboss-user] [JBoss Seam] - SMPC - entityManager doesn`t get autocreated
w17chm4n
do-not-reply at jboss.com
Wed Dec 5 06:09:25 EST 2007
First, what I get:
@In attribute requires non-null value: questionCategoryManager.entityManager
Second, my configuration (should be allright)
components.xml
| <component name="org.jboss.seam.core.init">
| <property name="debug">true</property>
| <property name="myFacesLifecycleBug">true</property>
| <property name="jndiPattern">Inquisitor/#{ejbName}/local</property>
| </component>
|
| <component class="org.jboss.seam.web.MultipartFilter">
| <property name="createTempFiles">true</property>
| <property name="maxRequestSize">1000000</property>
| </component>
|
| <core:managed-persistence-context name="entityManager" auto-create="true" persistence-unit-jndi-name="java:/EntityManagerFactory"/>
|
persistence.xml
| <persistence>
| <persistence-unit name="InquisitorDS">
| <jta-data-source>java:/InquisitorDS</jta-data-source>
| <properties>
| <property name="hibernate.hbm2ddl.auto" value="update"/>
| <property name="jboss.entity.manager.factory.jndi.name" value="java:/EntityManagerFactory" />
| </properties>
| </persistence-unit>
| </persistence>
|
So, why this doesn`t work ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4110471#4110471
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4110471
More information about the jboss-user
mailing list