2009-07-29 3 views
1

임 넷빈즈 자바 EE 프로젝트를 배포하려고 (받는다는 +는 최대 절전 모드 + JSF) 아래 글래스 피쉬자바 넷빈즈 BeanCreationException

임 점점 오류에. 내 데이터베이스 구성이 괜찮 으면 (몇 가지 응용 프로그램에서 두 번 선택) 데이터베이스 자체가 정상이며 온라인 상태입니다.

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 

답변

1

glassfish 속성에서 올바른 java 실행 파일을 설정하여 문제를 해결했습니다. 도와주세요!

0

applicationContext.xml에 sessionFactory를 정의해야하는 것처럼 보입니다. 자세한 내용은 forum post을 참조하십시오.

+0

내가 파일 스프링 데이터 소스가 appliacationContext.xml 에 가져온이 포함 \t <콩 ID = "sessionFactory에"클래스 = "org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean"> \t \t <속성 이름 = "은 dataSource"REF = "c3p0LocalDataSource"/><속성 이름 = "의 NamingStrategy"> \t \t \t <빈 클래스 = "org.hibernate.cfg.ImprovedNamingStrategy"/> \t \t \t \t <속성 이름 = "configurationClass "발 UE = "org.hibernate.cfg.AnnotationConfiguration"/> \t \t <속성 이름 = "hibernateProperties"> \t \t \t \t \t \t \t 가 <키 = "hibernate.dialect를"소품> org.hibernate.dialect. MySQL5InnoDBDialect {...} –

+0

나는 그것이 IDE 또는 glassfish와 뭔가 있다고 믿는다. –

+0

동일한 응용 프로그램이 여러 다른 컴퓨터에서 개발되었고 올바른 실행을하기 때문에 확실하다. –