모르겠네.. @_@
도메인 객체에 @Configurable을 사용해서 DAO 객체를 주입하는데 하이버네이트 SessionFactory를 만들다가 에러가 납니다... 허헐.. 이것 참..
@Configurable은 그대로 두고, 도메인 객체에 주입했던 DAO들을 주석처리하면 SessionFactory도 잘 만들어 주고 그 뒤엔 나머지 모든 빈들도 다 잘 만들어지고 테스트도 잘 돌아갑니다.
하지만...도메인 객체에 DAO만 주입했다... 하면... 아래처럼 결국은 DAO를 주입한 클래스의 인스턴스를 만들지 못해서 SessionFactory를 만들지 못하고 그로 인해 ApplicationContext도 제대로 만들지 못해서 아무런 테스트가 돌아가질 않습니다.
Caused by: org.hibernate.InstantiationException: could not instantiate test objectkoma.domain.User
이것이 핵심으로 보이는데. 왜 그런지 잘 모르겠네요. 희한한건 스프링 3.0.0.M3을 쓰면 아무 문제 없이 잘 돌아간다는 겁니다. 톱님께서 제공하시는 최신 버전의 스프링으로 버전을 바꾸면 이런 현상이 벌어진다는 겁니다.
몇 가지 추측을 해볼 수 있는데...
1. 스프링 최신버전과 하이버네이트 버전이 맞지 않음.
2. 스프링 최신버전과 AspectJ 버전이 맞지 않음.
3. 최신 스프링 코드에 문제가 있음.
다행스러운건... 정식배포버전은 스프링 3.0.0.M3에서는 무사히 잘 돌아간다는 겁니다. 현재 스프링 의존성 매트릭스를 참조해서 하이버와 Aspectj 버전을 맞춰봤지만.. 여전히 아래와 같은 에러 로그가 떨어집니다.
[#M_더보기|접기|, java.vm.specification.vendor=Sun Microsystems Inc., user.variant=, os.name=Windows XP, sun.jnu.encoding=MS949, java.library.path=C:\Program Files\Java\jre6\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Program Files/Java/jre6/bin/client;C:/Program Files/Java/jre6/bin;C:\oracle\product\10.2.0\db_1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\QuickTime\QTSystem;c:\Program Files\Microsoft SQL Server\90\Tools\binn;C:\Program Files\VanDyke Software\SecureCRT;C:\Program Files\SecureCRT;C:\Program Files\QuickTime\QTSystem;c:\Program Files\Microsoft SQL Server\90\Tools\binn;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Subversion\bin;C:\Program Files\ESTsoft\ALZip;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Java\jdk1.6.0_10\bin;C:\apps\apache-maven-2.0.10\bin;"C:\Program Files\PostgreSQL\8.3\bin";C:\apps\apache-ant-1.7.1\bin;C:\Program Files\Git\bin;C:\Program Files\ESTsoft\ALZip;C:\apps\spring-roo-1.0.0.M1\bin, java.specification.name=Java Platform API Specification, java.class.version=50.0, sun.management.compiler=HotSpot Client Compiler, hibernate.transaction.factory_class=org.springframework.orm.hibernate3.SpringTransactionFactory, os.version=5.1, user.home=C:\Documents and Settings\MyHome, user.timezone=Asia/Seoul, java.awt.printerjob=sun.awt.windows.WPrinterJob, file.encoding=MS949, java.specification.version=1.6, java.class.path=C:\springsource\workspace\koma\target\test-classes;C:\springsource\workspace\koma\target\classes;C:\Documents and Settings\MyHome\.m2\repository\javax\persistence\com.springsource.javax.persistence\1.0.0\com.springsource.javax.persistence-1.0.0.jar;C:\Documents and Settings\MyHome\.m2\repository\javax\transaction\com.springsource.javax.transaction\1.1.0\com.springsource.javax.transaction-1.1.0.jar;C:\Documents and Settings\MyHome\.m2\repository\javax\servlet\jsp-api\2.0\jsp-api-2.0.jar;C:\Documents and Settings\MyHome\.m2\repository\javax\servlet\jstl\1.1.0\jstl-1.1.0.jar;C:\Documents and Settings\MyHome\.m2\repository\javax\servlet\servlet-api\2.5\servlet-api-2.5.jar;C:\Documents and Settings\MyHome\.m2\repository\c3p0\c3p0\0.9.1.2\c3p0-0.9.1.2.jar;C:\Documents and Settings\MyHome\.m2\repository\org\antlr\com.springsource.antlr\2.7.6\com.springsource.antlr-2.7.6.jar;C:\Documents and Settings\MyHome\.m2\repository\edu\oswego\cs\concurrent\com.springsource.edu.oswego.cs.dl.util.concurrent\1.3.4\com.springsource.edu.oswego.cs.dl.util.concurrent-1.3.4.jar;C:\Documents and Settings\MyHome\.m2\repository\org\jboss\javassist\com.springsource.javassist\3.3.0.ga\com.springsource.javassist-3.3.0.ga.jar;C:\Documents and Settings\MyHome\.m2\repository\net\sourceforge\cglib\com.springsource.net.sf.cglib\2.1.3\com.springsource.net.sf.cglib-2.1.3.jar;C:\Documents and Settings\MyHome\.m2\repository\org\aopalliance\com.springsource.org.aopalliance\1.0.0\com.springsource.org.aopalliance-1.0.0.jar;C:\Documents and Settings\MyHome\.m2\repository\org\apache\commons\com.springsource.org.apache.commons.collections\3.2.0\com.springsource.org.apache.commons.collections-3.2.0.jar;C:\Documents and Settings\MyHome\.m2\repository\org\apache\commons\com.springsource.org.apache.commons.logging\1.1.1\com.springsource.org.apache.commons.logging-1.1.1.jar;C:\Documents and Settings\MyHome\.m2\repository\org\apache\log4j\com.springsource.org.apache.log4j\1.2.15\com.springsource.org.apache.log4j-1.2.15.jar;C:\Documents and Settings\MyHome\.m2\repository\org\aspectj\com.springsource.org.aspectj.runtime\1.6.3.RELEASE\com.springsource.org.aspectj.runtime-1.6.3.RELEASE.jar;C:\Documents and Settings\MyHome\.m2\repository\org\aspectj\com.springsource.org.aspectj.tools\1.6.3.RELEASE\com.springsource.org.aspectj.tools-1.6.3.RELEASE.jar;C:\Documents and Settings\MyHome\.m2\repository\org\aspectj\com.springsource.org.aspectj.weaver\1.6.3.RELEASE\com.springsource.org.aspectj.weaver-1.6.3.RELEASE.jar;C:\Documents and Settings\MyHome\.m2\repository\org\codehaus\jackson\com.springsource.org.codehaus.jackson\1.0.0\com.springsource.org.codehaus.jackson-1.0.0.jar;C:\Documents and Settings\MyHome\.m2\repository\org\codehaus\jackson\com.springsource.org.codehaus.jackson.mapper\1.0.0\com.springsource.org.codehaus.jackson.mapper-1.0.0.jar;C:\Documents and Settings\MyHome\.m2\repository\org\dom4j\com.springsource.org.dom4j\1.6.1\com.springsource.org.dom4j-1.6.1.jar;C:\Documents and Settings\MyHome\.m2\repository\org\easymock\com.springsource.org.easymock\2.5.1\com.springsource.org.easymock-2.5.1.jar;C:\Documents and Settings\MyHome\.m2\repository\org\hibernate\com.springsource.org.hibernate\3.2.6.ga\com.springsource.org.hibernate-3.2.6.ga.jar;C:\Documents and Settings\MyHome\.m2\repository\org\hibernate\com.springsource.org.hibernate.annotations\3.3.1.ga\com.springsource.org.hibernate.annotations-3.3.1.ga.jar;C:\Documents and Settings\MyHome\.m2\repository\org\hibernate\com.springsource.org.hibernate.annotations.common\3.3.0.ga\com.springsource.org.hibernate.annotations.common-3.3.0.ga.jar;C:\Documents and Settings\MyHome\.m2\repository\org\hibernate\com.springsource.org.hibernate.ejb\3.3.2.GA\com.springsource.org.hibernate.ejb-3.3.2.GA.jar;C:\Documents and Settings\MyHome\.m2\repository\org\hsqldb\com.springsource.org.hsqldb\1.8.0.9\com.springsource.org.hsqldb-1.8.0.9.jar;C:\Documents and Settings\MyHome\.m2\repository\org\jboss\util\com.springsource.org.jboss.util\2.0.4.GA\com.springsource.org.jboss.util-2.0.4.GA.jar;C:\Documents and Settings\MyHome\.m2\repository\org\mozilla\javascript\com.springsource.org.mozilla.javascript\1.7.0.R2\com.springsource.org.mozilla.javascript-1.7.0.R2.jar;C:\Documents and Settings\MyHome\.m2\repository\org\objectweb\asm\com.springsource.org.objectweb.asm\2.2.3\com.springsource.org.objectweb.asm-2.2.3.jar;C:\Documents and Settings\MyHome\.m2\repository\org\objectweb\asm\com.springsource.org.objectweb.asm.attrs\1.5.3\com.springsource.org.objectweb.asm.attrs-1.5.3.jar;C:\Documents and Settings\MyHome\.m2\repository\org\objectweb\asm\com.springsource.org.objectweb.asm.commons\2.2.3\com.springsource.org.objectweb.asm.commons-2.2.3.jar;C:\Documents and Settings\MyHome\.m2\repository\org\tuckey\com.springsource.org.tuckey.web.filters.urlrewrite\3.1.0\com.springsource.org.tuckey.web.filters.urlrewrite-3.1.0.jar;C:\Documents and Settings\MyHome\.m2\repository\org\slf4j\com.springsource.slf4j.api\1.5.6\com.springsource.slf4j.api-1.5.6.jar;C:\Documents and Settings\MyHome\.m2\repository\org\slf4j\com.springsource.slf4j.log4j\1.5.6\com.springsource.slf4j.log4j-1.5.6.jar;C:\Documents and Settings\MyHome\.m2\repository\commons-collections\commons-collections\3.2.1\commons-collections-3.2.1.jar;C:\Documents and Settings\MyHome\.m2\repository\commons-fileupload\commons-fileupload\1.2\commons-fileupload-1.2.jar;C:\Documents and Settings\MyHome\.m2\repository\org\dbunit\dbunit\2.4.4\dbunit-2.4.4.jar;C:\Documents and Settings\MyHome\.m2\repository\dwr\dwr\2.0.5\dwr-2.0.5.jar;C:\Documents and Settings\MyHome\.m2\repository\hg-1\hg-1\1.0\hg-1-1.0.jar;C:\Documents and Settings\MyHome\.m2\repository\junit\junit\4.6\junit-4.6.jar;C:\Documents and Settings\MyHome\.m2\repository\org\mvel\mvel\1.3.2-java1.6\mvel-1.3.2-java1.6.jar;C:\Documents and Settings\MyHome\.m2\repository\mysql\mysql\5.1.6\mysql-5.1.6.jar;C:\Documents and Settings\MyHome\.m2\repository\org\springframework\org.springframework.aop\3.0.0.BUILD-20090713035521\org.springframework.aop-3.0.0.BUILD-20090713035521.jar;C:\Documents and Settings\MyHome\.m2\repository\org\springframework\org.springframework.asm\3.0.0.BUILD-20090713035521\org.springframework.asm-3.0.0.BUILD-20090713035521.jar;C:\Documents and Settings\MyHome\.m2\repository\org\springframework\org.springframework.aspects\3.0.0.BUILD-20090713035521\org.springframework.aspects-3.0.0.BUILD-20090713035521.jar;C:\Documents and Settings\MyHome\.m2\repository\org\springframework\org.springframework.beans\3.0.0.BUILD-20090713035521\org.springframework.beans-3.0.0.BUILD-20090713035521.jar;C:\Documents and Settings\MyHome\.m2\repository\org\springframework\org.springframework.context\3.0.0.BUILD-20090713035521\org.springframework.context-3.0.0.BUILD-20090713035521.jar;C:\Documents and Settings\MyHome\.m2\repository\org\springframework\org.springframework.core\3.0.0.BUILD-20090713035521\org.springframework.core-3.0.0.BUILD-20090713035521.jar;C:\Documents and Settings\MyHome\.m2\repository\org\springframework\org.springframework.expression\3.0.0.BUILD-20090713035521\org.springframework.expression-3.0.0.BUILD-20090713035521.jar;C:\Documents and Settings\MyHome\.m2\repository\org\springframework\org.springframework.jdbc\3.0.0.BUILD-20090713035521\org.springframework.jdbc-3.0.0.BUILD-20090713035521.jar;C:\Documents and Settings\MyHome\.m2\repository\org\springframework\org.springframework.orm\3.0.0.BUILD-20090713035521\org.springframework.orm-3.0.0.BUILD-20090713035521.jar;C:\Documents and Settings\MyHome\.m2\repository\org\springframework\org.springframework.test\3.0.0.BUILD-20090713035521\org.springframework.test-3.0.0.BUILD-20090713035521.jar;C:\Documents and Settings\MyHome\.m2\repository\org\springframework\org.springframework.transaction\3.0.0.BUILD-20090713035521\org.springframework.transaction-3.0.0.BUILD-20090713035521.jar;C:\Documents and Settings\MyHome\.m2\repository\org\springframework\org.springframework.web\3.0.0.BUILD-20090713035521\org.springframework.web-3.0.0.BUILD-20090713035521.jar;C:\Documents and Settings\MyHome\.m2\repository\org\springframework\org.springframework.web.servlet\3.0.0.BUILD-20090713035521\org.springframework.web.servlet-3.0.0.BUILD-20090713035521.jar;C:\Documents and Settings\MyHome\.m2\repository\poi\poi\2.5.1-final-20040804\poi-2.5.1-final-20040804.jar;C:\Documents and Settings\MyHome\.m2\repository\postgresql\postgresql\8.2-507.jdbc3\postgresql-8.2-507.jdbc3.jar;C:\Documents and Settings\MyHome\.m2\repository\org\slf4j\slf4j-api\1.5.6\slf4j-api-1.5.6.jar;C:\Documents and Settings\MyHome\.m2\repository\taglibs\standard\1.1.2\standard-1.1.2.jar;C:\springsource\sts-2.1.0.M2\plugins\org.aspectj.runtime_1.6.5.20090407153400\aspectjrt.jar;/C:/springsource/sts-2.1.0.M2/configuration/org.eclipse.osgi/bundles/401/1/.cp/;/C:/springsource/sts-2.1.0.M2/configuration/org.eclipse.osgi/bundles/399/1/.cp/;/C:/springsource/sts-2.1.0.M2/configuration/org.eclipse.osgi/bundles/400/1/.cp/;weaving/spring-agent.jar, user.name=Whiteship, hibernate.bytecode.use_reflection_optimizer=false, hibernate.show_sql=true, java.vm.specification.version=1.0, sun.arch.data.model=32, java.home=C:\Program Files\Java\jre6, hibernate.dialect=org.hibernate.dialect.HSQLDialect, java.specification.vendor=Sun Microsystems Inc., user.language=ko, awt.toolkit=sun.awt.windows.WToolkit, java.vm.info=mixed mode, sharing, java.version=1.6.0_13, java.ext.dirs=C:\Program Files\Java\jre6\lib\ext;C:\WINDOWS\Sun\Java\lib\ext, sun.boot.class.path=C:\Program Files\Java\jre6\lib\resources.jar;C:\Program Files\Java\jre6\lib\rt.jar;C:\Program Files\Java\jre6\lib\sunrsasign.jar;C:\Program Files\Java\jre6\lib\jsse.jar;C:\Program Files\Java\jre6\lib\jce.jar;C:\Program Files\Java\jre6\lib\charsets.jar;C:\Program Files\Java\jre6\classes, java.vendor=Sun Microsystems Inc., file.separator=\, java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi, hibernate.hbm2ddl.auto=update, hibernate.connection.provider_class=org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider, sun.cpu.endian=little, sun.io.unicode.encoding=UnicodeLittle, sun.desktop=windows, sun.cpu.isalist=pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86}
DEBUG - SessionFactoryImpl.<init>(177) | instantiating session factory with properties: {java.runtime.name=Java(TM) SE Runtime Environment, sun.boot.library.path=C:\Program Files\Java\jre6\bin, java.vm.version=11.3-b02, java.vm.vendor=Sun Microsystems Inc., java.vendor.url=http://java.sun.com/, path.separator=;, java.vm.name=Java HotSpot(TM) Client VM, file.encoding.pkg=sun.io, user.country=KR, sun.java.launcher=SUN_STANDARD, sun.os.patch.level=Service Pack 3, java.vm.specification.name=Java Virtual Machine Specification, user.dir=C:\springsource\workspace\koma, java.runtime.version=1.6.0_13-b03, java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment, hibernate.current_session_context_class=org.springframework.orm.hibernate3.SpringSessionContext, java.endorsed.dirs=C:\Program Files\Java\jre6\lib\endorsed, os.arch=x86, java.io.tmpdir=C:\DOCUME~1\MyHome\LOCALS~1\Temp\, line.separator=
, java.vm.specification.vendor=Sun Microsystems Inc., user.variant=, os.name=Windows XP, sun.jnu.encoding=MS949, java.library.path=C:\Program Files\Java\jre6\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Program Files/Java/jre6/bin/client;C:/Program Files/Java/jre6/bin;C:\oracle\product\10.2.0\db_1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\QuickTime\QTSystem;c:\Program Files\Microsoft SQL Server\90\Tools\binn;C:\Program Files\VanDyke Software\SecureCRT;C:\Program Files\SecureCRT;C:\Program Files\QuickTime\QTSystem;c:\Program Files\Microsoft SQL Server\90\Tools\binn;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Subversion\bin;C:\Program Files\ESTsoft\ALZip;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Java\jdk1.6.0_10\bin;C:\apps\apache-maven-2.0.10\bin;"C:\Program Files\PostgreSQL\8.3\bin";C:\apps\apache-ant-1.7.1\bin;C:\Program Files\Git\bin;C:\Program Files\ESTsoft\ALZip;C:\apps\spring-roo-1.0.0.M1\bin, java.specification.name=Java Platform API Specification, java.class.version=50.0, sun.management.compiler=HotSpot Client Compiler, hibernate.transaction.factory_class=org.springframework.orm.hibernate3.SpringTransactionFactory, os.version=5.1, user.home=C:\Documents and Settings\MyHome, user.timezone=Asia/Seoul, java.awt.printerjob=sun.awt.windows.WPrinterJob, file.encoding=MS949, java.specification.version=1.6, java.class.path=C:\springsource\workspace\koma\target\test-classes;C:\springsource\workspace\koma\target\classes;C:\Documents and Settings\MyHome\.m2\repository\javax\persistence\com.springsource.javax.persistence\1.0.0\com.springsource.javax.persistence-1.0.0.jar;C:\Documents and Settings\MyHome\.m2\repository\javax\transaction\com.springsource.javax.transaction\1.1.0\com.springsource.javax.transaction-1.1.0.jar;C:\Documents and Settings\MyHome\.m2\repository\javax\servlet\jsp-api\2.0\jsp-api-2.0.jar;C:\Documents and Settings\MyHome\.m2\repository\javax\servlet\jstl\1.1.0\jstl-1.1.0.jar;C:\Documents and Settings\MyHome\.m2\repository\javax\servlet\servlet-api\2.5\servlet-api-2.5.jar;C:\Documents and Settings\MyHome\.m2\repository\c3p0\c3p0\0.9.1.2\c3p0-0.9.1.2.jar;C:\Documents and Settings\MyHome\.m2\repository\org\antlr\com.springsource.antlr\2.7.6\com.springsource.antlr-2.7.6.jar;C:\Documents and Settings\MyHome\.m2\repository\edu\oswego\cs\concurrent\com.springsource.edu.oswego.cs.dl.util.concurrent\1.3.4\com.springsource.edu.oswego.cs.dl.util.concurrent-1.3.4.jar;C:\Documents and Settings\MyHome\.m2\repository\org\jboss\javassist\com.springsource.javassist\3.3.0.ga\com.springsource.javassist-3.3.0.ga.jar;C:\Documents and Settings\MyHome\.m2\repository\net\sourceforge\cglib\com.springsource.net.sf.cglib\2.1.3\com.springsource.net.sf.cglib-2.1.3.jar;C:\Documents and Settings\MyHome\.m2\repository\org\aopalliance\com.springsource.org.aopalliance\1.0.0\com.springsource.org.aopalliance-1.0.0.jar;C:\Documents and Settings\MyHome\.m2\repository\org\apache\commons\com.springsource.org.apache.commons.collections\3.2.0\com.springsource.org.apache.commons.collections-3.2.0.jar;C:\Documents and Settings\MyHome\.m2\repository\org\apache\commons\com.springsource.org.apache.commons.logging\1.1.1\com.springsource.org.apache.commons.logging-1.1.1.jar;C:\Documents and Settings\MyHome\.m2\repository\org\apache\log4j\com.springsource.org.apache.log4j\1.2.15\com.springsource.org.apache.log4j-1.2.15.jar;C:\Documents and Settings\MyHome\.m2\repository\org\aspectj\com.springsource.org.aspectj.runtime\1.6.3.RELEASE\com.springsource.org.aspectj.runtime-1.6.3.RELEASE.jar;C:\Documents and Settings\MyHome\.m2\repository\org\aspectj\com.springsource.org.aspectj.tools\1.6.3.RELEASE\com.springsource.org.aspectj.tools-1.6.3.RELEASE.jar;C:\Documents and Settings\MyHome\.m2\repository\org\aspectj\com.springsource.org.aspectj.weaver\1.6.3.RELEASE\com.springsource.org.aspectj.weaver-1.6.3.RELEASE.jar;C:\Documents and Settings\MyHome\.m2\repository\org\codehaus\jackson\com.springsource.org.codehaus.jackson\1.0.0\com.springsource.org.codehaus.jackson-1.0.0.jar;C:\Documents and Settings\MyHome\.m2\repository\org\codehaus\jackson\com.springsource.org.codehaus.jackson.mapper\1.0.0\com.springsource.org.codehaus.jackson.mapper-1.0.0.jar;C:\Documents and Settings\MyHome\.m2\repository\org\dom4j\com.springsource.org.dom4j\1.6.1\com.springsource.org.dom4j-1.6.1.jar;C:\Documents and Settings\MyHome\.m2\repository\org\easymock\com.springsource.org.easymock\2.5.1\com.springsource.org.easymock-2.5.1.jar;C:\Documents and Settings\MyHome\.m2\repository\org\hibernate\com.springsource.org.hibernate\3.2.6.ga\com.springsource.org.hibernate-3.2.6.ga.jar;C:\Documents and Settings\MyHome\.m2\repository\org\hibernate\com.springsource.org.hibernate.annotations\3.3.1.ga\com.springsource.org.hibernate.annotations-3.3.1.ga.jar;C:\Documents and Settings\MyHome\.m2\repository\org\hibernate\com.springsource.org.hibernate.annotations.common\3.3.0.ga\com.springsource.org.hibernate.annotations.common-3.3.0.ga.jar;C:\Documents and Settings\MyHome\.m2\repository\org\hibernate\com.springsource.org.hibernate.ejb\3.3.2.GA\com.springsource.org.hibernate.ejb-3.3.2.GA.jar;C:\Documents and Settings\MyHome\.m2\repository\org\hsqldb\com.springsource.org.hsqldb\1.8.0.9\com.springsource.org.hsqldb-1.8.0.9.jar;C:\Documents and Settings\MyHome\.m2\repository\org\jboss\util\com.springsource.org.jboss.util\2.0.4.GA\com.springsource.org.jboss.util-2.0.4.GA.jar;C:\Documents and Settings\MyHome\.m2\repository\org\mozilla\javascript\com.springsource.org.mozilla.javascript\1.7.0.R2\com.springsource.org.mozilla.javascript-1.7.0.R2.jar;C:\Documents and Settings\MyHome\.m2\repository\org\objectweb\asm\com.springsource.org.objectweb.asm\2.2.3\com.springsource.org.objectweb.asm-2.2.3.jar;C:\Documents and Settings\MyHome\.m2\repository\org\objectweb\asm\com.springsource.org.objectweb.asm.attrs\1.5.3\com.springsource.org.objectweb.asm.attrs-1.5.3.jar;C:\Documents and Settings\MyHome\.m2\repository\org\objectweb\asm\com.springsource.org.objectweb.asm.commons\2.2.3\com.springsource.org.objectweb.asm.commons-2.2.3.jar;C:\Documents and Settings\MyHome\.m2\repository\org\tuckey\com.springsource.org.tuckey.web.filters.urlrewrite\3.1.0\com.springsource.org.tuckey.web.filters.urlrewrite-3.1.0.jar;C:\Documents and Settings\MyHome\.m2\repository\org\slf4j\com.springsource.slf4j.api\1.5.6\com.springsource.slf4j.api-1.5.6.jar;C:\Documents and Settings\MyHome\.m2\repository\org\slf4j\com.springsource.slf4j.log4j\1.5.6\com.springsource.slf4j.log4j-1.5.6.jar;C:\Documents and Settings\MyHome\.m2\repository\commons-collections\commons-collections\3.2.1\commons-collections-3.2.1.jar;C:\Documents and Settings\MyHome\.m2\repository\commons-fileupload\commons-fileupload\1.2\commons-fileupload-1.2.jar;C:\Documents and Settings\MyHome\.m2\repository\org\dbunit\dbunit\2.4.4\dbunit-2.4.4.jar;C:\Documents and Settings\MyHome\.m2\repository\dwr\dwr\2.0.5\dwr-2.0.5.jar;C:\Documents and Settings\MyHome\.m2\repository\hg-1\hg-1\1.0\hg-1-1.0.jar;C:\Documents and Settings\MyHome\.m2\repository\junit\junit\4.6\junit-4.6.jar;C:\Documents and Settings\MyHome\.m2\repository\org\mvel\mvel\1.3.2-java1.6\mvel-1.3.2-java1.6.jar;C:\Documents and Settings\MyHome\.m2\repository\mysql\mysql\5.1.6\mysql-5.1.6.jar;C:\Documents and Settings\MyHome\.m2\repository\org\springframework\org.springframework.aop\3.0.0.BUILD-20090713035521\org.springframework.aop-3.0.0.BUILD-20090713035521.jar;C:\Documents and Settings\MyHome\.m2\repository\org\springframework\org.springframework.asm\3.0.0.BUILD-20090713035521\org.springframework.asm-3.0.0.BUILD-20090713035521.jar;C:\Documents and Settings\MyHome\.m2\repository\org\springframework\org.springframework.aspects\3.0.0.BUILD-20090713035521\org.springframework.aspects-3.0.0.BUILD-20090713035521.jar;C:\Documents and Settings\MyHome\.m2\repository\org\springframework\org.springframework.beans\3.0.0.BUILD-20090713035521\org.springframework.beans-3.0.0.BUILD-20090713035521.jar;C:\Documents and Settings\MyHome\.m2\repository\org\springframework\org.springframework.context\3.0.0.BUILD-20090713035521\org.springframework.context-3.0.0.BUILD-20090713035521.jar;C:\Documents and Settings\MyHome\.m2\repository\org\springframework\org.springframework.core\3.0.0.BUILD-20090713035521\org.springframework.core-3.0.0.BUILD-20090713035521.jar;C:\Documents and Settings\MyHome\.m2\repository\org\springframework\org.springframework.expression\3.0.0.BUILD-20090713035521\org.springframework.expression-3.0.0.BUILD-20090713035521.jar;C:\Documents and Settings\MyHome\.m2\repository\org\springframework\org.springframework.jdbc\3.0.0.BUILD-20090713035521\org.springframework.jdbc-3.0.0.BUILD-20090713035521.jar;C:\Documents and Settings\MyHome\.m2\repository\org\springframework\org.springframework.orm\3.0.0.BUILD-20090713035521\org.springframework.orm-3.0.0.BUILD-20090713035521.jar;C:\Documents and Settings\MyHome\.m2\repository\org\springframework\org.springframework.test\3.0.0.BUILD-20090713035521\org.springframework.test-3.0.0.BUILD-20090713035521.jar;C:\Documents and Settings\MyHome\.m2\repository\org\springframework\org.springframework.transaction\3.0.0.BUILD-20090713035521\org.springframework.transaction-3.0.0.BUILD-20090713035521.jar;C:\Documents and Settings\MyHome\.m2\repository\org\springframework\org.springframework.web\3.0.0.BUILD-20090713035521\org.springframework.web-3.0.0.BUILD-20090713035521.jar;C:\Documents and Settings\MyHome\.m2\repository\org\springframework\org.springframework.web.servlet\3.0.0.BUILD-20090713035521\org.springframework.web.servlet-3.0.0.BUILD-20090713035521.jar;C:\Documents and Settings\MyHome\.m2\repository\poi\poi\2.5.1-final-20040804\poi-2.5.1-final-20040804.jar;C:\Documents and Settings\MyHome\.m2\repository\postgresql\postgresql\8.2-507.jdbc3\postgresql-8.2-507.jdbc3.jar;C:\Documents and Settings\MyHome\.m2\repository\org\slf4j\slf4j-api\1.5.6\slf4j-api-1.5.6.jar;C:\Documents and Settings\MyHome\.m2\repository\taglibs\standard\1.1.2\standard-1.1.2.jar;C:\springsource\sts-2.1.0.M2\plugins\org.aspectj.runtime_1.6.5.20090407153400\aspectjrt.jar;/C:/springsource/sts-2.1.0.M2/configuration/org.eclipse.osgi/bundles/401/1/.cp/;/C:/springsource/sts-2.1.0.M2/configuration/org.eclipse.osgi/bundles/399/1/.cp/;/C:/springsource/sts-2.1.0.M2/configuration/org.eclipse.osgi/bundles/400/1/.cp/;weaving/spring-agent.jar, user.name=Whiteship, hibernate.bytecode.use_reflection_optimizer=false, hibernate.show_sql=true, java.vm.specification.version=1.0, sun.arch.data.model=32, java.home=C:\Program Files\Java\jre6, hibernate.dialect=org.hibernate.dialect.HSQLDialect, java.specification.vendor=Sun Microsystems Inc., user.language=ko, awt.toolkit=sun.awt.windows.WToolkit, java.vm.info=mixed mode, sharing, java.version=1.6.0_13, java.ext.dirs=C:\Program Files\Java\jre6\lib\ext;C:\WINDOWS\Sun\Java\lib\ext, sun.boot.class.path=C:\Program Files\Java\jre6\lib\resources.jar;C:\Program Files\Java\jre6\lib\rt.jar;C:\Program Files\Java\jre6\lib\sunrsasign.jar;C:\Program Files\Java\jre6\lib\jsse.jar;C:\Program Files\Java\jre6\lib\jce.jar;C:\Program Files\Java\jre6\lib\charsets.jar;C:\Program Files\Java\jre6\classes, java.vendor=Sun Microsystems Inc., file.separator=\, java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi, hibernate.hbm2ddl.auto=update, hibernate.connection.provider_class=org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider, sun.cpu.endian=little, sun.io.unicode.encoding=UnicodeLittle, sun.desktop=windows, sun.cpu.isalist=pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86}
DEBUG - AbstractEntityPersister.logStaticSQL(2743) | Static SQL for entity: koma.domain.Emp
DEBUG - AbstractEntityPersister.logStaticSQL(2743) | Static SQL for entity: koma.domain.Emp
DEBUG - AbstractEntityPersister.logStaticSQL(2748) | Version select: select id from Emp where id =?
DEBUG - AbstractEntityPersister.logStaticSQL(2748) | Version select: select id from Emp where id =?
DEBUG - AbstractEntityPersister.logStaticSQL(2751) | Snapshot select: select emp_.id, emp_.dept_id as dept3_3_, emp_.name as name3_ from Emp emp_ where emp_.id=?
DEBUG - AbstractEntityPersister.logStaticSQL(2751) | Snapshot select: select emp_.id, emp_.dept_id as dept3_3_, emp_.name as name3_ from Emp emp_ where emp_.id=?
DEBUG - AbstractEntityPersister.logStaticSQL(2754) | Insert 0: insert into Emp (dept_id, name, id) values (?, ?, ?)
DEBUG - AbstractEntityPersister.logStaticSQL(2754) | Insert 0: insert into Emp (dept_id, name, id) values (?, ?, ?)
DEBUG - AbstractEntityPersister.logStaticSQL(2755) | Update 0: update Emp set dept_id=?, name=? where id=?
DEBUG - AbstractEntityPersister.logStaticSQL(2755) | Update 0: update Emp set dept_id=?, name=? where id=?
DEBUG - AbstractEntityPersister.logStaticSQL(2756) | Delete 0: delete from Emp where id=?
DEBUG - AbstractEntityPersister.logStaticSQL(2756) | Delete 0: delete from Emp where id=?
DEBUG - AbstractEntityPersister.logStaticSQL(2760) | Identity insert: insert into Emp (id, dept_id, name) values (null, ?, ?)
DEBUG - AbstractEntityPersister.logStaticSQL(2760) | Identity insert: insert into Emp (id, dept_id, name) values (null, ?, ?)
DEBUG - AbstractEntityPersister.logStaticSQL(2743) | Static SQL for entity: koma.domain.Familly
DEBUG - AbstractEntityPersister.logStaticSQL(2743) | Static SQL for entity: koma.domain.Familly
DEBUG - AbstractEntityPersister.logStaticSQL(2748) | Version select: select version from Familly where id =?
DEBUG - AbstractEntityPersister.logStaticSQL(2748) | Version select: select version from Familly where id =?
DEBUG - AbstractEntityPersister.logStaticSQL(2751) | Snapshot select: select familly_.id, familly_.age as age2_, familly_.famillyCate as famillyC3_2_, familly_.name as name2_, familly_.version as version2_ from Familly familly_ where familly_.id=?
DEBUG - AbstractEntityPersister.logStaticSQL(2751) | Snapshot select: select familly_.id, familly_.age as age2_, familly_.famillyCate as famillyC3_2_, familly_.name as name2_, familly_.version as version2_ from Familly familly_ where familly_.id=?
DEBUG - AbstractEntityPersister.logStaticSQL(2754) | Insert 0: insert into Familly (age, famillyCate, name, version, id) values (?, ?, ?, ?, ?)
DEBUG - AbstractEntityPersister.logStaticSQL(2754) | Insert 0: insert into Familly (age, famillyCate, name, version, id) values (?, ?, ?, ?, ?)
DEBUG - AbstractEntityPersister.logStaticSQL(2755) | Update 0: update Familly set age=?, famillyCate=?, name=?, version=? where id=? and version=?
DEBUG - AbstractEntityPersister.logStaticSQL(2755) | Update 0: update Familly set age=?, famillyCate=?, name=?, version=? where id=? and version=?
DEBUG - AbstractEntityPersister.logStaticSQL(2756) | Delete 0: delete from Familly where id=? and version=?
DEBUG - AbstractEntityPersister.logStaticSQL(2756) | Delete 0: delete from Familly where id=? and version=?
DEBUG - AbstractEntityPersister.logStaticSQL(2760) | Identity insert: insert into Familly (id, age, famillyCate, name, version) values (null, ?, ?, ?, ?)
DEBUG - AbstractEntityPersister.logStaticSQL(2760) | Identity insert: insert into Familly (id, age, famillyCate, name, version) values (null, ?, ?, ?, ?)
DEBUG - AbstractEntityPersister.logStaticSQL(2743) | Static SQL for entity: koma.domain.Dept
DEBUG - AbstractEntityPersister.logStaticSQL(2743) | Static SQL for entity: koma.domain.Dept
DEBUG - AbstractEntityPersister.logStaticSQL(2748) | Version select: select id from Dept where id =?
DEBUG - AbstractEntityPersister.logStaticSQL(2748) | Version select: select id from Dept where id =?
DEBUG - AbstractEntityPersister.logStaticSQL(2751) | Snapshot select: select dept_.id, dept_.name as name4_ from Dept dept_ where dept_.id=?
DEBUG - AbstractEntityPersister.logStaticSQL(2751) | Snapshot select: select dept_.id, dept_.name as name4_ from Dept dept_ where dept_.id=?
DEBUG - AbstractEntityPersister.logStaticSQL(2754) | Insert 0: insert into Dept (name, id) values (?, ?)
DEBUG - AbstractEntityPersister.logStaticSQL(2754) | Insert 0: insert into Dept (name, id) values (?, ?)
DEBUG - AbstractEntityPersister.logStaticSQL(2755) | Update 0: update Dept set name=? where id=?
DEBUG - AbstractEntityPersister.logStaticSQL(2755) | Update 0: update Dept set name=? where id=?
DEBUG - AbstractEntityPersister.logStaticSQL(2756) | Delete 0: delete from Dept where id=?
DEBUG - AbstractEntityPersister.logStaticSQL(2756) | Delete 0: delete from Dept where id=?
DEBUG - AbstractEntityPersister.logStaticSQL(2760) | Identity insert: insert into Dept (id, name) values (null, ?)
DEBUG - AbstractEntityPersister.logStaticSQL(2760) | Identity insert: insert into Dept (id, name) values (null, ?)
DEBUG - AbstractEntityPersister.logStaticSQL(2743) | Static SQL for entity: koma.domain.Role
DEBUG - AbstractEntityPersister.logStaticSQL(2743) | Static SQL for entity: koma.domain.Role
DEBUG - AbstractEntityPersister.logStaticSQL(2748) | Version select: select version from Role where id =?
DEBUG - AbstractEntityPersister.logStaticSQL(2748) | Version select: select version from Role where id =?
DEBUG - AbstractEntityPersister.logStaticSQL(2751) | Snapshot select: select role_.id, role_.descr as descr1_, role_.name as name1_, role_.version as version1_ from Role role_ where role_.id=?
DEBUG - AbstractEntityPersister.logStaticSQL(2751) | Snapshot select: select role_.id, role_.descr as descr1_, role_.name as name1_, role_.version as version1_ from Role role_ where role_.id=?
DEBUG - AbstractEntityPersister.logStaticSQL(2754) | Insert 0: insert into Role (descr, name, version, id) values (?, ?, ?, ?)
DEBUG - AbstractEntityPersister.logStaticSQL(2754) | Insert 0: insert into Role (descr, name, version, id) values (?, ?, ?, ?)
DEBUG - AbstractEntityPersister.logStaticSQL(2755) | Update 0: update Role set descr=?, name=?, version=? where id=? and version=?
DEBUG - AbstractEntityPersister.logStaticSQL(2755) | Update 0: update Role set descr=?, name=?, version=? where id=? and version=?
DEBUG - AbstractEntityPersister.logStaticSQL(2756) | Delete 0: delete from Role where id=? and version=?
DEBUG - AbstractEntityPersister.logStaticSQL(2756) | Delete 0: delete from Role where id=? and version=?
DEBUG - AbstractEntityPersister.logStaticSQL(2760) | Identity insert: insert into Role (id, descr, name, version) values (null, ?, ?, ?)
DEBUG - AbstractEntityPersister.logStaticSQL(2760) | Identity insert: insert into Role (id, descr, name, version) values (null, ?, ?, ?)
INFO - DefaultSingletonBeanRegistry.destroySingletons(421) | Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@11e0c13: defining beans [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,org.springframework.context.weaving.AspectJWeavingEnabler#0,org.springframework.context.config.internalBeanConfigurerAspect,loadTimeWeaver,codeController,codeDaoImpl,codeServiceImpl,codeRef,codeValidator,deptController,deptDaoImpl,deptServiceImpl,deptRef,deptValidator,empDaoImpl,empRef,ajaxController,mainController,roleController,roleDaoImpl,roleServiceImpl,roleRef,roleValidator,famillyValidator,userRef,userValidator,userController,userDaoImpl,userServiceImpl,komaBindingInitializer,org.springframework.transaction.config.internalTransactionAspect,transactionManager,org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0,dataSource,sessionFactory]; root of factory hierarchy
INFO - DefaultSingletonBeanRegistry.destroySingletons(421) | Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@11e0c13: defining beans [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,org.springframework.context.weaving.AspectJWeavingEnabler#0,org.springframework.context.config.internalBeanConfigurerAspect,loadTimeWeaver,codeController,codeDaoImpl,codeServiceImpl,codeRef,codeValidator,deptController,deptDaoImpl,deptServiceImpl,deptRef,deptValidator,empDaoImpl,empRef,ajaxController,mainController,roleController,roleDaoImpl,roleServiceImpl,roleRef,roleValidator,famillyValidator,userRef,userValidator,userController,userDaoImpl,userServiceImpl,komaBindingInitializer,org.springframework.transaction.config.internalTransactionAspect,transactionManager,org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0,dataSource,sessionFactory]; root of factory hierarchy
INFO - DefaultContextLoadTimeWeaver.destroy(117) | Removing all registered transformers for class loader: sun.misc.Launcher$AppClassLoader
INFO - DefaultContextLoadTimeWeaver.destroy(117) | Removing all registered transformers for class loader: sun.misc.Launcher$AppClassLoader
ERROR - TestContextManager.prepareTestInstance(303) | Caught exception while allowing TestExecutionListener [org.springframework.test.context.support.DependencyInjectionTestExecutionListener@10812ac] to prepare test instance [sandbox.BeansTest@101ea1e]
java.lang.IllegalStateException: Failed to load ApplicationContext
at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:255)
at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:109)
at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:75)
at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:300)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:219)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:287)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:289)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:239)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:44)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:179)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:45)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'codeController': Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'codeServiceImpl': Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'codeDaoImpl': Autowiring of fields failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: org.hibernate.SessionFactory net.openseed.osaf.dao.hibernate.GenericDaoImpl.sessionFactory; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [testApplicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.InstantiationException: could not instantiate test objectkoma.domain.User
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:147)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:377)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1350)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:500)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:436)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:407)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:276)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:273)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:175)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:495)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:716)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:383)
at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:84)
at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:1)
at org.springframework.test.context.TestContext.loadApplicationContext(TestContext.java:226)
at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:251)
... 24 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'codeServiceImpl': Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'codeDaoImpl': Autowiring of fields failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: org.hibernate.SessionFactory net.openseed.osaf.dao.hibernate.GenericDaoImpl.sessionFactory; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [testApplicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.InstantiationException: could not instantiate test objectkoma.domain.User
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:147)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:377)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1350)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:500)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:436)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:407)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:276)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:273)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:175)
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:874)
at net.openseed.osaf.controller.GenericController.afterPropertiesSet(GenericController.java:162)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:297)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:250)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:144)
... 41 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'codeDaoImpl': Autowiring of fields failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: org.hibernate.SessionFactory net.openseed.osaf.dao.hibernate.GenericDaoImpl.sessionFactory; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [testApplicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.InstantiationException: could not instantiate test objectkoma.domain.User
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessAfterInstantiation(AutowiredAnnotationBeanPostProcessor.java:259)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:981)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:499)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:436)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:407)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:276)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:273)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:175)
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:874)
at net.openseed.osaf.service.impl.GenericServiceImpl.afterPropertiesSet(GenericServiceImpl.java:48)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:297)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:250)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:144)
... 60 more
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: org.hibernate.SessionFactory net.openseed.osaf.dao.hibernate.GenericDaoImpl.sessionFactory; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [testApplicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.InstantiationException: could not instantiate test objectkoma.domain.User
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:477)
at org.springframework.beans.factory.annotation.InjectionMetadata.injectFields(InjectionMetadata.java:105)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessAfterInstantiation(AutowiredAnnotationBeanPostProcessor.java:256)
... 78 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [testApplicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.InstantiationException: could not instantiate test objectkoma.domain.User
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1357)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:500)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:436)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:407)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:276)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:273)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:175)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:746)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:687)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:448)
... 80 more
Caused by: org.hibernate.InstantiationException: could not instantiate test objectkoma.domain.User
at org.hibernate.engine.UnsavedValueFactory.instantiate(UnsavedValueFactory.java:25)
at org.hibernate.engine.UnsavedValueFactory.getUnsavedIdentifierValue(UnsavedValueFactory.java:44)
at org.hibernate.tuple.PropertyFactory.buildIdentifierProperty(PropertyFactory.java:44)
at org.hibernate.tuple.entity.EntityMetamodel.<init>(EntityMetamodel.java:124)
at org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:434)
at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:109)
at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:226)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1300)
at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:859)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:806)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:724)
at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1388)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1354)
... 91 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.hibernate.engine.UnsavedValueFactory.instantiate(UnsavedValueFactory.java:22)
... 105 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'koma.domain.User': Autowiring of fields failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: koma.base.user.UserDao koma.domain.User.userDao; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userDaoImpl': Autowiring of fields failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: org.hibernate.SessionFactory net.openseed.osaf.dao.hibernate.GenericDaoImpl.sessionFactory; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'sessionFactory': FactoryBean which is currently in creation returned null from getObject
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessAfterInstantiation(AutowiredAnnotationBeanPostProcessor.java:259)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:981)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireBeanProperties(AbstractAutowireCapableBeanFactory.java:357)
at org.springframework.beans.factory.wiring.BeanConfigurerSupport.configureBean(BeanConfigurerSupport.java:140)
at org.springframework.beans.factory.aspectj.AnnotationBeanConfigurerAspect.configureBean(AnnotationBeanConfigurerAspect.aj:59)
at org.springframework.beans.factory.aspectj.AbstractDependencyInjectionAspect.ajc$afterReturning$org_springframework_beans_factory_aspectj_AbstractDependencyInjectionAspect$2$1ea6722c(AbstractDependencyInjectionAspect.aj:89)
at koma.domain.User.<init>(User.java:97)
... 110 more
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: koma.base.user.UserDao koma.domain.User.userDao; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userDaoImpl': Autowiring of fields failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: org.hibernate.SessionFactory net.openseed.osaf.dao.hibernate.GenericDaoImpl.sessionFactory; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'sessionFactory': FactoryBean which is currently in creation returned null from getObject
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:477)
at org.springframework.beans.factory.annotation.InjectionMetadata.injectFields(InjectionMetadata.java:105)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessAfterInstantiation(AutowiredAnnotationBeanPostProcessor.java:256)
... 116 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userDaoImpl': Autowiring of fields failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: org.hibernate.SessionFactory net.openseed.osaf.dao.hibernate.GenericDaoImpl.sessionFactory; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'sessionFactory': FactoryBean which is currently in creation returned null from getObject
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessAfterInstantiation(AutowiredAnnotationBeanPostProcessor.java:259)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:981)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:499)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:436)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:407)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:276)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:273)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:175)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:746)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:687)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:448)
... 118 more
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: org.hibernate.SessionFactory net.openseed.osaf.dao.hibernate.GenericDaoImpl.sessionFactory; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'sessionFactory': FactoryBean which is currently in creation returned null from getObject
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:477)
at org.springframework.beans.factory.annotation.InjectionMetadata.injectFields(InjectionMetadata.java:105)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessAfterInstantiation(AutowiredAnnotationBeanPostProcessor.java:256)
... 130 more
Caused by: org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'sessionFactory': FactoryBean which is currently in creation returned null from getObject
at org.springframework.beans.factory.support.FactoryBeanRegistrySupport$1.run(FactoryBeanRegistrySupport.java:133)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:116)
at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:98)
at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1323)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:175)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:746)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:687)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:448)
... 132 more
ERROR - TestContextManager.prepareTestInstance(303) | Caught exception while allowing TestExecutionListener [org.springframework.test.context.support.DependencyInjectionTestExecutionListener@10812ac] to prepare test instance [sandbox.BeansTest@101ea1e]
java.lang.IllegalStateException: Failed to load ApplicationContext
at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:255)
at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:109)
at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:75)
at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:300)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:219)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:287)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:289)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:239)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:44)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:179)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:45)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'codeController': Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'codeServiceImpl': Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'codeDaoImpl': Autowiring of fields failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: org.hibernate.SessionFactory net.openseed.osaf.dao.hibernate.GenericDaoImpl.sessionFactory; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [testApplicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.InstantiationException: could not instantiate test objectkoma.domain.User
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:147)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:377)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1350)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:500)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:436)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:407)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:276)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:273)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:175)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:495)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:716)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:383)
at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:84)
at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:1)
at org.springframework.test.context.TestContext.loadApplicationContext(TestContext.java:226)
at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:251)
... 24 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'codeServiceImpl': Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'codeDaoImpl': Autowiring of fields failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: org.hibernate.SessionFactory net.openseed.osaf.dao.hibernate.GenericDaoImpl.sessionFactory; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [testApplicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.InstantiationException: could not instantiate test objectkoma.domain.User
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:147)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:377)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1350)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:500)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:436)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:407)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:276)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:273)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:175)
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:874)
at net.openseed.osaf.controller.GenericController.afterPropertiesSet(GenericController.java:162)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:297)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:250)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:144)
... 41 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'codeDaoImpl': Autowiring of fields failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: org.hibernate.SessionFactory net.openseed.osaf.dao.hibernate.GenericDaoImpl.sessionFactory; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [testApplicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.InstantiationException: could not instantiate test objectkoma.domain.User
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessAfterInstantiation(AutowiredAnnotationBeanPostProcessor.java:259)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:981)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:499)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:436)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:407)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:276)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:273)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:175)
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:874)
at net.openseed.osaf.service.impl.GenericServiceImpl.afterPropertiesSet(GenericServiceImpl.java:48)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:297)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:250)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:144)
... 60 more
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: org.hibernate.SessionFactory net.openseed.osaf.dao.hibernate.GenericDaoImpl.sessionFactory; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [testApplicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.InstantiationException: could not instantiate test objectkoma.domain.User
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:477)
at org.springframework.beans.factory.annotation.InjectionMetadata.injectFields(InjectionMetadata.java:105)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessAfterInstantiation(AutowiredAnnotationBeanPostProcessor.java:256)
... 78 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [testApplicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.InstantiationException: could not instantiate test objectkoma.domain.User
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1357)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:500)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:436)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:407)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:276)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:273)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:175)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:746)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:687)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:448)
... 80 more
Caused by: org.hibernate.InstantiationException: could not instantiate test objectkoma.domain.User
at org.hibernate.engine.UnsavedValueFactory.instantiate(UnsavedValueFactory.java:25)
at org.hibernate.engine.UnsavedValueFactory.getUnsavedIdentifierValue(UnsavedValueFactory.java:44)
at org.hibernate.tuple.PropertyFactory.buildIdentifierProperty(PropertyFactory.java:44)
at org.hibernate.tuple.entity.EntityMetamodel.<init>(EntityMetamodel.java:124)
at org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:434)
at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:109)
at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:226)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1300)
at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:859)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:806)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:724)
at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1388)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1354)
... 91 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.hibernate.engine.UnsavedValueFactory.instantiate(UnsavedValueFactory.java:22)
... 105 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'koma.domain.User': Autowiring of fields failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: koma.base.user.UserDao koma.domain.User.userDao; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userDaoImpl': Autowiring of fields failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: org.hibernate.SessionFactory net.openseed.osaf.dao.hibernate.GenericDaoImpl.sessionFactory; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'sessionFactory': FactoryBean which is currently in creation returned null from getObject
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessAfterInstantiation(AutowiredAnnotationBeanPostProcessor.java:259)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:981)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireBeanProperties(AbstractAutowireCapableBeanFactory.java:357)
at org.springframework.beans.factory.wiring.BeanConfigurerSupport.configureBean(BeanConfigurerSupport.java:140)
at org.springframework.beans.factory.aspectj.AnnotationBeanConfigurerAspect.configureBean(AnnotationBeanConfigurerAspect.aj:59)
at org.springframework.beans.factory.aspectj.AbstractDependencyInjectionAspect.ajc$afterReturning$org_springframework_beans_factory_aspectj_AbstractDependencyInjectionAspect$2$1ea6722c(AbstractDependencyInjectionAspect.aj:89)
at koma.domain.User.<init>(User.java:97)
... 110 more
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: koma.base.user.UserDao koma.domain.User.userDao; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userDaoImpl': Autowiring of fields failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: org.hibernate.SessionFactory net.openseed.osaf.dao.hibernate.GenericDaoImpl.sessionFactory; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'sessionFactory': FactoryBean which is currently in creation returned null from getObject
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:477)
at org.springframework.beans.factory.annotation.InjectionMetadata.injectFields(InjectionMetadata.java:105)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessAfterInstantiation(AutowiredAnnotationBeanPostProcessor.java:256)
... 116 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userDaoImpl': Autowiring of fields failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: org.hibernate.SessionFactory net.openseed.osaf.dao.hibernate.GenericDaoImpl.sessionFactory; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'sessionFactory': FactoryBean which is currently in creation returned null from getObject
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessAfterInstantiation(AutowiredAnnotationBeanPostProcessor.java:259)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:981)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:499)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:436)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:407)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:276)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:273)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:175)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:746)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:687)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:448)
... 118 more
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: org.hibernate.SessionFactory net.openseed.osaf.dao.hibernate.GenericDaoImpl.sessionFactory; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'sessionFactory': FactoryBean which is currently in creation returned null from getObject
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:477)
at org.springframework.beans.factory.annotation.InjectionMetadata.injectFields(InjectionMetadata.java:105)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessAfterInstantiation(AutowiredAnnotationBeanPostProcessor.java:256)
... 130 more
Caused by: org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'sessionFactory': FactoryBean which is currently in creation returned null from getObject
at org.springframework.beans.factory.support.FactoryBeanRegistrySupport$1.run(FactoryBeanRegistrySupport.java:133)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:116)
at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:98)
at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1323)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:175)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:746)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:687)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:448)
... 132 more
_M#]
또하나는 위버와의 궁합이 안맞을지 모른다는 생각인데...
3.0 M 버전들은 배포할 때 with-doc 만 배포하면서 그 안에 weaver들을 포함시켜주지 않았습니다. with-dependencies를 보면 dist/weaver 폴더에 들어있는데 말이죠.
최신 버전에서 위버와 뭔가 궁합이 안맞을 수 있겠다는 생각도 해봤었지만, 최신 위버를 찾을 수가 없어서 뒤로 재쳐두고 있었는데..
문제 실마리가 안 보이네요. @_@