问题描述
为什么会报这样的错误呢,以前都没事,今天好奇怪配的SSH2015-2-2412:56:28org.apache.catalina.core.AprLifecycleListenerinit信息:TheApacheTomcatNativelibrarywhichallowsoptimalperformanceinproductionenvironmentswasnotfoundonthejava.library.path:E:Commonbinarycom.sun.java.jdk.win32.x86_1.6.0.013bin;E:Commonpluginscom.genuitec.eclipse.easie.tomcat.myeclipse_8.5.0.me201003121946tomcatbin2015-2-2412:56:28org.apache.coyote.http11.Http11Protocolinit信息:InitializingCoyoteHTTP/1.1onhttp-80802015-2-2412:56:28org.apache.catalina.startup.Catalinaload信息:Initializationprocessedin346ms2015-2-2412:56:28org.apache.catalina.core.StandardServicestart信息:StartingserviceCatalina2015-2-2412:56:28org.apache.catalina.core.StandardEnginestart信息:StartingServletEngine:ApacheTomcat/6.0.132015-2-2412:56:29org.apache.catalina.core.ApplicationContextlog信息:InitializingSpringrootWebApplicationContextlog4j:WARNNoappenderscouldbefoundforlogger(org.springframework.web.context.ContextLoader).log4j:WARNPleaseinitializethelog4jsystemproperly.log4j:WARNNoappenderscouldbefoundforlogger(org.springframework.core.CollectionFactory).log4j:WARNPleaseinitializethelog4jsystemproperly.2015-2-2412:56:32org.apache.catalina.core.ApplicationContextlog信息:InitializingSpringrootWebApplicationContext2015-2-2412:57:03org.apache.catalina.core.StandardContextlistenerStart严重:Exceptionsendingcontextinitializedeventtolistenerinstanceofclassorg.springframework.web.context.ContextLoaderListenerorg.springframework.beans.factory.BeanCreationException:Errorcreatingbeanwithname'sessionFactory'definedinclasspathresource[beans.xml]:Invocationofinitmethodfailed;nestedexceptionisorg.hibernate.HibernateException:'hibernate.dialect'mustbesetwhennoConnectionavailableatorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1337)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)atjava.security.AccessController.doPrivileged(NativeMethod)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)atorg.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)atorg.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221)atorg.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)atorg.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)atorg.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)atorg.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)atorg.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)atorg.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)atorg.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)atorg.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)atorg.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)atorg.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)atorg.apache.catalina.core.StandardContext.start(StandardContext.java:4334)atorg.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)atorg.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)atorg.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)atorg.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)atorg.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)atorg.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)atorg.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)atorg.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)atorg.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)atorg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)atorg.apache.catalina.core.StandardHost.start(StandardHost.java:719)atorg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)atorg.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)atorg.apache.catalina.core.StandardService.start(StandardService.java:516)atorg.apache.catalina.core.StandardServer.start(StandardServer.java:710)atorg.apache.catalina.startup.Catalina.start(Catalina.java:566)atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)atjava.lang.reflect.Method.invoke(Method.java:597)atorg.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)atorg.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)Causedby:org.hibernate.HibernateException:'hibernate.dialect'mustbesetwhennoConnectionavailableatorg.hibernate.dialect.resolver.DialectFactory.buildDialect(DialectFactory.java:107)atorg.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:138)atorg.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2163)atorg.hibernate.cfg.Configuration.buildSettings(Configuration.java:2159)atorg.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1383)atorg.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:814)atorg.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:732)atorg.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1368)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1334)...39more2015-2-2412:57:03org.apache.catalina.core.StandardContextstart严重:ErrorlistenerStart2015-2-2412:57:03org.apache.catalina.core.StandardContextstart严重:Context[/Test20150223]startupfailedduetopreviouserrors2015-2-2412:57:03org.apache.catalina.core.ApplicationContextlog信息:ClosingSpringrootWebApplicationContextlog4j:ERRORLogMananger.repositorySelectorwasnulllikelyduetoerrorinclassreloading,usingNOPLoggerRepository.2015-2-2412:57:03org.apache.coyote.http11.Http11Protocolstart信息:StartingCoyoteHTTP/1.1onhttp-80802015-2-2412:57:03org.apache.jk.common.ChannelSocketinit信息:JK:ajp13listeningon/0.0.0.0:80092015-2-2412:57:03org.apache.jk.server.JkMainstart信息:JkrunningID=0time=0/16config=null2015-2-2412:57:03org.apache.catalina.startup.Catalinastart信息:Serverstartupin34874ms
解决方案
解决方案二:
我晕我换了一个mysql的jar包,5.1.7的版本,然后给driver也更换成5.1.7的driver就好了..................................................................................