Java Netbeans BeancreationException
문제
Im NetBeans Java EE Project (Maven + Hibernate + JSF)를 Glassfish에 배치하려고합니다.
아래에서 오류가 발생합니다. 내 데이터베이스 구성은 정상이며 (여러 앱에서 두 번 확인) 데이터베이스 자체는 괜찮습니다.
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 실행 파일을 설정하여 문제를 해결했습니다. 도움을 요청하십시오!
다른 팁
ApplicationContext.xml에서 SessionFactory를 정의 해야하는 것 같습니다. 이것 좀 봐 포럼 게시물 자세한 사항은.
제휴하지 않습니다 StackOverflow