2 Replies Latest reply on Jul 19, 2010 10:09 AM by dusan.banik.d.gmail.com

    Could not create Component: hibernateSession

    dusan.banik.d.gmail.com

      hi,
      i deployed my application on jboss and i get following exception:

        • 1. Re: Could not create Component: hibernateSession
          dusan.banik.d.gmail.com


          5:17:36,931 ERROR [[/web]] Exception sending context initialized event to list
          ner instance of class org.jboss.seam.servlet.SeamListener
          java.lang.RuntimeException: Could not create Component: hibernateSession
          at org.jboss.seam.init.Initialization.addComponent(Initialization.java:
          202)
          at org.jboss.seam.init.Initialization.installComponents(Initialization.
          ava:1118)
          ....
          ....
          ....
          Caused by: java.lang.IllegalArgumentException: no such field: org.jboss.seam.pe
          sistence.ManagedHibernateSession.hibernateSessionFactory
          at org.jboss.seam.util.Reflections.getField(Reflections.java:316)
          at org.jboss.seam.Component.initInitializers(Component.java:493)
          at org.jboss.seam.Component.<init>(Component.java:254)
          at org.jboss.seam.Component.<init>(Component.java:205)
          



          • 2. Re: Could not create Component: hibernateSession
            dusan.banik.d.gmail.com

            in my components.xml i have these:


            <persistence:hibernate-session-factory name="sessionFactory"/>
            <persistence:managed-hibernate-session name="hibernateSession" hibernate-session-factory="#{sessionFactory}" auto-create="true"/>
            <transaction:hibernate-transaction session = "#{hibernateSession}"/>


            can somebody help me