我试图在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
有帮助吗?

解决方案

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

其他提示

您似乎需要在applicationContext.xml中定义sessionFactory。有关更多信息,请参阅此论坛帖子的信息。

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top