在网上找了问题说是jar包中可能含有log4j.xml,
但是我搜索了之后发现没有。
实在无解,特来请教。
这是日志部分输出
1:41:24.044 [main] DEBUG c.o.x.c.p.XmlConfigurationProvider - Loaded [BUILDER] {PackageConfig Name:action namespace:/ parents:[{PackageConfig Name:exceptionPkg namespace: parents:[{PackageConfig Name:struts-default namespace: parents:[]}]}]}
11:41:24.059 [main] DEBUG o.s.b.f.s.DefaultListableBeanFactory - Returning cached instance of singleton bean 'org.springframework.security.methodSecurityMetadataSourceAdvisor'
11:41:24.059 [main] DEBUG o.s.b.f.s.DefaultListableBeanFactory - Returning cached instance of singleton bean 'org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0'
11:41:24.059 [main] DEBUG o.s.b.f.s.DefaultListableBeanFactory - Returning cached instance of singleton bean 'org.springframework.security.methodSecurityMetadataSourceAdvisor'
11:41:24.059 [main] DEBUG o.s.b.f.s.DefaultListableBeanFactory - Returning cached instance of singleton bean 'org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0'
11:41:24.075 [main] DEBUG c.o.x.c.p.XmlConfigurationProvider - Loaded //loginAction in 'action' package:{ActionConfig loginAction (loginAction) - action - file:/D:/tools/apache-tomcat-6.0.36/webapps/ssh/WEB-INF/classes/struts.xml:17:50}
11:41:24.949 [main] DEBUG o.a.s.c.PackageBasedActionConfigBuilder - Processing class [com.yindejin.system.action.ResourceAction] in package [com.yindejin.system.action]
11:41:24.964 [main] DEBUG o.a.s.c.PackageBasedActionConfigBuilder - Creating action config for class [class com.yindejin.system.action.ResourceAction], name [resource] and package name [com.yindejin.system.action#convention-default#] in namespace []
11:41:24.981 [main] DEBUG o.a.s.c.PackageBasedActionConfigBuilder - Processing class [com.yindejin.system.action.UserAction] in package [com.yindejin.system.action]
11:41:24.981 [main] DEBUG o.a.s.c.PackageBasedActionConfigBuilder - Creating action config for class [class com.yindejin.system.action.UserAction], name [user] and package name [com.yindejin.system.action#convention-default#] in namespace []
11:41:24.981 [main] DEBUG o.a.s.c.PackageBasedActionConfigBuilder - Processing class [com.yindejin.system.action.LoginAction] in package [com.yindejin.system.action]
11:41:24.981 [main] DEBUG o.a.s.c.PackageBasedActionConfigBuilder - Creating action config for class [class com.yindejin.system.action.LoginAction], name [login] and package name [com.yindejin.system.action#convention-default#] in namespace []
11:41:24.981 [main] DEBUG o.a.s.c.PackageBasedActionConfigBuilder - Processing class [com.yindejin.upload.action.FileUploadAction] in package [com.yindejin.upload.action]
11:41:24.981 [main] DEBUG o.a.s.c.PackageBasedActionConfigBuilder - Creating action config for class [class com.yindejin.upload.action.FileUploadAction], name [file-upload] and package name [com.yindejin.upload.action#convention-default#] in namespace []
11:41:24.996 [main] DEBUG c.o.x.config.impl.AbstractMatcher - Compiling pattern '*Action'
11:41:24.996 [main] DEBUG c.o.x.config.impl.AbstractMatcher - Compiling pattern '*UserAction'
11:41:25.028 [main] DEBUG o.s.o.h.s.OpenSessionInViewFilter - Initializing filter 'OpenSessionInViewFilter'
11:41:25.043 [main] DEBUG org.springframework.beans.BeanUtils - No property editor [org.hibernate.FlushModeEditor] found for type org.hibernate.FlushMode according to 'Editor' suffix convention
11:41:25.043 [main] DEBUG o.s.o.h.s.OpenSessionInViewFilter - Filter 'OpenSessionInViewFilter' configured successfully
------------------log4j--启动----------
log4j:WARN No such property [conversionPattern] in com.yindejin.util.MailEvaluator.
DEBUG: setDebug: JavaMail version 1.4ea
java.io.FileInputStream@1e9c5f6/log4j.properties
2013-7-2 11:41:25 org.apache.coyote.http11.Http11AprProtocol start
信息: Starting Coyote HTTP/1.1 on http-8080
2013-7-2 11:41:25 org.apache.coyote.ajp.AjpAprProtocol start
信息: Starting Coyote AJP/1.3 on ajp-8009
2013-7-2 11:41:25 org.apache.catalina.startup.Catalina start
信息: Server startup in 55145 ms
这是我的log4j文件
log4j.rootLogger=INFO,CONSOLE
log4j.logger.org.springframework.security=INFO
log4j.logger.org.hibernate = INFO
##log4j.addivity.org.apache=true
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
log4j.appender.Threshold=INFO
log4j.appender.CONSOLE.Target=System.out
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
log4j.appender.CONSOLE.layout.ConversionPattern=[ssh] %d - %c -%-4r [%t] %-5p %c %x - %m%n
6 个解决方案
#1
前面那一堆是启动的时候web服务器抛出来的信息吧
#2
log4j.logger.org.springframework.security=INFO
log4j.logger.org.hibernate = INFO
把这两行注释掉
log4j.logger.org.hibernate = INFO
把这两行注释掉
#3
是的
#4
我试了下,没有起作用
#5
问题解决,原因是被jar包影响,
jcl-over-slf4j-1.6.1.jar包影响去除了就好了
jcl-over-slf4j-1.6.1.jar包影响去除了就好了
#6
同样 遇到这个这个问题 ,按照楼上的说法,将jcl-over-slf4j-1.6.1.jar包删除,但是没有出现反应
#1
前面那一堆是启动的时候web服务器抛出来的信息吧
#2
log4j.logger.org.springframework.security=INFO
log4j.logger.org.hibernate = INFO
把这两行注释掉
log4j.logger.org.hibernate = INFO
把这两行注释掉
#3
是的
#4
我试了下,没有起作用
#5
问题解决,原因是被jar包影响,
jcl-over-slf4j-1.6.1.jar包影响去除了就好了
jcl-over-slf4j-1.6.1.jar包影响去除了就好了
#6
同样 遇到这个这个问题 ,按照楼上的说法,将jcl-over-slf4j-1.6.1.jar包删除,但是没有出现反应