在eclipse里面搭建环境,启动服务的时候出现错误

q466575142 2014-12-20 11:50:40
如题所示,环境搭好之后,在外面单独的用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下面是有这个文件的。
在别的电脑上面就是好的环境,弄到另外一台电脑上面就出现了这个问题。
...全文
463 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
harrypaul 2017-03-11
  • 打赏
  • 举报
回复
ERROR [main] [com.opensymphony.oscache.base.Config] Config.loadProps(148) | Error reading /oscache.properties in CacheAdministrator.loadProps() java.lang.NullPointerException
ERROR [main] [com.opensymphony.oscache.base.Config] Config.loadProps(149) | Ensure the /oscache.properties file is readable and in your classpath.
INFO [main] [com.opensymphony.oscache.general.GeneralCacheAdministrator] GeneralCacheAdministrator.<init>(98) | Constructed GeneralCacheAdministrator()
INFO [main] [com.opensymphony.oscache.general.GeneralCacheAdministrator] GeneralCacheAdministrator.createCache(301) | Creating new cache
遇到一样的问题,请问一下楼主是怎么解决的?
乐hui 2016-12-05
  • 打赏
  • 举报
回复
楼主怎么解决的,我也遇到了,和你一模一样。用start.bat可以启动,在eclipse里面启动tomcat就一直卡着,无法到达net.sf.ehcache.config.ConfigurationFactory parseConfiguration这一行

58,454

社区成员

发帖
与我相关
我的任务
社区描述
Java Eclipse
社区管理员
  • Eclipse
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧