This content has been marked as final.
Show 2 replies
-
1. Re: Could not create Component: hibernateSession
dusan.banik.d.gmail.com Jul 19, 2010 10:08 AM (in response to 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 Jul 19, 2010 10:09 AM (in response to 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