问题描述
如题所示,环境搭好之后,在外面单独的用tomcat的start.bat文件启动服务是没有问题的,但是在eclipse里面启动tomcat就会出现下面的问题:系统启动的时间是:SatDec2023:34:31CST20142014-12-2023:34:33,320ERRORorg.hibernate.util.JDBCExceptionReporter:logExceptions:72-CannotloadJDBCdriverclass'oracle.jdbc.driver.OracleDriver'SLF4J:ClasspathcontainsmultipleSLF4Jbindings.SLF4J:Foundbindingin[jar:file:/F:/cn15mccoabak/WEB-INF/lib/slf4j-jdk14-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]SLF4J:Foundbindingin[jar:file:/F:/cn15mccoabak/WEB-INF/lib/slf4j-log4j12-1.5.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]SLF4J:Seehttp://www.slf4j.org/codes.html#multiple_bindingsforanexplanation.2014-12-2023:34:33net.sf.ehcache.config.ConfigurationFactoryparseConfiguration警告:Noconfigurationfound.Configuringehcachefromehcache-failsafe.xmlfoundintheclasspath:jar:file:/F:/cn15mccoabak/WEB-INF/lib/ehcache-core-2.2.0.jar!/ehcache-failsafe.xml2014-12-2023:34:34,719ERRORcom.opensymphony.oscache.base.Config:loadProps:148-Errorreading/oscache.propertiesinCacheAdministrator.loadProps()java.lang.NullPointerException2014-12-2023:34:34,719ERRORcom.opensymphony.oscache.base.Config:loadProps:149-Ensurethe/oscache.propertiesfileisreadableandinyourclasspath.2014-12-2023:34:34net.sf.ehcache.util.UpdateCheckerdoCheck信息:Newupdate(s)found:2.4.7[http://www.terracotta.org/confluence/display/release/Release+Notes+Ehcache+Core+2.4].Pleasecheckhttp://ehcache.orgforthelatestversion.2014-12-2023:34:35net.sf.ehcache.CacheManagerdetectAndFixDiskStorePathConflict警告:CreatinganewinstanceofCacheManagerusingthediskStorePath"F:tomcat-15yoatemp"whichisalreadyusedbyanexistingCacheManager.Thesourceoftheconfigurationwasnet.sf.ehcache.config.generator.ConfigurationSource$URLConfigurationSource@63bbad6f.ThediskStorepathforthisCacheManagerwillbesettoF:tomcat-15yoatempehcache_auto_created_1419089675798.ToavoidthiswarningconsiderusingtheCacheManagerfactorymethodstocreateasingletonCacheManagerorspecifyingaseparateehcacheconfiguration(ehcache.xml)foreachCacheManagerinstance.2014-12-2023:34:37net.sf.ehcache.util.UpdateCheckerdoCheck信息:Newupdate(s)found:2.4.7[http://www.terracotta.org/confluence/display/release/Release+Notes+Ehcache+Core+2.4].Pleasecheckhttp://ehcache.orgforthelatestversion.2014-12-2023:34:41,883ERRORorg.springframework.web.context.ContextLoader:initWebApplicationContext:177-Contextinitializationfailedorg.springframework.beans.factory.BeanCreationException:Errorcreatingbeanwithname'sqlMapClientSupportOA'definedinclasspathresource而且上面显示的找不到oscache.properties这个文件,但是在WEB-INF/classes下面是有这个文件的。在别的电脑上面就是好的环境,弄到另外一台电脑上面就出现了这个问题。