2 baolijuncool baolijuncool 于 2014.03.17 09:55 提问

Spring mvc+mybatis+maven的项目tomcat启动的时候,控制台不输出xml文件的加载信息

2014-3-17 9:52:18 org.apache.catalina.core.AprLifecycleListener init
信息: Loaded APR based Apache Tomcat Native library 1.1.24 using APR version 1.4.6.
2014-3-17 9:52:18 org.apache.catalina.core.AprLifecycleListener init
信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
2014-3-17 9:52:18 org.apache.catalina.core.AprLifecycleListener initializeSSL
信息: OpenSSL successfully initialized (OpenSSL 1.0.1c 10 May 2012)
2014-3-17 9:52:19 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-apr-8080"]
2014-3-17 9:52:19 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-apr-8009"]
2014-3-17 9:52:19 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 1944 ms
2014-3-17 9:52:19 org.apache.catalina.core.StandardService startInternal
信息: Starting service Catalina
2014-3-17 9:52:19 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/7.0.32
2014-3-17 9:52:19 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\apache-tomcat-7.0.32\webapps\sso
2014-3-17 9:52:23 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring root WebApplicationContext
log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).

log4j:WARN Please initialize the log4j system properly.
09:52:25.000 [localhost-startStop-1] DEBUG org.apache.ibatis.logging.LogFactory - Logging initialized using 'org.apache.ibatis.logging.slf4j.Slf4jImpl' adapter.
09:52:26.250 [localhost-startStop-1] DEBUG o.m.spring.SqlSessionFactoryBean - Property 'configLocation' not specified, using default MyBatis Configuration
09:52:26.343 [localhost-startStop-1] DEBUG o.m.spring.SqlSessionFactoryBean - Property 'mapperLocations' was not specified or no matching resources found
09:52:26.734 [localhost-startStop-1] DEBUG net.sf.ehcache.CacheManager - Creating new CacheManager with default config
09:52:26.750 [localhost-startStop-1] DEBUG net.sf.ehcache.CacheManager - Configuring ehcache from classpath.
09:52:26.750 [localhost-startStop-1] WARN n.s.e.config.ConfigurationFactory - No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/D:/apache-tomcat-7.0.32/webapps/sso/WEB-INF/lib/ehcache-core-2.4.3.jar!/ehcache-failsafe.xml
09:52:26.750 [localhost-startStop-1] DEBUG n.s.e.config.ConfigurationFactory - Configuring ehcache from URL: jar:file:/D:/apache-tomcat-7.0.32/webapps/sso/WEB-INF/lib/ehcache-core-2.4.3.jar!/ehcache-failsafe.xml
09:52:26.750 [localhost-startStop-1] DEBUG n.s.e.config.ConfigurationFactory - Configuring ehcache from InputStream
09:52:26.781 [localhost-startStop-1] DEBUG net.sf.ehcache.config.BeanHandler - Ignoring ehcache attribute xmlns:xsi
09:52:26.781 [localhost-startStop-1] DEBUG net.sf.ehcache.config.BeanHandler - Ignoring ehcache attribute xsi:noNamespaceSchemaLocation
09:52:26.781 [localhost-startStop-1] DEBUG n.s.e.config.DiskStoreConfiguration - Disk Store Path: D:\apache-tomcat-7.0.32\temp
09:52:26.843 [localhost-startStop-1] DEBUG net.sf.ehcache.util.PropertyUtil - propertiesString is null.
09:52:26.843 [localhost-startStop-1] DEBUG n.s.e.config.ConfigurationHelper - No CacheManagerEventListenerFactory class specified. Skipping...
09:52:26.921 [localhost-startStop-1] DEBUG net.sf.ehcache.Cache - No BootstrapCacheLoaderFactory class specified. Skipping...
09:52:26.921 [localhost-startStop-1] DEBUG net.sf.ehcache.Cache - CacheWriter factory not configured. Skipping...
09:52:26.921 [localhost-startStop-1] DEBUG n.s.e.config.ConfigurationHelper - No CacheExceptionHandlerFactory class specified. Skipping...
09:52:26.968 [localhost-startStop-1] DEBUG n.s.e.s.c.f.DiskOverflowStorageFactory - Deleting data file com.ustl.gd.droit.daoImpl.DroitDao.data
09:52:27.000 [localhost-startStop-1] DEBUG net.sf.ehcache.Cache - Initialised cache: com.ustl.gd.droit.daoImpl.DroitDao
09:52:27.000 [localhost-startStop-1] DEBUG n.s.e.config.ConfigurationHelper - CacheDecoratorFactory not configured for defaultCache. Skipping for 'com.ustl.gd.droit.daoImpl.DroitDao'.
09:52:27.109 [localhost-startStop-1] DEBUG n.s.e.s.c.f.DiskOverflowStorageFactory - Deleting data file com.ustl.gd.rtd.daoImpl.RtdDao.data
09:52:27.109 [localhost-startStop-1] DEBUG net.sf.ehcache.Cache - Initialised cache: com.ustl.gd.rtd.daoImpl.RtdDao
09:52:27.109 [localhost-startStop-1] DEBUG n.s.e.config.ConfigurationHelper - CacheDecoratorFactory not configured for defaultCache. Skipping for 'com.ustl.gd.rtd.daoImpl.RtdDao'.
09:52:27.125 [localhost-startStop-1] DEBUG n.s.e.s.c.f.DiskOverflowStorageFactory - Deleting data file com.ustl.gd.utr.daoImpl.UtrDao.data
09:52:27.125 [localhost-startStop-1] DEBUG net.sf.ehcache.Cache - Initialised cache: com.ustl.gd.utr.daoImpl.UtrDao
09:52:27.125 [localhost-startStop-1] DEBUG n.s.e.config.ConfigurationHelper - CacheDecoratorFactory not configured for defaultCache. Skipping for 'com.ustl.gd.utr.daoImpl.UtrDao'.
09:52:27.156 [localhost-startStop-1] DEBUG n.s.e.s.c.f.DiskOverflowStorageFactory - Deleting data file com.ustl.gd.user.daoImpl.UserDao.data
09:52:27.156 [localhost-startStop-1] DEBUG net.sf.ehcache.Cache - Initialised cache: com.ustl.gd.user.daoImpl.UserDao
09:52:27.156 [localhost-startStop-1] DEBUG n.s.e.config.ConfigurationHelper - CacheDecoratorFactory not configured for defaultCache. Skipping for 'com.ustl.gd.user.daoImpl.UserDao'.
09:52:27.171 [localhost-startStop-1] DEBUG n.s.e.s.c.f.DiskOverflowStorageFactory - Deleting data file com.ustl.gd.role.daoImpl.RoleDao.data
09:52:27.171 [localhost-startStop-1] DEBUG net.sf.ehcache.Cache - Initialised cache: com.ustl.gd.role.daoImpl.RoleDao
09:52:27.171 [localhost-startStop-1] DEBUG n.s.e.config.ConfigurationHelper - CacheDecoratorFactory not configured for defaultCache. Skipping for 'com.ustl.gd.role.daoImpl.RoleDao'.
2014-3-17 9:52:27 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring FrameworkServlet 'spring-mvc'
09:52:27.937 [net.sf.ehcache.CacheManager@30a895] DEBUG net.sf.ehcache.util.UpdateChecker - Checking for update...
2014-3-17 9:52:29 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-apr-8080"]
2014-3-17 9:52:29 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-apr-8009"]
2014-3-17 9:52:29 org.apache.catalina.startup.Catalina start
信息: Server startup in 9622 ms
09:52:31.234 [net.sf.ehcache.CacheManager@30a895] DEBUG net.sf.ehcache.util.UpdateChecker - Update check failed: java.net.SocketTimeoutException: connect timed out

1个回答

baolijuncool
baolijuncool   2014.03.17 11:09

没人回答啊 !我找到原因了 ,因为我引入了jxl.jar 但是为什么引入这个包就出现这个错误
log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).

log4j:WARN Please initialize the log4j system properly.

不引入这个包就能正常输出控制台

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!