我正在尝试在glassfish上部署netbeans java ee项目( maven + hibernate + JSF )。
我收到下面的错误。我的数据库配置是正常的(从几个应用程序中反复检查),数据库本身也是正常的和在线的。
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发布于 2009-07-29 15:25:26
我通过在glassfish属性中设置正确的java可执行文件解决了这个问题。Ty求救!
发布于 2009-07-29 14:13:05
看起来您需要在applicationContext.xml中定义sessionFactory。有关更多详细信息,请参阅此forum post。
https://stackoverflow.com/questions/1200524
复制相似问题