-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Could not create Component: hibernateSession
PostPosted: Mon Jul 19, 2010 9:47 am 
Newbie

Joined: Mon Jul 19, 2010 9:45 am
Posts: 2
hi,
i deployed my application on jboss and i get following exception:

15: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)

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?
thank you


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.