我正在尝试在 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 可执行文件解决了问题。寻求帮助!
关于Java Netbeans BeanCreationException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1200524/