Error creating bean with name 'sessionFactory' defined in class path resource [spring/applicationCon

来源:互联网 发布:易语言钩子注入源码 编辑:程序博客网 时间:2024/05/10 04:19
十月 19, 2013 2:39:56 下午 org.apache.catalina.core.AprLifecycleListener initINFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\File\java\jdk17017\bin;D:\File\Tomcat\Tomcat6.0\Tomcat 6.0\bin十月 19, 2013 2:39:56 下午 org.apache.coyote.http11.Http11Protocol initINFO: Initializing Coyote HTTP/1.1 on http-8080十月 19, 2013 2:39:56 下午 org.apache.catalina.startup.Catalina loadINFO: Initialization processed in 391 ms十月 19, 2013 2:39:56 下午 org.apache.catalina.core.StandardService startINFO: Starting service Catalina十月 19, 2013 2:39:56 下午 org.apache.catalina.core.StandardEngine startINFO: Starting Servlet Engine: Apache Tomcat/6.0.10十月 19, 2013 2:39:57 下午 org.apache.catalina.core.ApplicationContext logINFO: ContextListener: contextInitialized()十月 19, 2013 2:39:57 下午 org.apache.catalina.core.ApplicationContext logINFO: SessionListener: contextInitialized()十月 19, 2013 2:39:57 下午 org.apache.catalina.core.ApplicationContext logINFO: Initializing Spring root WebApplicationContextINFO - Root WebApplicationContext: initialization startedDEBUG - Initializing new StandardServletEnvironmentDEBUG - Adding [servletConfigInitParams] PropertySource with lowest search precedenceDEBUG - Adding [servletContextInitParams] PropertySource with lowest search precedenceDEBUG - Adding [jndiProperties] PropertySource with lowest search precedenceDEBUG - Adding [systemProperties] PropertySource with lowest search precedenceDEBUG - Adding [systemEnvironment] PropertySource with lowest search precedenceDEBUG - Initialized StandardServletEnvironment with PropertySources [servletConfigInitParams,servletContextInitParams,jndiProperties,systemProperties,systemEnvironment]INFO - Refreshing Root WebApplicationContext: startup date [Sat Oct 19 14:39:57 CST 2013]; root of context hierarchyDEBUG - Replacing [servletContextInitParams] PropertySource with [servletContextInitParams]DEBUG - Initializing new StandardEnvironmentDEBUG - Adding [systemProperties] PropertySource with lowest search precedenceDEBUG - Adding [systemEnvironment] PropertySource with lowest search precedenceDEBUG - Initialized StandardEnvironment with PropertySources [systemProperties,systemEnvironment]DEBUG - Initializing new StandardEnvironmentDEBUG - Adding [systemProperties] PropertySource with lowest search precedenceDEBUG - Adding [systemEnvironment] PropertySource with lowest search precedenceDEBUG - Initialized StandardEnvironment with PropertySources [systemProperties,systemEnvironment]INFO - Loading XML bean definitions from class path resource [spring/applicationContext.xml]DEBUG - Using JAXP provider [com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl]DEBUG - Loading schema mappings from [META-INF/spring.schemas]DEBUG - Loaded schema mappings: {http://www.springframework.org/schema/tx/spring-tx-2.5.xsd=org/springframework/transaction/config/spring-tx-2.5.xsd, http://www.springframework.org/schema/context/spring-context-3.1.xsd=org/springframework/context/config/spring-context-3.1.xsd, http://www.springframework.org/schema/jms/spring-jms-2.5.xsd=org/springframework/jms/config/spring-jms-2.5.xsd, http://www.springframework.org/schema/util/spring-util-3.0.xsd=org/springframework/beans/factory/xml/spring-util-3.0.xsd, http://www.springframework.org/schema/tool/spring-tool.xsd=org/springframework/beans/factory/xml/spring-tool-3.2.xsd, http://www.springframework.org/schema/aop/spring-aop-3.2.xsd=org/springframework/aop/config/spring-aop-3.2.xsd, http://www.springframework.org/schema/mvc/spring-mvc-3.2.xsd=org/springframework/web/servlet/config/spring-mvc-3.2.xsd, http://www.springframework.org/schema/oxm/spring-oxm-3.0.xsd=org/springframework/oxm/config/spring-oxm-3.0.xsd, http://www.springframework.org/schema/lang/spring-lang-3.2.xsd=org/springframework/scripting/config/spring-lang-3.2.xsd, http://www.springframework.org/schema/cache/spring-cache-3.2.xsd=org/springframework/cache/config/spring-cache-3.2.xsd, http://www.springframework.org/schema/jdbc/spring-jdbc-3.1.xsd=org/springframework/jdbc/config/spring-jdbc-3.1.xsd, http://www.springframework.org/schema/util/spring-util-2.0.xsd=org/springframework/beans/factory/xml/spring-util-2.0.xsd, http://www.springframework.org/schema/tool/spring-tool-3.2.xsd=org/springframework/beans/factory/xml/spring-tool-3.2.xsd, http://www.springframework.org/schema/context/spring-context.xsd=org/springframework/context/config/spring-context-3.2.xsd, http://www.springframework.org/schema/jee/spring-jee-3.2.xsd=org/springframework/ejb/config/spring-jee-3.2.xsd, http://www.springframework.org/schema/context/spring-context-3.0.xsd=org/springframework/context/config/spring-context-3.0.xsd, http://www.springframework.org/schema/util/spring-util-2.5.xsd=org/springframework/beans/factory/xml/spring-util-2.5.xsd, http://www.springframework.org/schema/beans/spring-beans-3.2.xsd=org/springframework/beans/factory/xml/spring-beans-3.2.xsd, http://www.springframework.org/schema/aop/spring-aop-3.1.xsd=org/springframework/aop/config/spring-aop-3.1.xsd, http://www.springframework.org/schema/mvc/spring-mvc.xsd=org/springframework/web/servlet/config/spring-mvc-3.2.xsd, http://www.springframework.org/schema/mvc/spring-mvc-3.1.xsd=org/springframework/web/servlet/config/spring-mvc-3.1.xsd, http://www.springframework.org/schema/lang/spring-lang-3.1.xsd=org/springframework/scripting/config/spring-lang-3.1.xsd, http://www.springframework.org/schema/tx/spring-tx-3.2.xsd=org/springframework/transaction/config/spring-tx-3.2.xsd, http://www.springframework.org/schema/cache/spring-cache-3.1.xsd=org/springframework/cache/config/spring-cache-3.1.xsd, http://www.springframework.org/schema/jdbc/spring-jdbc-3.0.xsd=org/springframework/jdbc/config/spring-jdbc-3.0.xsd, http://www.springframework.org/schema/jdbc/spring-jdbc.xsd=org/springframework/jdbc/config/spring-jdbc-3.2.xsd, http://www.springframework.org/schema/tool/spring-tool-3.1.xsd=org/springframework/beans/factory/xml/spring-tool-3.1.xsd, http://www.springframework.org/schema/jee/spring-jee-3.1.xsd=org/springframework/ejb/config/spring-jee-3.1.xsd, http://www.springframework.org/schema/task/spring-task-3.2.xsd=org/springframework/scheduling/config/spring-task-3.2.xsd, http://www.springframework.org/schema/beans/spring-beans-3.1.xsd=org/springframework/beans/factory/xml/spring-beans-3.1.xsd, http://www.springframework.org/schema/util/spring-util.xsd=org/springframework/beans/factory/xml/spring-util-3.2.xsd, http://www.springframework.org/schema/aop/spring-aop-3.0.xsd=org/springframework/aop/config/spring-aop-3.0.xsd, http://www.springframework.org/schema/jms/spring-jms-3.2.xsd=org/springframework/jms/config/spring-jms-3.2.xsd, http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd=org/springframework/web/servlet/config/spring-mvc-3.0.xsd, http://www.springframework.org/schema/beans/spring-beans.xsd=org/springframework/beans/factory/xml/spring-beans-3.2.xsd, http://www.springframework.org/schema/lang/spring-lang-3.0.xsd=org/springframework/scripting/config/spring-lang-3.0.xsd, http://www.springframework.org/schema/tx/spring-tx-3.1.xsd=org/springframework/transaction/config/spring-tx-3.1.xsd, http://www.springframework.org/schema/context/spring-context-2.5.xsd=org/springframework/context/config/spring-context-2.5.xsd, http://www.springframework.org/schema/tool/spring-tool-3.0.xsd=org/springframework/beans/factory/xml/spring-tool-3.0.xsd, http://www.springframework.org/schema/aop/spring-aop-2.0.xsd=org/springframework/aop/config/spring-aop-2.0.xsd, http://www.springframework.org/schema/jee/spring-jee-3.0.xsd=org/springframework/ejb/config/spring-jee-3.0.xsd, http://www.springframework.org/schema/task/spring-task-3.1.xsd=org/springframework/scheduling/config/spring-task-3.1.xsd, http://www.springframework.org/schema/beans/spring-beans-3.0.xsd=org/springframework/beans/factory/xml/spring-beans-3.0.xsd, http://www.springframework.org/schema/jee/spring-jee.xsd=org/springframework/ejb/config/spring-jee-3.2.xsd, http://www.springframework.org/schema/aop/spring-aop-2.5.xsd=org/springframework/aop/config/spring-aop-2.5.xsd, http://www.springframework.org/schema/jms/spring-jms.xsd=org/springframework/jms/config/spring-jms-3.2.xsd, http://www.springframework.org/schema/lang/spring-lang-2.0.xsd=org/springframework/scripting/config/spring-lang-2.0.xsd, http://www.springframework.org/schema/jms/spring-jms-3.1.xsd=org/springframework/jms/config/spring-jms-3.1.xsd, http://www.springframework.org/schema/oxm/spring-oxm.xsd=org/springframework/oxm/config/spring-oxm-3.2.xsd, http://www.springframework.org/schema/util/spring-util-3.2.xsd=org/springframework/beans/factory/xml/spring-util-3.2.xsd, http://www.springframework.org/schema/task/spring-task.xsd=org/springframework/scheduling/config/spring-task-3.2.xsd, http://www.springframework.org/schema/tool/spring-tool-2.0.xsd=org/springframework/beans/factory/xml/spring-tool-2.0.xsd, http://www.springframework.org/schema/tx/spring-tx-3.0.xsd=org/springframework/transaction/config/spring-tx-3.0.xsd, http://www.springframework.org/schema/lang/spring-lang-2.5.xsd=org/springframework/scripting/config/spring-lang-2.5.xsd, http://www.springframework.org/schema/jee/spring-jee-2.0.xsd=org/springframework/ejb/config/spring-jee-2.0.xsd, http://www.springframework.org/schema/oxm/spring-oxm-3.2.xsd=org/springframework/oxm/config/spring-oxm-3.2.xsd, http://www.springframework.org/schema/tool/spring-tool-2.5.xsd=org/springframework/beans/factory/xml/spring-tool-2.5.xsd, http://www.springframework.org/schema/jee/spring-jee-2.5.xsd=org/springframework/ejb/config/spring-jee-2.5.xsd, http://www.springframework.org/schema/task/spring-task-3.0.xsd=org/springframework/scheduling/config/spring-task-3.0.xsd, http://www.springframework.org/schema/lang/spring-lang.xsd=org/springframework/scripting/config/spring-lang-3.2.xsd, http://www.springframework.org/schema/context/spring-context-3.2.xsd=org/springframework/context/config/spring-context-3.2.xsd, http://www.springframework.org/schema/jms/spring-jms-3.0.xsd=org/springframework/jms/config/spring-jms-3.0.xsd, http://www.springframework.org/schema/util/spring-util-3.1.xsd=org/springframework/beans/factory/xml/spring-util-3.1.xsd, http://www.springframework.org/schema/beans/spring-beans-2.0.xsd=org/springframework/beans/factory/xml/spring-beans-2.0.xsd, http://www.springframework.org/schema/cache/spring-cache.xsd=org/springframework/cache/config/spring-cache-3.2.xsd, http://www.springframework.org/schema/tx/spring-tx.xsd=org/springframework/transaction/config/spring-tx-3.2.xsd, http://www.springframework.org/schema/beans/spring-beans-2.5.xsd=org/springframework/beans/factory/xml/spring-beans-2.5.xsd, http://www.springframework.org/schema/oxm/spring-oxm-3.1.xsd=org/springframework/oxm/config/spring-oxm-3.1.xsd, http://www.springframework.org/schema/tx/spring-tx-2.0.xsd=org/springframework/transaction/config/spring-tx-2.0.xsd, http://www.directwebremoting.org/schema/spring-dwr-2.0.xsd=org/directwebremoting/spring/spring-dwr-2.0.xsd, http://www.springframework.org/schema/jdbc/spring-jdbc-3.2.xsd=org/springframework/jdbc/config/spring-jdbc-3.2.xsd, http://www.springframework.org/schema/aop/spring-aop.xsd=org/springframework/aop/config/spring-aop-3.2.xsd}DEBUG - Found XML schema [http://www.springframework.org/schema/beans/spring-beans-3.2.xsd] in classpath: org/springframework/beans/factory/xml/spring-beans-3.2.xsdDEBUG - Loading bean definitionsDEBUG - No XML 'id' specified - using 'propertiesConfiguration' as bean name and [] as aliasesDEBUG - Loaded NamespaceHandler mappings: {http://www.springframework.org/schema/p=org.springframework.beans.factory.xml.SimplePropertyNamespaceHandler, http://www.springframework.org/schema/mvc=org.springframework.web.servlet.config.MvcNamespaceHandler, http://www.springframework.org/schema/util=org.springframework.beans.factory.xml.UtilNamespaceHandler, http://www.springframework.org/schema/jee=org.springframework.ejb.config.JeeNamespaceHandler, http://www.springframework.org/schema/aop=org.springframework.aop.config.AopNamespaceHandler, http://www.springframework.org/schema/oxm=org.springframework.oxm.config.OxmNamespaceHandler, http://www.springframework.org/schema/jdbc=org.springframework.jdbc.config.JdbcNamespaceHandler, http://www.springframework.org/schema/cache=org.springframework.cache.config.CacheNamespaceHandler, http://www.directwebremoting.org/schema/spring-dwr=org.directwebremoting.spring.DwrNamespaceHandler, http://www.springframework.org/schema/c=org.springframework.beans.factory.xml.SimpleConstructorNamespaceHandler, http://www.springframework.org/schema/tx=org.springframework.transaction.config.TxNamespaceHandler, http://www.springframework.org/schema/jms=org.springframework.jms.config.JmsNamespaceHandler, http://www.springframework.org/schema/task=org.springframework.scheduling.config.TaskNamespaceHandler, http://www.springframework.org/schema/lang=org.springframework.scripting.config.LangNamespaceHandler, http://www.springframework.org/schema/context=org.springframework.context.config.ContextNamespaceHandler}DEBUG - No XML 'id' specified - using 'dataSources' as bean name and [] as aliasesDEBUG - No XML 'id' specified - using 'sessionFactory' as bean name and [] as aliasesDEBUG - Loaded 3 bean definitions from location pattern [classpath:spring/applicationContext.xml]DEBUG - Looking for matching resources in directory tree [D:\File\Tomcat\Tomcat6.0\Tomcat 6.0\webapps\inventory\WEB-INF\classes\spring]DEBUG - Searching directory [D:\File\Tomcat\Tomcat6.0\Tomcat 6.0\webapps\inventory\WEB-INF\classes\spring] for files matching pattern [D:/File/Tomcat/Tomcat6.0/Tomcat 6.0/webapps/inventory/WEB-INF/classes/spring/applicationContext-*.xml]DEBUG - Resolved location pattern [classpath:spring/applicationContext-*.xml] to resources [file [D:\File\Tomcat\Tomcat6.0\Tomcat 6.0\webapps\inventory\WEB-INF\classes\spring\applicationContext-final.xml], file [D:\File\Tomcat\Tomcat6.0\Tomcat 6.0\webapps\inventory\WEB-INF\classes\spring\applicationContext-login.xml]]INFO - Loading XML bean definitions from file [D:\File\Tomcat\Tomcat6.0\Tomcat 6.0\webapps\inventory\WEB-INF\classes\spring\applicationContext-final.xml]DEBUG - Using JAXP provider [com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl]DEBUG - Found XML schema [http://www.springframework.org/schema/beans/spring-beans-3.2.xsd] in classpath: org/springframework/beans/factory/xml/spring-beans-3.2.xsdDEBUG - Loading bean definitionsINFO - Loading XML bean definitions from file [D:\File\Tomcat\Tomcat6.0\Tomcat 6.0\webapps\inventory\WEB-INF\classes\spring\applicationContext-login.xml]DEBUG - Using JAXP provider [com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl]DEBUG - Found XML schema [http://www.springframework.org/schema/beans/spring-beans-3.2.xsd] in classpath: org/springframework/beans/factory/xml/spring-beans-3.2.xsdDEBUG - Loading bean definitionsDEBUG - Loaded 4 bean definitions from location pattern [classpath:spring/applicationContext-*.xml]DEBUG - Bean factory for Root WebApplicationContext: org.springframework.beans.factory.support.DefaultListableBeanFactory@3fadbf85: defining beans [propertiesConfiguration,dataSources,sessionFactory,master,loginAction,masterBus,masterDao]; root of factory hierarchyDEBUG - Creating shared instance of singleton bean 'propertiesConfiguration'DEBUG - Creating instance of bean 'propertiesConfiguration'DEBUG - Eagerly caching bean 'propertiesConfiguration' to allow for resolving potential circular referencesDEBUG - Invoking afterPropertiesSet() on bean with name 'propertiesConfiguration'DEBUG - Finished creating instance of bean 'propertiesConfiguration'INFO - Loading properties file from class path resource [c3p0/mysql-inventory.properties]DEBUG - Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.DelegatingMessageSource@ffbce2a]DEBUG - Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicationEventMulticaster@3597b4f6]DEBUG - Unable to locate ThemeSource with name 'themeSource': using default [org.springframework.ui.context.support.ResourceBundleThemeSource@693e6031]INFO - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@3fadbf85: defining beans [propertiesConfiguration,dataSources,sessionFactory,master,loginAction,masterBus,masterDao]; root of factory hierarchyDEBUG - Returning cached instance of singleton bean 'propertiesConfiguration'DEBUG - Creating shared instance of singleton bean 'dataSources'DEBUG - Creating instance of bean 'dataSources'INFO - MLog clients using log4j logging.INFO - Initializing c3p0-0.9.2.1 [built 20-March-2013 11:16:28 +0000; debug? true; trace: 10]DEBUG - MBean: com.mchange.v2.c3p0:type=PooledDataSource,identityToken=1hge0yt8x1lk2tz1h1zdho|1dd2a7ed,name=1hge0yt8x1lk2tz1h1zdho|1dd2a7ed registered.DEBUG - MBean: com.mchange.v2.c3p0:type=PooledDataSource,identityToken=1hge0yt8x1lk2tz1h1zdho|1dd2a7ed,name=1hge0yt8x1lk2tz1h1zdho|1dd2a7ed unregistered, in order to be reregistered after update.DEBUG - MBean: com.mchange.v2.c3p0:type=PooledDataSource,identityToken=1hge0yt8x1lk2tz1h1zdho|1dd2a7ed,name=1hge0yt8x1lk2tz1h1zdho|1dd2a7ed registered.DEBUG - Eagerly caching bean 'dataSources' to allow for resolving potential circular referencesDEBUG - Initializing new StandardEnvironmentDEBUG - Adding [systemProperties] PropertySource with lowest search precedenceDEBUG - Adding [systemEnvironment] PropertySource with lowest search precedenceDEBUG - Initialized StandardEnvironment with PropertySources [systemProperties,systemEnvironment]DEBUG - Initializing new StandardEnvironmentDEBUG - Adding [systemProperties] PropertySource with lowest search precedenceDEBUG - Adding [systemEnvironment] PropertySource with lowest search precedenceDEBUG - Initialized StandardEnvironment with PropertySources [systemProperties,systemEnvironment]DEBUG - Initializing new StandardEnvironmentDEBUG - Adding [systemProperties] PropertySource with lowest search precedenceDEBUG - Adding [systemEnvironment] PropertySource with lowest search precedenceDEBUG - Initialized StandardEnvironment with PropertySources [systemProperties,systemEnvironment]DEBUG - Initializing new StandardEnvironmentDEBUG - Adding [systemProperties] PropertySource with lowest search precedenceDEBUG - Adding [systemEnvironment] PropertySource with lowest search precedenceDEBUG - Initialized StandardEnvironment with PropertySources [systemProperties,systemEnvironment]DEBUG - Initializing new StandardEnvironmentDEBUG - Adding [systemProperties] PropertySource with lowest search precedenceDEBUG - Adding [systemEnvironment] PropertySource with lowest search precedenceDEBUG - Initialized StandardEnvironment with PropertySources [systemProperties,systemEnvironment]DEBUG - Finished creating instance of bean 'dataSources'DEBUG - Creating shared instance of singleton bean 'sessionFactory'DEBUG - Creating instance of bean 'sessionFactory'DEBUG - Eagerly caching bean 'sessionFactory' to allow for resolving potential circular referencesINFO - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@3fadbf85: defining beans [propertiesConfiguration,dataSources,sessionFactory,master,loginAction,masterBus,masterDao]; root of factory hierarchyERROR - Context initialization failedorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [spring/applicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: [Lorg/hibernate/engine/FilterDefinition;at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:532)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:608)at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389)at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294)at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)at org.apache.catalina.core.StandardContext.start(StandardContext.java:4336)at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1023)at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1015)at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)at org.apache.catalina.core.StandardService.start(StandardService.java:448)at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)at org.apache.catalina.startup.Catalina.start(Catalina.java:552)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at java.lang.reflect.Method.invoke(Method.java:601)at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)Caused by: java.lang.NoClassDefFoundError: [Lorg/hibernate/engine/FilterDefinition;at java.lang.Class.getDeclaredMethods0(Native Method)at java.lang.Class.privateGetDeclaredMethods(Class.java:2451)at java.lang.Class.privateGetPublicMethods(Class.java:2571)at java.lang.Class.getMethods(Class.java:1429)at org.springframework.beans.ExtendedBeanInfoFactory.supports(ExtendedBeanInfoFactory.java:53)at org.springframework.beans.ExtendedBeanInfoFactory.getBeanInfo(ExtendedBeanInfoFactory.java:44)at org.springframework.beans.CachedIntrospectionResults.<init>(CachedIntrospectionResults.java:236)at org.springframework.beans.CachedIntrospectionResults.forClass(CachedIntrospectionResults.java:152)at org.springframework.beans.BeanWrapperImpl.getCachedIntrospectionResults(BeanWrapperImpl.java:321)at org.springframework.beans.BeanWrapperImpl.getPropertyDescriptorInternal(BeanWrapperImpl.java:351)at org.springframework.beans.BeanWrapperImpl.isWritableProperty(BeanWrapperImpl.java:427)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1395)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1134)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:522)... 35 moreCaused by: java.lang.ClassNotFoundException: org.hibernate.engine.FilterDefinitionat org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)... 49 more十月 19, 2013 2:39:58 下午 org.apache.catalina.core.StandardContext listenerStartSEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [spring/applicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: [Lorg/hibernate/engine/FilterDefinition;at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:532)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:608)at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389)at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294)at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)at org.apache.catalina.core.StandardContext.start(StandardContext.java:4336)at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1023)at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1015)at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)at org.apache.catalina.core.StandardService.start(StandardService.java:448)at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)at org.apache.catalina.startup.Catalina.start(Catalina.java:552)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at java.lang.reflect.Method.invoke(Method.java:601)at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)Caused by: java.lang.NoClassDefFoundError: [Lorg/hibernate/engine/FilterDefinition;at java.lang.Class.getDeclaredMethods0(Native Method)at java.lang.Class.privateGetDeclaredMethods(Class.java:2451)at java.lang.Class.privateGetPublicMethods(Class.java:2571)at java.lang.Class.getMethods(Class.java:1429)at org.springframework.beans.ExtendedBeanInfoFactory.supports(ExtendedBeanInfoFactory.java:53)at org.springframework.beans.ExtendedBeanInfoFactory.getBeanInfo(ExtendedBeanInfoFactory.java:44)at org.springframework.beans.CachedIntrospectionResults.<init>(CachedIntrospectionResults.java:236)at org.springframework.beans.CachedIntrospectionResults.forClass(CachedIntrospectionResults.java:152)at org.springframework.beans.BeanWrapperImpl.getCachedIntrospectionResults(BeanWrapperImpl.java:321)at org.springframework.beans.BeanWrapperImpl.getPropertyDescriptorInternal(BeanWrapperImpl.java:351)at org.springframework.beans.BeanWrapperImpl.isWritableProperty(BeanWrapperImpl.java:427)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1395)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1134)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:522)... 35 moreCaused by: java.lang.ClassNotFoundException: org.hibernate.engine.FilterDefinitionat org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)... 49 more十月 19, 2013 2:39:58 下午 org.apache.catalina.core.StandardContext startSEVERE: Error listenerStart十月 19, 2013 2:39:58 下午 org.apache.catalina.core.StandardContext startSEVERE: Context [/inventory] startup failed due to previous errors十月 19, 2013 2:39:58 下午 org.apache.catalina.core.ApplicationContext logINFO: Closing Spring root WebApplicationContext十月 19, 2013 2:39:58 下午 org.apache.coyote.http11.Http11Protocol startINFO: Starting Coyote HTTP/1.1 on http-8080十月 19, 2013 2:39:58 下午 org.apache.jk.common.ChannelSocket initINFO: JK: ajp13 listening on /0.0.0.0:8009十月 19, 2013 2:39:58 下午 org.apache.jk.server.JkMain startINFO: Jk running ID=0 time=1/23  config=null十月 19, 2013 2:39:59 下午 org.apache.catalina.startup.Catalina startINFO: Server startup in 2350 ms十月 19, 2013 3:00:19 下午 org.apache.catalina.startup.HostConfig checkResourcesINFO: Reloading context [/inventory]十月 19, 2013 3:00:19 下午 org.apache.catalina.core.StandardContext stopINFO: Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/inventory] has not been started十月 19, 2013 3:00:19 下午 org.apache.catalina.core.ApplicationContext logINFO: Initializing Spring root WebApplicationContextINFO - Root WebApplicationContext: initialization startedDEBUG - Initializing new StandardServletEnvironmentDEBUG - Adding [servletConfigInitParams] PropertySource with lowest search precedenceDEBUG - Adding [servletContextInitParams] PropertySource with lowest search precedenceDEBUG - Adding [jndiProperties] PropertySource with lowest search precedenceDEBUG - Adding [systemProperties] PropertySource with lowest search precedenceDEBUG - Adding [systemEnvironment] PropertySource with lowest search precedenceDEBUG - Initialized StandardServletEnvironment with PropertySources [servletConfigInitParams,servletContextInitParams,jndiProperties,systemProperties,systemEnvironment]INFO - Refreshing Root WebApplicationContext: startup date [Sat Oct 19 15:00:20 CST 2013]; root of context hierarchyDEBUG - Replacing [servletContextInitParams] PropertySource with [servletContextInitParams]DEBUG - Initializing new StandardEnvironmentDEBUG - Adding [systemProperties] PropertySource with lowest search precedenceDEBUG - Adding [systemEnvironment] PropertySource with lowest search precedenceDEBUG - Initialized StandardEnvironment with PropertySources [systemProperties,systemEnvironment]DEBUG - Initializing new StandardEnvironmentDEBUG - Adding [systemProperties] PropertySource with lowest search precedenceDEBUG - Adding [systemEnvironment] PropertySource with lowest search precedenceDEBUG - Initialized StandardEnvironment with PropertySources [systemProperties,systemEnvironment]INFO - Loading XML bean definitions from class path resource [spring/applicationContext.xml]DEBUG - Using JAXP provider [com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl]DEBUG - Loading schema mappings from [META-INF/spring.schemas]DEBUG - Loaded schema mappings: {http://www.springframework.org/schema/tx/spring-tx-2.5.xsd=org/springframework/transaction/config/spring-tx-2.5.xsd, http://www.springframework.org/schema/context/spring-context-3.1.xsd=org/springframework/context/config/spring-context-3.1.xsd, http://www.springframework.org/schema/jms/spring-jms-2.5.xsd=org/springframework/jms/config/spring-jms-2.5.xsd, http://www.springframework.org/schema/util/spring-util-3.0.xsd=org/springframework/beans/factory/xml/spring-util-3.0.xsd, http://www.springframework.org/schema/tool/spring-tool.xsd=org/springframework/beans/factory/xml/spring-tool-3.2.xsd, http://www.springframework.org/schema/aop/spring-aop-3.2.xsd=org/springframework/aop/config/spring-aop-3.2.xsd, http://www.springframework.org/schema/mvc/spring-mvc-3.2.xsd=org/springframework/web/servlet/config/spring-mvc-3.2.xsd, http://www.springframework.org/schema/oxm/spring-oxm-3.0.xsd=org/springframework/oxm/config/spring-oxm-3.0.xsd, http://www.springframework.org/schema/lang/spring-lang-3.2.xsd=org/springframework/scripting/config/spring-lang-3.2.xsd, http://www.springframework.org/schema/cache/spring-cache-3.2.xsd=org/springframework/cache/config/spring-cache-3.2.xsd, http://www.springframework.org/schema/jdbc/spring-jdbc-3.1.xsd=org/springframework/jdbc/config/spring-jdbc-3.1.xsd, http://www.springframework.org/schema/util/spring-util-2.0.xsd=org/springframework/beans/factory/xml/spring-util-2.0.xsd, http://www.springframework.org/schema/tool/spring-tool-3.2.xsd=org/springframework/beans/factory/xml/spring-tool-3.2.xsd, http://www.springframework.org/schema/context/spring-context.xsd=org/springframework/context/config/spring-context-3.2.xsd, http://www.springframework.org/schema/jee/spring-jee-3.2.xsd=org/springframework/ejb/config/spring-jee-3.2.xsd, http://www.springframework.org/schema/context/spring-context-3.0.xsd=org/springframework/context/config/spring-context-3.0.xsd, http://www.springframework.org/schema/util/spring-util-2.5.xsd=org/springframework/beans/factory/xml/spring-util-2.5.xsd, http://www.springframework.org/schema/beans/spring-beans-3.2.xsd=org/springframework/beans/factory/xml/spring-beans-3.2.xsd, http://www.springframework.org/schema/aop/spring-aop-3.1.xsd=org/springframework/aop/config/spring-aop-3.1.xsd, http://www.springframework.org/schema/mvc/spring-mvc.xsd=org/springframework/web/servlet/config/spring-mvc-3.2.xsd, http://www.springframework.org/schema/mvc/spring-mvc-3.1.xsd=org/springframework/web/servlet/config/spring-mvc-3.1.xsd, http://www.springframework.org/schema/lang/spring-lang-3.1.xsd=org/springframework/scripting/config/spring-lang-3.1.xsd, http://www.springframework.org/schema/tx/spring-tx-3.2.xsd=org/springframework/transaction/config/spring-tx-3.2.xsd, http://www.springframework.org/schema/cache/spring-cache-3.1.xsd=org/springframework/cache/config/spring-cache-3.1.xsd, http://www.springframework.org/schema/jdbc/spring-jdbc-3.0.xsd=org/springframework/jdbc/config/spring-jdbc-3.0.xsd, http://www.springframework.org/schema/jdbc/spring-jdbc.xsd=org/springframework/jdbc/config/spring-jdbc-3.2.xsd, http://www.springframework.org/schema/tool/spring-tool-3.1.xsd=org/springframework/beans/factory/xml/spring-tool-3.1.xsd, http://www.springframework.org/schema/jee/spring-jee-3.1.xsd=org/springframework/ejb/config/spring-jee-3.1.xsd, http://www.springframework.org/schema/task/spring-task-3.2.xsd=org/springframework/scheduling/config/spring-task-3.2.xsd, http://www.springframework.org/schema/beans/spring-beans-3.1.xsd=org/springframework/beans/factory/xml/spring-beans-3.1.xsd, http://www.springframework.org/schema/util/spring-util.xsd=org/springframework/beans/factory/xml/spring-util-3.2.xsd, http://www.springframework.org/schema/aop/spring-aop-3.0.xsd=org/springframework/aop/config/spring-aop-3.0.xsd, http://www.springframework.org/schema/jms/spring-jms-3.2.xsd=org/springframework/jms/config/spring-jms-3.2.xsd, http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd=org/springframework/web/servlet/config/spring-mvc-3.0.xsd, http://www.springframework.org/schema/beans/spring-beans.xsd=org/springframework/beans/factory/xml/spring-beans-3.2.xsd, http://www.springframework.org/schema/lang/spring-lang-3.0.xsd=org/springframework/scripting/config/spring-lang-3.0.xsd, http://www.springframework.org/schema/tx/spring-tx-3.1.xsd=org/springframework/transaction/config/spring-tx-3.1.xsd, http://www.springframework.org/schema/context/spring-context-2.5.xsd=org/springframework/context/config/spring-context-2.5.xsd, http://www.springframework.org/schema/tool/spring-tool-3.0.xsd=org/springframework/beans/factory/xml/spring-tool-3.0.xsd, http://www.springframework.org/schema/aop/spring-aop-2.0.xsd=org/springframework/aop/config/spring-aop-2.0.xsd, http://www.springframework.org/schema/jee/spring-jee-3.0.xsd=org/springframework/ejb/config/spring-jee-3.0.xsd, http://www.springframework.org/schema/task/spring-task-3.1.xsd=org/springframework/scheduling/config/spring-task-3.1.xsd, http://www.springframework.org/schema/beans/spring-beans-3.0.xsd=org/springframework/beans/factory/xml/spring-beans-3.0.xsd, http://www.springframework.org/schema/jee/spring-jee.xsd=org/springframework/ejb/config/spring-jee-3.2.xsd, http://www.springframework.org/schema/aop/spring-aop-2.5.xsd=org/springframework/aop/config/spring-aop-2.5.xsd, http://www.springframework.org/schema/jms/spring-jms.xsd=org/springframework/jms/config/spring-jms-3.2.xsd, http://www.springframework.org/schema/lang/spring-lang-2.0.xsd=org/springframework/scripting/config/spring-lang-2.0.xsd, http://www.springframework.org/schema/jms/spring-jms-3.1.xsd=org/springframework/jms/config/spring-jms-3.1.xsd, http://www.springframework.org/schema/oxm/spring-oxm.xsd=org/springframework/oxm/config/spring-oxm-3.2.xsd, http://www.springframework.org/schema/util/spring-util-3.2.xsd=org/springframework/beans/factory/xml/spring-util-3.2.xsd, http://www.springframework.org/schema/task/spring-task.xsd=org/springframework/scheduling/config/spring-task-3.2.xsd, http://www.springframework.org/schema/tool/spring-tool-2.0.xsd=org/springframework/beans/factory/xml/spring-tool-2.0.xsd, http://www.springframework.org/schema/tx/spring-tx-3.0.xsd=org/springframework/transaction/config/spring-tx-3.0.xsd, http://www.springframework.org/schema/lang/spring-lang-2.5.xsd=org/springframework/scripting/config/spring-lang-2.5.xsd, http://www.springframework.org/schema/jee/spring-jee-2.0.xsd=org/springframework/ejb/config/spring-jee-2.0.xsd, http://www.springframework.org/schema/oxm/spring-oxm-3.2.xsd=org/springframework/oxm/config/spring-oxm-3.2.xsd, http://www.springframework.org/schema/tool/spring-tool-2.5.xsd=org/springframework/beans/factory/xml/spring-tool-2.5.xsd, http://www.springframework.org/schema/jee/spring-jee-2.5.xsd=org/springframework/ejb/config/spring-jee-2.5.xsd, http://www.springframework.org/schema/task/spring-task-3.0.xsd=org/springframework/scheduling/config/spring-task-3.0.xsd, http://www.springframework.org/schema/lang/spring-lang.xsd=org/springframework/scripting/config/spring-lang-3.2.xsd, http://www.springframework.org/schema/context/spring-context-3.2.xsd=org/springframework/context/config/spring-context-3.2.xsd, http://www.springframework.org/schema/jms/spring-jms-3.0.xsd=org/springframework/jms/config/spring-jms-3.0.xsd, http://www.springframework.org/schema/util/spring-util-3.1.xsd=org/springframework/beans/factory/xml/spring-util-3.1.xsd, http://www.springframework.org/schema/beans/spring-beans-2.0.xsd=org/springframework/beans/factory/xml/spring-beans-2.0.xsd, http://www.springframework.org/schema/cache/spring-cache.xsd=org/springframework/cache/config/spring-cache-3.2.xsd, http://www.springframework.org/schema/tx/spring-tx.xsd=org/springframework/transaction/config/spring-tx-3.2.xsd, http://www.springframework.org/schema/beans/spring-beans-2.5.xsd=org/springframework/beans/factory/xml/spring-beans-2.5.xsd, http://www.springframework.org/schema/oxm/spring-oxm-3.1.xsd=org/springframework/oxm/config/spring-oxm-3.1.xsd, http://www.springframework.org/schema/tx/spring-tx-2.0.xsd=org/springframework/transaction/config/spring-tx-2.0.xsd, http://www.directwebremoting.org/schema/spring-dwr-2.0.xsd=org/directwebremoting/spring/spring-dwr-2.0.xsd, http://www.springframework.org/schema/jdbc/spring-jdbc-3.2.xsd=org/springframework/jdbc/config/spring-jdbc-3.2.xsd, http://www.springframework.org/schema/aop/spring-aop.xsd=org/springframework/aop/config/spring-aop-3.2.xsd}DEBUG - Found XML schema [http://www.springframework.org/schema/beans/spring-beans-3.2.xsd] in classpath: org/springframework/beans/factory/xml/spring-beans-3.2.xsdDEBUG - Loading bean definitionsDEBUG - No XML 'id' specified - using 'propertiesConfiguration' as bean name and [] as aliasesDEBUG - Loaded NamespaceHandler mappings: {http://www.springframework.org/schema/p=org.springframework.beans.factory.xml.SimplePropertyNamespaceHandler, http://www.springframework.org/schema/mvc=org.springframework.web.servlet.config.MvcNamespaceHandler, http://www.springframework.org/schema/util=org.springframework.beans.factory.xml.UtilNamespaceHandler, http://www.springframework.org/schema/jee=org.springframework.ejb.config.JeeNamespaceHandler, http://www.springframework.org/schema/aop=org.springframework.aop.config.AopNamespaceHandler, http://www.springframework.org/schema/oxm=org.springframework.oxm.config.OxmNamespaceHandler, http://www.springframework.org/schema/jdbc=org.springframework.jdbc.config.JdbcNamespaceHandler, http://www.springframework.org/schema/cache=org.springframework.cache.config.CacheNamespaceHandler, http://www.directwebremoting.org/schema/spring-dwr=org.directwebremoting.spring.DwrNamespaceHandler, http://www.springframework.org/schema/c=org.springframework.beans.factory.xml.SimpleConstructorNamespaceHandler, http://www.springframework.org/schema/tx=org.springframework.transaction.config.TxNamespaceHandler, http://www.springframework.org/schema/jms=org.springframework.jms.config.JmsNamespaceHandler, http://www.springframework.org/schema/task=org.springframework.scheduling.config.TaskNamespaceHandler, http://www.springframework.org/schema/lang=org.springframework.scripting.config.LangNamespaceHandler, http://www.springframework.org/schema/context=org.springframework.context.config.ContextNamespaceHandler}DEBUG - No XML 'id' specified - using 'dataSources' as bean name and [] as aliasesDEBUG - No XML 'id' specified - using 'sessionFactory' as bean name and [] as aliasesDEBUG - Loaded 3 bean definitions from location pattern [classpath:spring/applicationContext.xml]DEBUG - Looking for matching resources in directory tree [D:\File\Tomcat\Tomcat6.0\Tomcat 6.0\webapps\inventory\WEB-INF\classes\spring]DEBUG - Searching directory [D:\File\Tomcat\Tomcat6.0\Tomcat 6.0\webapps\inventory\WEB-INF\classes\spring] for files matching pattern [D:/File/Tomcat/Tomcat6.0/Tomcat 6.0/webapps/inventory/WEB-INF/classes/spring/applicationContext-*.xml]DEBUG - Resolved location pattern [classpath:spring/applicationContext-*.xml] to resources [file [D:\File\Tomcat\Tomcat6.0\Tomcat 6.0\webapps\inventory\WEB-INF\classes\spring\applicationContext-final.xml], file [D:\File\Tomcat\Tomcat6.0\Tomcat 6.0\webapps\inventory\WEB-INF\classes\spring\applicationContext-login.xml]]INFO - Loading XML bean definitions from file [D:\File\Tomcat\Tomcat6.0\Tomcat 6.0\webapps\inventory\WEB-INF\classes\spring\applicationContext-final.xml]DEBUG - Using JAXP provider [com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl]DEBUG - Found XML schema [http://www.springframework.org/schema/beans/spring-beans-3.2.xsd] in classpath: org/springframework/beans/factory/xml/spring-beans-3.2.xsdDEBUG - Loading bean definitionsINFO - Loading XML bean definitions from file [D:\File\Tomcat\Tomcat6.0\Tomcat 6.0\webapps\inventory\WEB-INF\classes\spring\applicationContext-login.xml]DEBUG - Using JAXP provider [com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl]DEBUG - Found XML schema [http://www.springframework.org/schema/beans/spring-beans-3.2.xsd] in classpath: org/springframework/beans/factory/xml/spring-beans-3.2.xsdDEBUG - Loading bean definitionsDEBUG - Loaded 4 bean definitions from location pattern [classpath:spring/applicationContext-*.xml]DEBUG - Bean factory for Root WebApplicationContext: org.springframework.beans.factory.support.DefaultListableBeanFactory@1ed7419b: defining beans [propertiesConfiguration,dataSources,sessionFactory,master,loginAction,masterBus,masterDao]; root of factory hierarchyDEBUG - Creating shared instance of singleton bean 'propertiesConfiguration'DEBUG - Creating instance of bean 'propertiesConfiguration'DEBUG - Eagerly caching bean 'propertiesConfiguration' to allow for resolving potential circular referencesDEBUG - Invoking afterPropertiesSet() on bean with name 'propertiesConfiguration'DEBUG - Finished creating instance of bean 'propertiesConfiguration'INFO - Loading properties file from class path resource [c3p0/mysql-inventory.properties]DEBUG - Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.DelegatingMessageSource@4cc28666]DEBUG - Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicationEventMulticaster@438060f4]DEBUG - Unable to locate ThemeSource with name 'themeSource': using default [org.springframework.ui.context.support.ResourceBundleThemeSource@70a58086]INFO - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1ed7419b: defining beans [propertiesConfiguration,dataSources,sessionFactory,master,loginAction,masterBus,masterDao]; root of factory hierarchyDEBUG - Returning cached instance of singleton bean 'propertiesConfiguration'DEBUG - Creating shared instance of singleton bean 'dataSources'DEBUG - Creating instance of bean 'dataSources'INFO - MLog clients using log4j logging.INFO - Initializing c3p0-0.9.2.1 [built 20-March-2013 11:16:28 +0000; debug? true; trace: 10]WARN - A C3P0Registry mbean is already registered. This probably means that an application using c3p0 was undeployed, but not all PooledDataSources were closed prior to undeployment. This may lead to resource leaks over time. Please take care to close all PooledDataSources.DEBUG - MBean: com.mchange.v2.c3p0:type=PooledDataSource,identityToken=1hge0yt8x1lkt0xi1qh007f|5d0be11c,name=1hge0yt8x1lkt0xi1qh007f|5d0be11c registered.DEBUG - MBean: com.mchange.v2.c3p0:type=PooledDataSource,identityToken=1hge0yt8x1lkt0xi1qh007f|5d0be11c,name=1hge0yt8x1lkt0xi1qh007f|5d0be11c unregistered, in order to be reregistered after update.DEBUG - MBean: com.mchange.v2.c3p0:type=PooledDataSource,identityToken=1hge0yt8x1lkt0xi1qh007f|5d0be11c,name=1hge0yt8x1lkt0xi1qh007f|5d0be11c registered.DEBUG - Eagerly caching bean 'dataSources' to allow for resolving potential circular referencesDEBUG - Initializing new StandardEnvironmentDEBUG - Adding [systemProperties] PropertySource with lowest search precedenceDEBUG - Adding [systemEnvironment] PropertySource with lowest search precedenceDEBUG - Initialized StandardEnvironment with PropertySources [systemProperties,systemEnvironment]DEBUG - Initializing new StandardEnvironmentDEBUG - Adding [systemProperties] PropertySource with lowest search precedenceDEBUG - Adding [systemEnvironment] PropertySource with lowest search precedenceDEBUG - Initialized StandardEnvironment with PropertySources [systemProperties,systemEnvironment]DEBUG - Initializing new StandardEnvironmentDEBUG - Adding [systemProperties] PropertySource with lowest search precedenceDEBUG - Adding [systemEnvironment] PropertySource with lowest search precedenceDEBUG - Initialized StandardEnvironment with PropertySources [systemProperties,systemEnvironment]DEBUG - Initializing new StandardEnvironmentDEBUG - Adding [systemProperties] PropertySource with lowest search precedenceDEBUG - Adding [systemEnvironment] PropertySource with lowest search precedenceDEBUG - Initialized StandardEnvironment with PropertySources [systemProperties,systemEnvironment]DEBUG - Initializing new StandardEnvironmentDEBUG - Adding [systemProperties] PropertySource with lowest search precedenceDEBUG - Adding [systemEnvironment] PropertySource with lowest search precedenceDEBUG - Initialized StandardEnvironment with PropertySources [systemProperties,systemEnvironment]DEBUG - Finished creating instance of bean 'dataSources'DEBUG - Creating shared instance of singleton bean 'sessionFactory'DEBUG - Creating instance of bean 'sessionFactory'DEBUG - Eagerly caching bean 'sessionFactory' to allow for resolving potential circular referencesINFO - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1ed7419b: defining beans [propertiesConfiguration,dataSources,sessionFactory,master,loginAction,masterBus,masterDao]; root of factory hierarchyERROR - Context initialization failedorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [spring/applicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: [Lorg/hibernate/engine/FilterDefinition;at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:532)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:608)at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389)at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294)at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)at org.apache.catalina.core.StandardContext.start(StandardContext.java:4336)at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1105)at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1203)at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1307)at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1571)at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1580)at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1560)at java.lang.Thread.run(Thread.java:722)Caused by: java.lang.NoClassDefFoundError: [Lorg/hibernate/engine/FilterDefinition;at java.lang.Class.getDeclaredMethods0(Native Method)at java.lang.Class.privateGetDeclaredMethods(Class.java:2451)at java.lang.Class.privateGetPublicMethods(Class.java:2571)at java.lang.Class.getMethods(Class.java:1429)at org.springframework.beans.ExtendedBeanInfoFactory.supports(ExtendedBeanInfoFactory.java:53)at org.springframework.beans.ExtendedBeanInfoFactory.getBeanInfo(ExtendedBeanInfoFactory.java:44)at org.springframework.beans.CachedIntrospectionResults.<init>(CachedIntrospectionResults.java:236)at org.springframework.beans.CachedIntrospectionResults.forClass(CachedIntrospectionResults.java:152)at org.springframework.beans.BeanWrapperImpl.getCachedIntrospectionResults(BeanWrapperImpl.java:321)at org.springframework.beans.BeanWrapperImpl.getPropertyDescriptorInternal(BeanWrapperImpl.java:351)at org.springframework.beans.BeanWrapperImpl.isWritableProperty(BeanWrapperImpl.java:427)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1395)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1134)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:522)... 22 moreCaused by: java.lang.ClassNotFoundException: org.hibernate.engine.FilterDefinitionat org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)... 36 more十月 19, 2013 3:00:20 下午 org.apache.catalina.core.StandardContext listenerStartSEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [spring/applicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: [Lorg/hibernate/engine/FilterDefinition;at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:532)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:608)at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389)at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294)at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)at org.apache.catalina.core.StandardContext.start(StandardContext.java:4336)at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1105)at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1203)at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1307)at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1571)at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1580)at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1560)at java.lang.Thread.run(Thread.java:722)Caused by: java.lang.NoClassDefFoundError: [Lorg/hibernate/engine/FilterDefinition;at java.lang.Class.getDeclaredMethods0(Native Method)at java.lang.Class.privateGetDeclaredMethods(Class.java:2451)at java.lang.Class.privateGetPublicMethods(Class.java:2571)at java.lang.Class.getMethods(Class.java:1429)at org.springframework.beans.ExtendedBeanInfoFactory.supports(ExtendedBeanInfoFactory.java:53)at org.springframework.beans.ExtendedBeanInfoFactory.getBeanInfo(ExtendedBeanInfoFactory.java:44)at org.springframework.beans.CachedIntrospectionResults.<init>(CachedIntrospectionResults.java:236)at org.springframework.beans.CachedIntrospectionResults.forClass(CachedIntrospectionResults.java:152)at org.springframework.beans.BeanWrapperImpl.getCachedIntrospectionResults(BeanWrapperImpl.java:321)at org.springframework.beans.BeanWrapperImpl.getPropertyDescriptorInternal(BeanWrapperImpl.java:351)at org.springframework.beans.BeanWrapperImpl.isWritableProperty(BeanWrapperImpl.java:427)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1395)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1134)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:522)... 22 moreCaused by: java.lang.ClassNotFoundException: org.hibernate.engine.FilterDefinitionat org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)... 36 more十月 19, 2013 3:00:20 下午 org.apache.catalina.core.StandardContext startSEVERE: Error listenerStart十月 19, 2013 3:00:20 下午 org.apache.catalina.core.StandardContext startSEVERE: Context [/inventory] startup failed due to previous errors十月 19, 2013 3:00:20 下午 org.apache.catalina.core.ApplicationContext logINFO: Closing Spring root WebApplicationContext
这是在配置hibernate4+spring3时报的错,从错误上看是在applicationContext.xml初始化时找不到类
Lorg/hibernate/engine/FilterDefinition
原因:SessionFactory的加载类原先为hibernate3的,只要把它改成org.springframework.orm.hibernate4.LocalSessionFactoryBean就行了


原创粉丝点击