Reputation:
Im trying to deploy netbeans java ee project ( maven + hibernate + JSF ) on glassfish
Im getting error below. My database configuration is ok ( double checked from several apps ), and database itself is ok and online.
SEVERE: WebModule[/web-0.1-SNAPSHOT]PWC1275:
Exception sending context initialized event to listener
instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with
name 'txManager' defined in ServletContext resource
[/WEB-INF/classes/applicationContext.xml]: Invocation of init method failed;
nested exception is java.lang.IllegalArgumentException:
Property 'sessionFactory' is required
Upvotes: 1
Views: 557
Reputation:
I solved problem by setting correct java executable in glassfish properties. Ty for help !
Upvotes: 1
Reputation: 28469
It looks like you need to define the sessionFactory in your applicationContext.xml. See this forum post for more details.
Upvotes: 0