도메인 객체에 @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 FilesJavajre6bin;.;C:WINDOWSSunJavabin;C:WINDOWSsystem32;C:WINDOWS;C:/Program Files/Java/jre6/bin/client;C:/Program Files/Java/jre6/bin;C:oracleproduct10.2.0db_1bin;C:WINDOWSsystem32;C:WINDOWS;C:WINDOWSSystem32Wbem;C:Program FilesQuickTimeQTSystem;c:Program FilesMicrosoft SQL Server90Toolsbinn;C:Program FilesVanDyke SoftwareSecureCRT;C:Program FilesSecureCRT;C:Program FilesQuickTimeQTSystem;c:Program FilesMicrosoft SQL Server90Toolsbinn;C:Program FilesTortoiseSVNbin;C:Program FilesSubversionbin;C:Program FilesESTsoftALZip;C:Program FilesQuickTimeQTSystem;C:Program FilesJavajdk1.6.0_10bin;C:appsapache-maven-2.0.10bin;”C:Program FilesPostgreSQL8.3bin”;C:appsapache-ant-1.7.1bin;C:Program FilesGitbin;C:Program FilesESTsoftALZip;C:appsspring-roo-1.0.0.M1bin, 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 SettingsMyHome, user.timezone=Asia/Seoul, java.awt.printerjob=sun.awt.windows.WPrinterJob, file.encoding=MS949, java.specification.version=1.6, java.class.path=C:springsourceworkspacekomatargettest-classes;C:springsourceworkspacekomatargetclasses;C:Documents and SettingsMyHome.m2repositoryjavaxpersistencecom.springsource.javax.persistence1.0.0com.springsource.javax.persistence-1.0.0.jar;C:Documents and SettingsMyHome.m2repositoryjavaxtransactioncom.springsource.javax.transaction1.1.0com.springsource.javax.transaction-1.1.0.jar;C:Documents and SettingsMyHome.m2repositoryjavaxservletjsp-api2.0jsp-api-2.0.jar;C:Documents and SettingsMyHome.m2repositoryjavaxservletjstl1.1.0jstl-1.1.0.jar;C:Documents and SettingsMyHome.m2repositoryjavaxservletservlet-api2.5servlet-api-2.5.jar;C:Documents and SettingsMyHome.m2repositoryc3p0c3p0.9.1.2c3p0-0.9.1.2.jar;C:Documents and SettingsMyHome.m2repositoryorgantlrcom.springsource.antlr2.7.6com.springsource.antlr-2.7.6.jar;C:Documents and SettingsMyHome.m2repositoryeduoswegocsconcurrentcom.springsource.edu.oswego.cs.dl.util.concurrent1.3.4com.springsource.edu.oswego.cs.dl.util.concurrent-1.3.4.jar;C:Documents and SettingsMyHome.m2repositoryorgjbossjavassistcom.springsource.javassist3.3.0.gacom.springsource.javassist-3.3.0.ga.jar;C:Documents and SettingsMyHome.m2repositorynetsourceforgecglibcom.springsource.net.sf.cglib2.1.3com.springsource.net.sf.cglib-2.1.3.jar;C:Documents and SettingsMyHome.m2repositoryorgaopalliancecom.springsource.org.aopalliance1.0.0com.springsource.org.aopalliance-1.0.0.jar;C:Documents and SettingsMyHome.m2repositoryorgapachecommonscom.springsource.org.apache.commons.collections3.2.0com.springsource.org.apache.commons.collections-3.2.0.jar;C:Documents and SettingsMyHome.m2repositoryorgapachecommonscom.springsource.org.apache.commons.logging1.1.1com.springsource.org.apache.commons.logging-1.1.1.jar;C:Documents and SettingsMyHome.m2repositoryorgapachelog4jcom.springsource.org.apache.log4j1.2.15com.springsource.org.apache.log4j-1.2.15.jar;C:Documents and SettingsMyHome.m2repositoryorgaspectjcom.springsource.org.aspectj.runtime1.6.3.RELEASEcom.springsource.org.aspectj.runtime-1.6.3.RELEASE.jar;C:Documents and SettingsMyHome.m2repositoryorgaspectjcom.springsource.org.aspectj.tools1.6.3.RELEASEcom.springsource.org.aspectj.tools-1.6.3.RELEASE.jar;C:Documents and SettingsMyHome.m2repositoryorgaspectjcom.springsource.org.aspectj.weaver1.6.3.RELEASEcom.springsource.org.aspectj.weaver-1.6.3.RELEASE.jar;C:Documents and SettingsMyHome.m2repositoryorgcodehausjacksoncom.springsource.org.codehaus.jackson1.0.0com.springsource.org.codehaus.jackson-1.0.0.jar;C:Documents and SettingsMyHome.m2repositoryorgcodehausjacksoncom.springsource.org.codehaus.jackson.mapper1.0.0com.springsource.org.codehaus.jackson.mapper-1.0.0.jar;C:Documents and SettingsMyHome.m2repositoryorgdom4jcom.springsource.org.dom4j1.6.1com.springsource.org.dom4j-1.6.1.jar;C:Documents and SettingsMyHome.m2repositoryorgeasymockcom.springsource.org.easymock2.5.1com.springsource.org.easymock-2.5.1.jar;C:Documents and SettingsMyHome.m2repositoryorghibernatecom.springsource.org.hibernate3.2.6.gacom.springsource.org.hibernate-3.2.6.ga.jar;C:Documents and SettingsMyHome.m2repositoryorghibernatecom.springsource.org.hibernate.annotations3.3.1.gacom.springsource.org.hibernate.annotations-3.3.1.ga.jar;C:Documents and SettingsMyHome.m2repositoryorghibernatecom.springsource.org.hibernate.annotations.common3.3.0.gacom.springsource.org.hibernate.annotations.common-3.3.0.ga.jar;C:Documents and SettingsMyHome.m2repositoryorghibernatecom.springsource.org.hibernate.ejb3.3.2.GAcom.springsource.org.hibernate.ejb-3.3.2.GA.jar;C:Documents and SettingsMyHome.m2repositoryorghsqldbcom.springsource.org.hsqldb1.8.0.9com.springsource.org.hsqldb-1.8.0.9.jar;C:Documents and SettingsMyHome.m2repositoryorgjbossutilcom.springsource.org.jboss.util2.0.4.GAcom.springsource.org.jboss.util-2.0.4.GA.jar;C:Documents and SettingsMyHome.m2repositoryorgmozillajavascriptcom.springsource.org.mozilla.javascript1.7.0.R2com.springsource.org.mozilla.javascript-1.7.0.R2.jar;C:Documents and SettingsMyHome.m2repositoryorgobjectwebasmcom.springsource.org.objectweb.asm2.2.3com.springsource.org.objectweb.asm-2.2.3.jar;C:Documents and SettingsMyHome.m2repositoryorgobjectwebasmcom.springsource.org.objectweb.asm.attrs1.5.3com.springsource.org.objectweb.asm.attrs-1.5.3.jar;C:Documents and SettingsMyHome.m2repositoryorgobjectwebasmcom.springsource.org.objectweb.asm.commons2.2.3com.springsource.org.objectweb.asm.commons-2.2.3.jar;C:Documents and SettingsMyHome.m2repositoryorgtuckeycom.springsource.org.tuckey.web.filters.urlrewrite3.1.0com.springsource.org.tuckey.web.filters.urlrewrite-3.1.0.jar;C:Documents and SettingsMyHome.m2repositoryorgslf4jcom.springsource.slf4j.api1.5.6com.springsource.slf4j.api-1.5.6.jar;C:Documents and SettingsMyHome.m2repositoryorgslf4jcom.springsource.slf4j.log4j1.5.6com.springsource.slf4j.log4j-1.5.6.jar;C:Documents and SettingsMyHome.m2repositorycommons-collectionscommons-collections3.2.1commons-collections-3.2.1.jar;C:Documents and SettingsMyHome.m2repositorycommons-fileuploadcommons-fileupload1.2commons-fileupload-1.2.jar;C:Documents and SettingsMyHome.m2repositoryorgdbunitdbunit2.4.4dbunit-2.4.4.jar;C:Documents and SettingsMyHome.m2repositorydwrdwr2.0.5dwr-2.0.5.jar;C:Documents and SettingsMyHome.m2repositoryhg-1hg-11.0hg-1-1.0.jar;C:Documents and SettingsMyHome.m2repositoryjunitjunit4.6junit-4.6.jar;C:Documents and SettingsMyHome.m2repositoryorgmvelmvel1.3.2-java1.6mvel-1.3.2-java1.6.jar;C:Documents and SettingsMyHome.m2repositorymysqlmysql5.1.6mysql-5.1.6.jar;C:Documents and SettingsMyHome.m2repositoryorgspringframeworkorg.springframework.aop3.0.0.BUILD-20090713035521org.springframework.aop-3.0.0.BUILD-20090713035521.jar;C:Documents and SettingsMyHome.m2repositoryorgspringframeworkorg.springframework.asm3.0.0.BUILD-20090713035521org.springframework.asm-3.0.0.BUILD-20090713035521.jar;C:Documents and SettingsMyHome.m2repositoryorgspringframeworkorg.springframework.aspects3.0.0.BUILD-20090713035521org.springframework.aspects-3.0.0.BUILD-20090713035521.jar;C:Documents and SettingsMyHome.m2repositoryorgspringframeworkorg.springframework.beans3.0.0.BUILD-20090713035521org.springframework.beans-3.0.0.BUILD-20090713035521.jar;C:Documents and SettingsMyHome.m2repositoryorgspringframeworkorg.springframework.context3.0.0.BUILD-20090713035521org.springframework.context-3.0.0.BUILD-20090713035521.jar;C:Documents and SettingsMyHome.m2repositoryorgspringframeworkorg.springframework.core3.0.0.BUILD-20090713035521org.springframework.core-3.0.0.BUILD-20090713035521.jar;C:Documents and SettingsMyHome.m2repositoryorgspringframeworkorg.springframework.expression3.0.0.BUILD-20090713035521org.springframework.expression-3.0.0.BUILD-20090713035521.jar;C:Documents and SettingsMyHome.m2repositoryorgspringframeworkorg.springframework.jdbc3.0.0.BUILD-20090713035521org.springframework.jdbc-3.0.0.BUILD-20090713035521.jar;C:Documents and SettingsMyHome.m2repositoryorgspringframeworkorg.springframework.orm3.0.0.BUILD-20090713035521org.springframework.orm-3.0.0.BUILD-20090713035521.jar;C:Documents and SettingsMyHome.m2repositoryorgspringframeworkorg.springframework.test3.0.0.BUILD-20090713035521org.springframework.test-3.0.0.BUILD-20090713035521.jar;C:Documents and SettingsMyHome.m2repositoryorgspringframeworkorg.springframework.transaction3.0.0.BUILD-20090713035521org.springframework.transaction-3.0.0.BUILD-20090713035521.jar;C:Documents and SettingsMyHome.m2repositoryorgspringframeworkorg.springframework.web3.0.0.BUILD-20090713035521org.springframework.web-3.0.0.BUILD-20090713035521.jar;C:Documents and SettingsMyHome.m2repositoryorgspringframeworkorg.springframework.web.servlet3.0.0.BUILD-20090713035521org.springframework.web.servlet-3.0.0.BUILD-20090713035521.jar;C:Documents and SettingsMyHome.m2repositorypoipoi2.5.1-final-20040804poi-2.5.1-final-20040804.jar;C:Documents and SettingsMyHome.m2repositorypostgresqlpostgresql8.2-507.jdbc3postgresql-8.2-507.jdbc3.jar;C:Documents and SettingsMyHome.m2repositoryorgslf4jslf4j-api1.5.6slf4j-api-1.5.6.jar;C:Documents and SettingsMyHome.m2repositorytaglibsstandard1.1.2standard-1.1.2.jar;C:springsourcests-2.1.0.M2pluginsorg.aspectj.runtime_1.6.5.20090407153400aspectjrt.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 FilesJavajre6, 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 FilesJavajre6libext;C:WINDOWSSunJavalibext, sun.boot.class.path=C:Program FilesJavajre6libresources.jar;C:Program FilesJavajre6librt.jar;C:Program FilesJavajre6libsunrsasign.jar;C:Program FilesJavajre6libjsse.jar;C:Program FilesJavajre6libjce.jar;C:Program FilesJavajre6libcharsets.jar;C:Program FilesJavajre6classes, 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 FilesJavajre6bin, 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:springsourceworkspacekoma, 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 FilesJavajre6libendorsed, os.arch=x86, java.io.tmpdir=C:DOCUME~1MyHomeLOCALS~1Temp, line.separator=
, java.vm.specification.vendor=Sun Microsystems Inc., user.variant=, os.name=Windows XP, sun.jnu.encoding=MS949, java.library.path=C:Program FilesJavajre6bin;.;C:WINDOWSSunJavabin;C:WINDOWSsystem32;C:WINDOWS;C:/Program Files/Java/jre6/bin/client;C:/Program Files/Java/jre6/bin;C:oracleproduct10.2.0db_1bin;C:WINDOWSsystem32;C:WINDOWS;C:WINDOWSSystem32Wbem;C:Program FilesQuickTimeQTSystem;c:Program FilesMicrosoft SQL Server90Toolsbinn;C:Program FilesVanDyke SoftwareSecureCRT;C:Program FilesSecureCRT;C:Program FilesQuickTimeQTSystem;c:Program FilesMicrosoft SQL Server90Toolsbinn;C:Program FilesTortoiseSVNbin;C:Program FilesSubversionbin;C:Program FilesESTsoftALZip;C:Program FilesQuickTimeQTSystem;C:Program FilesJavajdk1.6.0_10bin;C:appsapache-maven-2.0.10bin;”C:Program FilesPostgreSQL8.3bin”;C:appsapache-ant-1.7.1bin;C:Program FilesGitbin;C:Program FilesESTsoftALZip;C:appsspring-roo-1.0.0.M1bin, 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 SettingsMyHome, user.timezone=Asia/Seoul, java.awt.printerjob=sun.awt.windows.WPrinterJob, file.encoding=MS949, java.specification.version=1.6, java.class.path=C:springsourceworkspacekomatargettest-classes;C:springsourceworkspacekomatargetclasses;C:Documents and SettingsMyHome.m2repositoryjavaxpersistencecom.springsource.javax.persistence1.0.0com.springsource.javax.persistence-1.0.0.jar;C:Documents and SettingsMyHome.m2repositoryjavaxtransactioncom.springsource.javax.transaction1.1.0com.springsource.javax.transaction-1.1.0.jar;C:Documents and SettingsMyHome.m2repositoryjavaxservletjsp-api2.0jsp-api-2.0.jar;C:Documents and SettingsMyHome.m2repositoryjavaxservletjstl1.1.0jstl-1.1.0.jar;C:Documents and SettingsMyHome.m2repositoryjavaxservletservlet-api2.5servlet-api-2.5.jar;C:Documents and SettingsMyHome.m2repositoryc3p0c3p0.9.1.2c3p0-0.9.1.2.jar;C:Documents and SettingsMyHome.m2repositoryorgantlrcom.springsource.antlr2.7.6com.springsource.antlr-2.7.6.jar;C:Documents and SettingsMyHome.m2repositoryeduoswegocsconcurrentcom.springsource.edu.oswego.cs.dl.util.concurrent1.3.4com.springsource.edu.oswego.cs.dl.util.concurrent-1.3.4.jar;C:Documents and SettingsMyHome.m2repositoryorgjbossjavassistcom.springsource.javassist3.3.0.gacom.springsource.javassist-3.3.0.ga.jar;C:Documents and SettingsMyHome.m2repositorynetsourceforgecglibcom.springsource.net.sf.cglib2.1.3com.springsource.net.sf.cglib-2.1.3.jar;C:Documents and SettingsMyHome.m2repositoryorgaopalliancecom.springsource.org.aopalliance1.0.0com.springsource.org.aopalliance-1.0.0.jar;C:Documents and SettingsMyHome.m2repositoryorgapachecommonscom.springsource.org.apache.commons.collections3.2.0com.springsource.org.apache.commons.collections-3.2.0.jar;C:Documents and SettingsMyHome.m2repositoryorgapachecommonscom.springsource.org.apache.commons.logging1.1.1com.springsource.org.apache.commons.logging-1.1.1.jar;C:Documents and SettingsMyHome.m2repositoryorgapachelog4jcom.springsource.org.apache.log4j1.2.15com.springsource.org.apache.log4j-1.2.15.jar;C:Documents and SettingsMyHome.m2repositoryorgaspectjcom.springsource.org.aspectj.runtime1.6.3.RELEASEcom.springsource.org.aspectj.runtime-1.6.3.RELEASE.jar;C:Documents and SettingsMyHome.m2repositoryorgaspectjcom.springsource.org.aspectj.tools1.6.3.RELEASEcom.springsource.org.aspectj.tools-1.6.3.RELEASE.jar;C:Documents and SettingsMyHome.m2repositoryorgaspectjcom.springsource.org.aspectj.weaver1.6.3.RELEASEcom.springsource.org.aspectj.weaver-1.6.3.RELEASE.jar;C:Documents and SettingsMyHome.m2repositoryorgcodehausjacksoncom.springsource.org.codehaus.jackson1.0.0com.springsource.org.codehaus.jackson-1.0.0.jar;C:Documents and SettingsMyHome.m2repositoryorgcodehausjacksoncom.springsource.org.codehaus.jackson.mapper1.0.0com.springsource.org.codehaus.jackson.mapper-1.0.0.jar;C:Documents and SettingsMyHome.m2repositoryorgdom4jcom.springsource.org.dom4j1.6.1com.springsource.org.dom4j-1.6.1.jar;C:Documents and SettingsMyHome.m2repositoryorgeasymockcom.springsource.org.easymock2.5.1com.springsource.org.easymock-2.5.1.jar;C:Documents and SettingsMyHome.m2repositoryorghibernatecom.springsource.org.hibernate3.2.6.gacom.springsource.org.hibernate-3.2.6.ga.jar;C:Documents and SettingsMyHome.m2repositoryorghibernatecom.springsource.org.hibernate.annotations3.3.1.gacom.springsource.org.hibernate.annotations-3.3.1.ga.jar;C:Documents and SettingsMyHome.m2repositoryorghibernatecom.springsource.org.hibernate.annotations.common3.3.0.gacom.springsource.org.hibernate.annotations.common-3.3.0.ga.jar;C:Documents and SettingsMyHome.m2repositoryorghibernatecom.springsource.org.hibernate.ejb3.3.2.GAcom.springsource.org.hibernate.ejb-3.3.2.GA.jar;C:Documents and SettingsMyHome.m2repositoryorghsqldbcom.springsource.org.hsqldb1.8.0.9com.springsource.org.hsqldb-1.8.0.9.jar;C:Documents and SettingsMyHome.m2repositoryorgjbossutilcom.springsource.org.jboss.util2.0.4.GAcom.springsource.org.jboss.util-2.0.4.GA.jar;C:Documents and SettingsMyHome.m2repositoryorgmozillajavascriptcom.springsource.org.mozilla.javascript1.7.0.R2com.springsource.org.mozilla.javascript-1.7.0.R2.jar;C:Documents and SettingsMyHome.m2repositoryorgobjectwebasmcom.springsource.org.objectweb.asm2.2.3com.springsource.org.objectweb.asm-2.2.3.jar;C:Documents and SettingsMyHome.m2repositoryorgobjectwebasmcom.springsource.org.objectweb.asm.attrs1.5.3com.springsource.org.objectweb.asm.attrs-1.5.3.jar;C:Documents and SettingsMyHome.m2repositoryorgobjectwebasmcom.springsource.org.objectweb.asm.commons2.2.3com.springsource.org.objectweb.asm.commons-2.2.3.jar;C:Documents and SettingsMyHome.m2repositoryorgtuckeycom.springsource.org.tuckey.web.filters.urlrewrite3.1.0com.springsource.org.tuckey.web.filters.urlrewrite-3.1.0.jar;C:Documents and SettingsMyHome.m2repositoryorgslf4jcom.springsource.slf4j.api1.5.6com.springsource.slf4j.api-1.5.6.jar;C:Documents and SettingsMyHome.m2repositoryorgslf4jcom.springsource.slf4j.log4j1.5.6com.springsource.slf4j.log4j-1.5.6.jar;C:Documents and SettingsMyHome.m2repositorycommons-collectionscommons-collections3.2.1commons-collections-3.2.1.jar;C:Documents and SettingsMyHome.m2repositorycommons-fileuploadcommons-fileupload1.2commons-fileupload-1.2.jar;C:Documents and SettingsMyHome.m2repositoryorgdbunitdbunit2.4.4dbunit-2.4.4.jar;C:Documents and SettingsMyHome.m2repositorydwrdwr2.0.5dwr-2.0.5.jar;C:Documents and SettingsMyHome.m2repositoryhg-1hg-11.0hg-1-1.0.jar;C:Documents and SettingsMyHome.m2repositoryjunitjunit4.6junit-4.6.jar;C:Documents and SettingsMyHome.m2repositoryorgmvelmvel1.3.2-java1.6mvel-1.3.2-java1.6.jar;C:Documents and SettingsMyHome.m2repositorymysqlmysql5.1.6mysql-5.1.6.jar;C:Documents and SettingsMyHome.m2repositoryorgspringframeworkorg.springframework.aop3.0.0.BUILD-20090713035521org.springframework.aop-3.0.0.BUILD-20090713035521.jar;C:Documents and SettingsMyHome.m2repositoryorgspringframeworkorg.springframework.asm3.0.0.BUILD-20090713035521org.springframework.asm-3.0.0.BUILD-20090713035521.jar;C:Documents and SettingsMyHome.m2repositoryorgspringframeworkorg.springframework.aspects3.0.0.BUILD-20090713035521org.springframework.aspects-3.0.0.BUILD-20090713035521.jar;C:Documents and SettingsMyHome.m2repositoryorgspringframeworkorg.springframework.beans3.0.0.BUILD-20090713035521org.springframework.beans-3.0.0.BUILD-20090713035521.jar;C:Documents and SettingsMyHome.m2repositoryorgspringframeworkorg.springframework.context3.0.0.BUILD-20090713035521org.springframework.context-3.0.0.BUILD-20090713035521.jar;C:Documents and SettingsMyHome.m2repositoryorgspringframeworkorg.springframework.core3.0.0.BUILD-20090713035521org.springframework.core-3.0.0.BUILD-20090713035521.jar;C:Documents and SettingsMyHome.m2repositoryorgspringframeworkorg.springframework.expression3.0.0.BUILD-20090713035521org.springframework.expression-3.0.0.BUILD-20090713035521.jar;C:Documents and SettingsMyHome.m2repositoryorgspringframeworkorg.springframework.jdbc3.0.0.BUILD-20090713035521org.springframework.jdbc-3.0.0.BUILD-20090713035521.jar;C:Documents and SettingsMyHome.m2repositoryorgspringframeworkorg.springframework.orm3.0.0.BUILD-20090713035521org.springframework.orm-3.0.0.BUILD-20090713035521.jar;C:Documents and SettingsMyHome.m2repositoryorgspringframeworkorg.springframework.test3.0.0.BUILD-20090713035521org.springframework.test-3.0.0.BUILD-20090713035521.jar;C:Documents and SettingsMyHome.m2repositoryorgspringframeworkorg.springframework.transaction3.0.0.BUILD-20090713035521org.springframework.transaction-3.0.0.BUILD-20090713035521.jar;C:Documents and SettingsMyHome.m2repositoryorgspringframeworkorg.springframework.web3.0.0.BUILD-20090713035521org.springframework.web-3.0.0.BUILD-20090713035521.jar;C:Documents and SettingsMyHome.m2repositoryorgspringframeworkorg.springframework.web.servlet3.0.0.BUILD-20090713035521org.springframework.web.servlet-3.0.0.BUILD-20090713035521.jar;C:Documents and SettingsMyHome.m2repositorypoipoi2.5.1-final-20040804poi-2.5.1-final-20040804.jar;C:Documents and SettingsMyHome.m2repositorypostgresqlpostgresql8.2-507.jdbc3postgresql-8.2-507.jdbc3.jar;C:Documents and SettingsMyHome.m2repositoryorgslf4jslf4j-api1.5.6slf4j-api-1.5.6.jar;C:Documents and SettingsMyHome.m2repositorytaglibsstandard1.1.2standard-1.1.2.jar;C:springsourcests-2.1.0.M2pluginsorg.aspectj.runtime_1.6.5.20090407153400aspectjrt.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 FilesJavajre6, 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 FilesJavajre6libext;C:WINDOWSSunJavalibext, sun.boot.class.path=C:Program FilesJavajre6libresources.jar;C:Program FilesJavajre6librt.jar;C:Program FilesJavajre6libsunrsasign.jar;C:Program FilesJavajre6libjsse.jar;C:Program FilesJavajre6libjce.jar;C:Program FilesJavajre6libcharsets.jar;C:Program FilesJavajre6classes, 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 폴더에 들어있는데 말이죠.

최신 버전에서 위버와 뭔가 궁합이 안맞을 수 있겠다는 생각도 해봤었지만, 최신 위버를 찾을 수가 없어서 뒤로 재쳐두고 있었는데..

문제 실마리가 안 보이네요. @_@