在eclipse里面搭建环境,启动服务的时候出现错误
如题所示,环境搭好之后,在外面单独的用tomcat的start.bat文件启动服务是没有问题的,但是在eclipse里面启动tomcat就会出现下面的问题:
系统启动的时间是:Sat Dec 20 23:34:31 CST 2014
2014-12-20 23:34:33,320 ERROR org.hibernate.util.JDBCExceptionReporter:logExceptions:72 - Cannot load JDBC driver class 'oracle.jdbc.driver.OracleDriver'
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/F:/cn15mccoabak/WEB-INF/lib/slf4j-jdk14-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/F:/cn15mccoabak/WEB-INF/lib/slf4j-log4j12-1.5.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
2014-12-20 23:34:33 net.sf.ehcache.config.ConfigurationFactory parseConfiguration
警告: No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/F:/cn15mccoabak/WEB-INF/lib/ehcache-core-2.2.0.jar!/ehcache-failsafe.xml
2014-12-20 23:34:34,719 ERROR com.opensymphony.oscache.base.Config:loadProps:148 - Error reading /oscache.properties in CacheAdministrator.loadProps() java.lang.NullPointerException
2014-12-20 23:34:34,719 ERROR com.opensymphony.oscache.base.Config:loadProps:149 - Ensure the /oscache.properties file is readable and in your classpath.
2014-12-20 23:34:34 net.sf.ehcache.util.UpdateChecker doCheck
信息: New update(s) found: 2.4.7 [http://www.terracotta.org/confluence/display/release/Release+Notes+Ehcache+Core+2.4]. Please check http://ehcache.org for the latest version.
2014-12-20 23:34:35 net.sf.ehcache.CacheManager detectAndFixDiskStorePathConflict
警告: Creating a new instance of CacheManager using the diskStorePath "F:\tomcat-15yoa\temp" which is already used by an existing CacheManager.
The source of the configuration was net.sf.ehcache.config.generator.ConfigurationSource$URLConfigurationSource@63bbad6f.
The diskStore path for this CacheManager will be set to F:\tomcat-15yoa\temp\ehcache_auto_created_1419089675798.
To avoid this warning consider using the CacheManager factory methods to create a singleton CacheManager or specifying a separate ehcache configuration (ehcache.xml) for each CacheManager instance.
2014-12-20 23:34:37 net.sf.ehcache.util.UpdateChecker doCheck
信息: New update(s) found: 2.4.7 [http://www.terracotta.org/confluence/display/release/Release+Notes+Ehcache+Core+2.4]. Please check http://ehcache.org for the latest version.
2014-12-20 23:34:41,883 ERROR org.springframework.web.context.ContextLoader:initWebApplicationContext:177 - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlMapClientSupportOA' defined in class path resource
而且上面显示的找不到oscache.properties这个文件,但是在WEB-INF/classes下面是有这个文件的。
在别的电脑上面就是好的环境,弄到另外一台电脑上面就出现了这个问题。