This content has been marked as final.
Show 5 replies
-
1. Re: Exception Could not create Component:
herberson Jul 21, 2010 9:59 AM (in response to dusan.banik.d.gmail.com)Check your datasource config.
-
2. Re: Exception Could not create Component:
dusan.banik.d.gmail.com Jul 21, 2010 10:44 AM (in response to dusan.banik.d.gmail.com)<hibernate-configuration> <session-factory name= "java:/sessionFactory"> ..... <property name="transaction.flush_before_completion">true</property> <property name="connection.release_mode">after_statement</property> <property name="transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</property> <property name="transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property> <property name="connection.datasource">java:/hibernateSession</property> </session-factory>
-
3. Re: Exception Could not create Component:
dusan.banik.d.gmail.com Jul 21, 2010 10:45 AM (in response to dusan.banik.d.gmail.com)components.xml:
<persistence:hibernate-session-factory name="sessionFactory"/> <persistence:managed-hibernate-session name="hibernateSession" session-factory-jndi-name="java:/sessionFactory" auto-create="true"/> <transaction:hibernate-transaction session = "#{hibernateSession}"/>
-
4. Re: Exception Could not create Component:
swd847 Jul 23, 2010 2:33 AM (in response to dusan.banik.d.gmail.com)if you are in an EE environemnt you need something like this in your somponents.xml:
<core:init jndi-pattern="@jndiPattern@" />
refer to the seam docs for more info.
If you are in a se environment you need to install
<persistence:se-synchronizations/>
-
5. Re: Exception Could not create Component:
dusan.banik.d.gmail.com Jul 23, 2010 5:23 AM (in response to dusan.banik.d.gmail.com)hi i i added it and know i get following exception
11:09:38,091 ERROR [[/web]] Exception sending context initialized event to liste ner instance of class org.jboss.seam.servlet.SeamListener org.jboss.seam.InstantiationException: Could not instantiate Seam component: sessionFactory
Caused by: java.lang.ClassCastException: org.hibernate.validator.event.ValidateEventListener cannot be cast to org.hibernate.event.PreInsertEventListener 11:09:38,091 ERROR [StandardContext] Error listenerStart