1

我试图在 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
4

2 回答 2

1

我通过在 glassfish 属性中设置正确的 java 可执行文件来解决问题。泰求救!

于 2009-07-29T15:25:25.620 回答
0

看起来您需要在 applicationContext.xml 中定义 sessionFactory。有关更多详细信息,请参阅此论坛帖子

于 2009-07-29T14:13:04.637 回答