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币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!
其他相关推荐
项目启动时,控制台不停的输出log日志。
项目启动时不停的打印日志,却没有提示哪里错了,通过各种排查原来是 这里的String 后面加上了一个空格,所以在不停的打印日志 一般出现这样的问题,都是配置mybatis 配置文件出现了问题,仔细对照查找问题的关键点。
mybatis启动时无限循环刷日志,初步定为是sql有问题
最近在项目中使用mybatis与spring集成,由于项目使用maven分模块打包,经常遇到mybatis mapper少配置子模块或者maven pom中忘记引用子模块导致的mybatis加载不到dao或mapper启动不起来,直接卡死。其实这是mybatis一个bug,在sqlSessionFactory加载的时候没有找到mapper或者dao,mybatis没有把异常抛出。 解决方法就
mybatis 一直加载xml,找到错误的解决方法
我们在写springmvc+mybatis项目,启动项目的时候,mapper配置文件一直刷,一直加载。。。。。 对于我们伟大的程序猿来说这并不可怕,可怕的是没有错误打印出来。。。。。完全不知道如何下手啊,今天终于找到了一种解决方法 找到org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory 类,在
使用tomcat在eclipse里面部署springmvc的mvn项目加载不到jar的问题
关于eclipse里面使用tomcat部署springmvc的maven项目的异常 java.lang.ClassNotFoundException:org.springframework.web.context.ContextLoaderListener解决办法
tomcat启动的时候,没加载xml配置文件
tomcat启动项目的时候,发现没加载xml配置文件,解决办法是:选中conf文件夹右键选择“Build Path”-->"use as Source Folder"即可,重新部署下项目配置文件即可在classes中出现。
Spring mvc + mybatis web项目当系统启动时运行某方法查询数据库内容
有些系统为了运维方便时需要启动时就加载一些数据库信息的,用监听器和拦截器要重新写JDBC连接数据库,如果是springmvc就显得多余了,下面给大家举例,实现用Spring管理启动加载。 import java.util.List; import javax.annotation.Resource; import javax.servlet.ServletContext; import or
关于spring mvc 循环加载mapper.xml 文件
一个spring mvc 的项目,启动时发现一直 循环加载mapper.xml 文件, 后来发现mapper.xml 文件中,resultMap 的type 属性设置的类不对,所以一直报错,导致spring ,一直循环加截 mapper.xml文件
Spring mvc + mybatis web项目当系统启动时自动调用某个方法
1、添加WebContextListener.java2、文件内容package com.pt.controller.listener; import javax.servlet.ServletContext; import org.springframework.beans.factory.InitializingBean; import org.springframework.beans....
Intellij Idea 在spring-mybatis下因不编译resources配置文件,无法启动tomcat的问题
在maven项目的pom.xml配置文件里添加 resources> resource> directory>src/main/javadirectory> includes> include>**/*.xmlinclude> includes> resource> resource> directo
MyEclipse在启动了诸如Tomcat等web服务后,控制台信息不显示的问题
使用MyEclispe开发Web项目时,一般先配置好Web服务器,然后部署程序到web服务器,再启动web服务器。 理论上web服务器启动时,在console控制台会显示web服务器启动的日志信息。 但是,有的时候我们会发现,控制台却不显示任何内容。 这个奇怪的问题的解决方法是: 此时打开你使用的web服务器管理设置界面。 MyEclipse界面中为: 工具栏"Run/Stop/Re