3 Replies Latest reply on Dec 6, 2007 2:34 AM by Bartosz Jamroz

    SMPC - entityManager doesn`t get autocreated

    Bartosz Jamroz Newbie

      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 ?