Struts2和Tomcat启动问题

J2EE 码拜 9年前 (2015-04-19) 761次浏览 0个评论
 

小弟自学java不久,最近在学struts2,建了一个strust2的web项目,用的是tomcat7.0,在启动服务器的时候控制台有很多信息,不知道怎么可以去掉这些信息(貌似是一个日志相关的信息),具体的信息如下:

十二月 19, 2012 1:39:10 下午 org.apache.catalina.core.AprLifecycleListener init
信息: Loaded APR based Apache Tomcat Native library 1.1.24 using APR version 1.4.6.
十二月 19, 2012 1:39:10 下午 org.apache.catalina.core.AprLifecycleListener init
信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
十二月 19, 2012 1:39:11 下午 org.apache.catalina.core.AprLifecycleListener initializeSSL
信息: OpenSSL successfully initialized (OpenSSL 1.0.1c 10 May 2012)
十二月 19, 2012 1:39:12 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-apr-80"]
十二月 19, 2012 1:39:12 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-apr-8009"]
十二月 19, 2012 1:39:12 下午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 2203 ms
十二月 19, 2012 1:39:12 下午 org.apache.catalina.core.StandardService startInternal
信息: Starting service Catalina
十二月 19, 2012 1:39:12 下午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/7.0.30
十二月 19, 2012 1:39:14 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts-default.xml]
十二月 19, 2012 1:39:14 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Unable to locate configuration files of the name struts-plugin.xml, skipping
十二月 19, 2012 1:39:14 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts-plugin.xml]
十二月 19, 2012 1:39:14 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts.xml]
十二月 19, 2012 1:39:14 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.ObjectFactory)
十二月 19, 2012 1:39:14 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.FileManagerFactory)
十二月 19, 2012 1:39:14 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.XWorkConverter)
十二月 19, 2012 1:39:14 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.TextProvider)
十二月 19, 2012 1:39:14 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.LocaleProvider)
十二月 19, 2012 1:39:14 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.ActionProxyFactory)
十二月 19, 2012 1:39:14 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.ObjectTypeDeterminer)
十二月 19, 2012 1:39:14 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Choosing bean (struts) for (org.apache.struts2.dispatcher.mapper.ActionMapper)
十二月 19, 2012 1:39:14 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Choosing bean (jakarta) for (org.apache.struts2.dispatcher.multipart.MultiPartRequest)
十二月 19, 2012 1:39:14 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Choosing bean (struts) for (org.apache.struts2.views.freemarker.FreemarkerManager)
十二月 19, 2012 1:39:14 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Choosing bean (struts) for (org.apache.struts2.components.UrlRenderer)
十二月 19, 2012 1:39:14 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.validator.ActionValidatorManager)
十二月 19, 2012 1:39:14 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.util.ValueStackFactory)
十二月 19, 2012 1:39:14 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.util.reflection.ReflectionProvider)
十二月 19, 2012 1:39:14 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.util.reflection.ReflectionContextFactory)
十二月 19, 2012 1:39:14 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.util.PatternMatcher)
十二月 19, 2012 1:39:14 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Choosing bean (struts) for (org.apache.struts2.dispatcher.StaticContentLoader)
十二月 19, 2012 1:39:14 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.UnknownHandlerManager)
十二月 19, 2012 1:39:14 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Choosing bean (struts) for (org.apache.struts2.views.util.UrlHelper)
十二月 19, 2012 1:39:14 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.CollectionConverter)
十二月 19, 2012 1:39:14 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.ArrayConverter)
十二月 19, 2012 1:39:14 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.DateConverter)
十二月 19, 2012 1:39:14 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.NumberConverter)
十二月 19, 2012 1:39:14 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.StringConverter)
十二月 19, 2012 1:39:14 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\tomcat7.0.30\webapps\docs
十二月 19, 2012 1:39:14 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\tomcat7.0.30\webapps\examples
十二月 19, 2012 1:39:15 下午 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextInitialized()
十二月 19, 2012 1:39:15 下午 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextInitialized()
十二月 19, 2012 1:39:15 下午 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: attributeAdded(""org.apache.jasper.compiler.TldLocationsCache"", ""org.apache.jasper.compiler.TldLocationsCache@266642e1"")
十二月 19, 2012 1:39:15 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\tomcat7.0.30\webapps\host-manager
十二月 19, 2012 1:39:15 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\tomcat7.0.30\webapps\manager
十二月 19, 2012 1:39:15 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\tomcat7.0.30\webapps\Spring_Registration_1
十二月 19, 2012 1:39:15 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\tomcat7.0.30\webapps\Spring_Registration_6
十二月 19, 2012 1:39:17 下午 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring root WebApplicationContext
十二月 19, 2012 1:39:22 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\tomcat7.0.30\webapps\Spring_Registration_7
十二月 19, 2012 1:39:23 下午 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring root WebApplicationContext
十二月 19, 2012 1:39:28 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\tomcat7.0.30\webapps\Struts2.3.7
十二月 19, 2012 1:39:28 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts-default.xml]
十二月 19, 2012 1:39:29 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Unable to locate configuration files of the name struts-plugin.xml, skipping
十二月 19, 2012 1:39:29 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts-plugin.xml]
十二月 19, 2012 1:39:29 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts.xml]
十二月 19, 2012 1:39:29 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.ObjectFactory)
十二月 19, 2012 1:39:29 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.FileManagerFactory)
十二月 19, 2012 1:39:29 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.XWorkConverter)
十二月 19, 2012 1:39:29 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.TextProvider)
十二月 19, 2012 1:39:29 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.LocaleProvider)
Struts2和Tomcat启动问题
十二月 19, 2012 1:39:29 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.ActionProxyFactory)
十二月 19, 2012 1:39:29 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.ObjectTypeDeterminer)
十二月 19, 2012 1:39:29 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Choosing bean (struts) for (org.apache.struts2.dispatcher.mapper.ActionMapper)
十二月 19, 2012 1:39:29 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Choosing bean (jakarta) for (org.apache.struts2.dispatcher.multipart.MultiPartRequest)
十二月 19, 2012 1:39:29 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Choosing bean (struts) for (org.apache.struts2.views.freemarker.FreemarkerManager)
十二月 19, 2012 1:39:29 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Choosing bean (struts) for (org.apache.struts2.components.UrlRenderer)
十二月 19, 2012 1:39:29 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.validator.ActionValidatorManager)
十二月 19, 2012 1:39:29 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.util.ValueStackFactory)
十二月 19, 2012 1:39:29 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.util.reflection.ReflectionProvider)
十二月 19, 2012 1:39:29 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.util.reflection.ReflectionContextFactory)
十二月 19, 2012 1:39:29 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.util.PatternMatcher)
十二月 19, 2012 1:39:29 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Choosing bean (struts) for (org.apache.struts2.dispatcher.StaticContentLoader)
十二月 19, 2012 1:39:29 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.UnknownHandlerManager)
十二月 19, 2012 1:39:29 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Choosing bean (struts) for (org.apache.struts2.views.util.UrlHelper)
十二月 19, 2012 1:39:29 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.CollectionConverter)
十二月 19, 2012 1:39:29 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.ArrayConverter)
十二月 19, 2012 1:39:29 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.DateConverter)
十二月 19, 2012 1:39:29 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.NumberConverter)
十二月 19, 2012 1:39:29 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.StringConverter)
十二月 19, 2012 1:39:29 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-apr-80"]
十二月 19, 2012 1:39:29 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-apr-8009"]
十二月 19, 2012 1:39:29 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 17331 ms
Struts2和Tomcat启动问题
这是服务器启动时,加载的一下信息,没有问题
Struts2和Tomcat启动问题
引用 2 楼 Chenhaijing 的回复:

这是服务器启动时,加载的一下信息,没有问题

就是我记得以前没这么多信息的,想问下这些信息怎么可以不让它显示。好吧,我知道我的问题比较水。。。呵呵

Struts2和Tomcat启动问题
有个log4j.properties的配置文件,这个有配置log的输出级别
Struts2和Tomcat启动问题
引用 4 楼 Chenhaijing 的回复:

有个log4j.properties的配置文件,这个有配置log的输出级别

我的项目里没这个文件啊,只有一个在tomcat/conf下面的logging.properties文件。

Struts2和Tomcat启动问题
在log4j.properties  文件中加入:
log4j.logger.com.opensymphony.xwork2=ERROR 
Struts2和Tomcat启动问题
40分
引用 5 楼 lv_cha1 的回复:

引用 4 楼 Chenhaijing 的回复:有个log4j.properties的配置文件,这个有配置log的输出级别
我的项目里没这个文件啊,只有一个在tomcat/conf下面的logging.properties文件。

不在这里,在项目的src\log4j.properties路径下面。

Struts2和Tomcat启动问题
引用 7 楼 wanglin1037 的回复:

引用 5 楼 lv_cha1 的回复:
引用 4 楼 Chenhaijing 的回复:有个log4j.properties的配置文件,这个有配置log的输出级别
我的项目里没这个文件啊,只有一个在tomcat/conf下面的logging.properties文件。

不在这里,在项目的src\log4j.properties路径下面。

正解

Struts2和Tomcat启动问题
同问,我怎么还是找不到log4j.properties
Struts2和Tomcat启动问题
请问楼主解决没的…能够说下怎恶魔解决的吗

CodeBye 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权 , 转载请注明Struts2和Tomcat启动问题
喜欢 (0)
[1034331897@qq.com]
分享 (0)

文章评论已关闭!