SHARE
TWEET

Untitled

a guest Nov 13th, 2013 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Error creating bean with name 'persistenceExceptionTranslationPostProcessor' defined in ServletContext resource [/WEB-INF/dispatcher-servlet.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/dispatcher-servlet.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/hibernate/cfg/AnnotationConfiguration
  2.         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:529)
  3.         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
  4.         at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
  5.         at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
  6.         at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
  7.         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:198)
  8.         at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:741)
  9.         at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)
  10.         at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:651)
  11.         at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:599)
  12.         at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:665)
  13.         at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:518)
  14.         at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:459)
  15.         at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)
  16.         at javax.servlet.GenericServlet.init(GenericServlet.java:160)
  17.         at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1280)
  18.         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1193)
  19.         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1088)
  20.         at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5176)
  21.         at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5460)
  22.         at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
  23.         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
  24.         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
  25.         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
  26.         at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:663)
  27.         at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1642)
  28.         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
  29.         at java.util.concurrent.FutureTask.run(FutureTask.java:262)
  30.         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
  31.         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
  32.         at java.lang.Thread.run(Thread.java:744)
  33. Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/dispatcher-servlet.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/hibernate/cfg/AnnotationConfiguration
  34.         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1007)
  35.         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:953)
  36.         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:487)
  37.         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
  38.         at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
  39.         at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
  40.         at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
  41.         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:198)
  42.         at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:439)
  43.         at org.springframework.beans.factory.BeanFactoryUtils.beansOfTypeIncludingAncestors(BeanFactoryUtils.java:277)
  44.         at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.detectPersistenceExceptionTranslators(PersistenceExceptionTranslationInterceptor.java:122)
  45.         at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.<init>(PersistenceExceptionTranslationInterceptor.java:78)
  46.         at org.springframework.dao.annotation.PersistenceExceptionTranslationAdvisor.<init>(PersistenceExceptionTranslationAdvisor.java:70)
  47.         at org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor.setBeanFactory(PersistenceExceptionTranslationPostProcessor.java:96)
  48.         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeAwareMethods(AbstractAutowireCapableBeanFactory.java:1502)
  49.         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1470)
  50.         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)
  51.         ... 30 more
  52. Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/hibernate/cfg/AnnotationConfiguration
  53.         at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:163)
  54.         at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)
  55.         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1000)
  56.         ... 46 more
  57. Caused by: java.lang.NoClassDefFoundError: org/hibernate/cfg/AnnotationConfiguration
  58.         at org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean.<init>(AnnotationSessionFactoryBean.java:65)
  59.         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  60.         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
  61.         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  62.         at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
  63.         at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:148)
  64.         ... 48 more
  65. Caused by: java.lang.ClassNotFoundException: org.hibernate.cfg.AnnotationConfiguration
  66.         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1702)
  67.         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1547)
  68.         ... 54 more
  69.  
  70. nov 13, 2013 10:41:55 PM org.apache.catalina.startup.HostConfig deployDirectory
  71. INFO: Deploying web application directory C:\Users\Michael\Downloads\apache-tomcat-7.0.47\apache-tomcat-7.0.47\webapps\docs
  72. nov 13, 2013 10:41:55 PM org.apache.catalina.startup.HostConfig deployDirectory
  73. INFO: Deploying web application directory C:\Users\Michael\Downloads\apache-tomcat-7.0.47\apache-tomcat-7.0.47\webapps\examples
  74. nov 13, 2013 10:41:55 PM org.apache.catalina.startup.HostConfig deployDirectory
  75. INFO: Deploying web application directory C:\Users\Michael\Downloads\apache-tomcat-7.0.47\apache-tomcat-7.0.47\webapps\host-manager
  76. nov 13, 2013 10:41:55 PM org.apache.catalina.startup.HostConfig deployDirectory
  77. INFO: Deploying web application directory C:\Users\Michael\Downloads\apache-tomcat-7.0.47\apache-tomcat-7.0.47\webapps\manager
  78. nov 13, 2013 10:41:55 PM org.apache.catalina.startup.HostConfig deployDirectory
  79. INFO: Deploying web application directory C:\Users\Michael\Downloads\apache-tomcat-7.0.47\apache-tomcat-7.0.47\webapps\ROOT
  80. nov 13, 2013 10:41:55 PM org.apache.coyote.AbstractProtocol start
  81. INFO: Starting ProtocolHandler ["http-bio-8080"]
  82. nov 13, 2013 10:41:56 PM org.apache.coyote.AbstractProtocol start
  83. INFO: Starting ProtocolHandler ["ajp-bio-8009"]
  84. nov 13, 2013 10:41:56 PM org.apache.catalina.startup.Catalina start
  85. INFO: Server startup in 5254 ms
  86. nov 13, 2013 10:41:56 PM org.springframework.context.support.AbstractApplicationContext doClose
  87. INFO: Closing Root WebApplicationContext: startup date [Wed Nov 13 22:41:54 CET 2013]; root of context hierarchy
  88. nov 13, 2013 10:41:56 PM org.springframework.beans.factory.support.DefaultSingletonBeanRegistry destroySingletons
  89. INFO: Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@641428b7: defining beans []; root of factory hierarchy
  90. nov 13, 2013 10:41:57 PM org.apache.catalina.startup.HostConfig deleteRedeployResources
  91. INFO: Undeploying context [/SocialAcademy]
  92. nov 13, 2013 10:41:57 PM org.apache.catalina.startup.HostConfig deployDescriptor
  93. INFO: Deploying configuration descriptor C:\Users\Michael\Downloads\apache-tomcat-7.0.47\apache-tomcat-7.0.47\conf\Catalina\localhost\SocialAcademy.xml
  94. nov 13, 2013 10:41:59 PM org.springframework.web.context.ContextLoader initWebApplicationContext
  95. INFO: Root WebApplicationContext: initialization started
  96. nov 13, 2013 10:41:59 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh
  97. INFO: Refreshing Root WebApplicationContext: startup date [Wed Nov 13 22:41:59 CET 2013]; root of context hierarchy
  98. nov 13, 2013 10:41:59 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
  99. INFO: Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext.xml]
  100. nov 13, 2013 10:42:00 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
  101. INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1323b94a: defining beans []; root of factory hierarchy
  102. nov 13, 2013 10:42:00 PM org.springframework.web.context.ContextLoader initWebApplicationContext
  103. INFO: Root WebApplicationContext: initialization completed in 439 ms
  104. nov 13, 2013 10:42:00 PM org.springframework.web.servlet.FrameworkServlet initServletBean
  105. INFO: FrameworkServlet 'dispatcher': initialization started
  106. nov 13, 2013 10:42:00 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh
  107. INFO: Refreshing WebApplicationContext for namespace 'dispatcher-servlet': startup date [Wed Nov 13 22:42:00 CET 2013]; parent: Root WebApplicationContext
  108. nov 13, 2013 10:42:00 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
  109. INFO: Loading XML bean definitions from ServletContext resource [/WEB-INF/dispatcher-servlet.xml]
  110. nov 13, 2013 10:42:00 PM org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider registerDefaultFilters
  111. INFO: JSR-250 'javax.annotation.ManagedBean' found and supported for component scanning
  112. nov 13, 2013 10:42:00 PM org.springframework.core.io.support.PropertiesLoaderSupport loadProperties
  113. INFO: Loading properties file from ServletContext resource [/WEB-INF/jdbc.properties]
  114. nov 13, 2013 10:42:00 PM org.springframework.beans.factory.support.DefaultSingletonBeanRegistry destroySingletons
  115. INFO: Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@10569c84: defining beans [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,homeController,org.springframework.web.servlet.view.InternalResourceViewResolver#0,propertyConfigurer,sessionFactory,dataSource,txManager,persistenceExceptionTranslationPostProcessor,org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@1323b94a
  116. nov 13, 2013 10:42:00 PM org.springframework.web.servlet.FrameworkServlet initServletBean
  117. SEVERE: Context initialization failed
  118. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'persistenceExceptionTranslationPostProcessor' defined in ServletContext resource [/WEB-INF/dispatcher-servlet.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/dispatcher-servlet.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/hibernate/cfg/AnnotationConfiguration
  119.         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:529)
  120.         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
  121.         at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
  122.         at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
  123.         at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
  124.         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:198)
  125.         at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:741)
  126.         at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)
  127.         at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:651)
  128.         at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:599)
  129.         at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:665)
  130.         at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:518)
  131.         at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:459)
  132.         at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)
  133.         at javax.servlet.GenericServlet.init(GenericServlet.java:160)
  134.         at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1280)
  135.         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1193)
  136.         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1088)
  137.         at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5176)
  138.         at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5460)
  139.         at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
  140.         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
  141.         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
  142.         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
  143.         at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:663)
  144.         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:542)
  145.         at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1468)
  146.         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  147.         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
  148.         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  149.         at java.lang.reflect.Method.invoke(Method.java:606)
  150.         at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:301)
  151.         at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
  152.         at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
  153.         at org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1447)
  154.         at org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:862)
  155.         at org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:358)
  156.         at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
  157.         at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
  158.         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
  159.         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
  160.         at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
  161.         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
  162.         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
  163.         at org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)
  164.         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
  165.         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
  166.         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
  167.         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
  168.         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:611)
  169.         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
  170.         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
  171.         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
  172.         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
  173.         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
  174.         at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041)
  175.         at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603)
  176.         at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
  177.         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
  178.         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
  179.         at java.lang.Thread.run(Thread.java:744)
  180. Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/dispatcher-servlet.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/hibernate/cfg/AnnotationConfiguration
  181.         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1007)
  182.         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:953)
  183.         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:487)
  184.         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
  185.         at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
  186.         at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
  187.         at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
  188.         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:198)
  189.         at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:439)
  190.         at org.springframework.beans.factory.BeanFactoryUtils.beansOfTypeIncludingAncestors(BeanFactoryUtils.java:277)
  191.         at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.detectPersistenceExceptionTranslators(PersistenceExceptionTranslationInterceptor.java:122)
  192.         at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.<init>(PersistenceExceptionTranslationInterceptor.java:78)
  193.         at org.springframework.dao.annotation.PersistenceExceptionTranslationAdvisor.<init>(PersistenceExceptionTranslationAdvisor.java:70)
  194.         at org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor.setBeanFactory(PersistenceExceptionTranslationPostProcessor.java:96)
  195.         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeAwareMethods(AbstractAutowireCapableBeanFactory.java:1502)
  196.         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1470)
  197.         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)
  198.         ... 60 more
  199. Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/hibernate/cfg/AnnotationConfiguration
  200.         at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:163)
  201.         at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)
  202.         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1000)
  203.         ... 76 more
  204. Caused by: java.lang.NoClassDefFoundError: org/hibernate/cfg/AnnotationConfiguration
  205.         at org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean.<init>(AnnotationSessionFactoryBean.java:65)
  206.         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  207.         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
  208.         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  209.         at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
  210.         at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:148)
  211.         ... 78 more
  212. Caused by: java.lang.ClassNotFoundException: org.hibernate.cfg.AnnotationConfiguration
  213.         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1702)
  214.         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1547)
  215.         ... 84 more
  216.  
  217. nov 13, 2013 10:42:00 PM org.apache.catalina.util.LifecycleBase start
  218. INFO: The start() method was called on component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/SocialAcademy]] after start() had already been called. The second call will be ignored.
  219. nov 13, 2013 10:42:01 PM org.springframework.web.servlet.FrameworkServlet initServletBean
  220. INFO: FrameworkServlet 'dispatcher': initialization started
  221. nov 13, 2013 10:42:01 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh
  222. INFO: Refreshing WebApplicationContext for namespace 'dispatcher-servlet': startup date [Wed Nov 13 22:42:01 CET 2013]; parent: Root WebApplicationContext
  223. nov 13, 2013 10:42:01 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
  224. INFO: Loading XML bean definitions from ServletContext resource [/WEB-INF/dispatcher-servlet.xml]
  225. nov 13, 2013 10:42:01 PM org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider registerDefaultFilters
  226. INFO: JSR-250 'javax.annotation.ManagedBean' found and supported for component scanning
  227. nov 13, 2013 10:42:01 PM org.springframework.core.io.support.PropertiesLoaderSupport loadProperties
  228. INFO: Loading properties file from ServletContext resource [/WEB-INF/jdbc.properties]
  229. nov 13, 2013 10:42:01 PM org.springframework.beans.factory.support.DefaultSingletonBeanRegistry destroySingletons
  230. INFO: Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@47a272cf: defining beans [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,homeController,org.springframework.web.servlet.view.InternalResourceViewResolver#0,propertyConfigurer,sessionFactory,dataSource,txManager,persistenceExceptionTranslationPostProcessor,org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@1323b94a
  231. nov 13, 2013 10:42:01 PM org.springframework.web.servlet.FrameworkServlet initServletBean
  232. SEVERE: Context initialization failed
  233. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'persistenceExceptionTranslationPostProcessor' defined in ServletContext resource [/WEB-INF/dispatcher-servlet.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/dispatcher-servlet.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/hibernate/cfg/AnnotationConfiguration
  234.         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:529)
  235.         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
  236.         at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
  237.         at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
  238.         at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
  239.         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:198)
  240.         at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:741)
  241.         at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)
  242.         at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:651)
  243.         at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:599)
  244.         at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:665)
  245.         at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:518)
  246.         at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:459)
  247.         at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)
  248.         at javax.servlet.GenericServlet.init(GenericServlet.java:160)
  249.         at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1280)
  250.         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1193)
  251.         at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:865)
  252.         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:136)
  253.         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
  254.         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
  255.         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
  256.         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
  257.         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
  258.         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
  259.         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
  260.         at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041)
  261.         at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603)
  262.         at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
  263.         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
  264.         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
  265.         at java.lang.Thread.run(Thread.java:744)
  266. Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/dispatcher-servlet.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/hibernate/cfg/AnnotationConfiguration
  267.         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1007)
  268.         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:953)
  269.         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:487)
  270.         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
  271.         at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
  272.         at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
  273.         at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
  274.         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:198)
  275.         at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:439)
  276.         at org.springframework.beans.factory.BeanFactoryUtils.beansOfTypeIncludingAncestors(BeanFactoryUtils.java:277)
  277.         at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.detectPersistenceExceptionTranslators(PersistenceExceptionTranslationInterceptor.java:122)
  278.         at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.<init>(PersistenceExceptionTranslationInterceptor.java:78)
  279.         at org.springframework.dao.annotation.PersistenceExceptionTranslationAdvisor.<init>(PersistenceExceptionTranslationAdvisor.java:70)
  280.         at org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor.setBeanFactory(PersistenceExceptionTranslationPostProcessor.java:96)
  281.         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeAwareMethods(AbstractAutowireCapableBeanFactory.java:1502)
  282.         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1470)
  283.         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)
  284.         ... 31 more
  285. Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/hibernate/cfg/AnnotationConfiguration
  286.         at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:163)
  287.         at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)
  288.         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1000)
  289.         ... 47 more
  290. Caused by: java.lang.NoClassDefFoundError: org/hibernate/cfg/AnnotationConfiguration
  291.         at org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean.<init>(AnnotationSessionFactoryBean.java:65)
  292.         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  293.         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
  294.         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  295.         at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
  296.         at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:148)
  297.         ... 49 more
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top