Struts2和Tomcat启动问题

Erics_He 2012-12-19 02:12:54
小弟自学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)
...全文
294 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
Ricky_Kuteng 2014-07-22
  • 打赏
  • 举报
回复
请问楼主解决没的...能够说下怎恶魔解决的吗
Ricky_Kuteng 2014-07-22
  • 打赏
  • 举报
回复
同问,我怎么还是找不到log4j.properties
sky_08_06_02 2012-12-20
  • 打赏
  • 举报
回复
引用 7 楼 wanglin1037 的回复:
引用 5 楼 lv_cha1 的回复: 引用 4 楼 Chenhaijing 的回复:有个log4j.properties的配置文件,这个有配置log的输出级别 我的项目里没这个文件啊,只有一个在tomcat/conf下面的logging.properties文件。 不在这里,在项目的src\log4j.properties路径下面。
正解
Jordan37 2012-12-19
  • 打赏
  • 举报
回复
引用 5 楼 lv_cha1 的回复:
引用 4 楼 Chenhaijing 的回复:有个log4j.properties的配置文件,这个有配置log的输出级别 我的项目里没这个文件啊,只有一个在tomcat/conf下面的logging.properties文件。
不在这里,在项目的src\log4j.properties路径下面。
Jordan37 2012-12-19
  • 打赏
  • 举报
回复
在log4j.properties 文件中加入: log4j.logger.com.opensymphony.xwork2=ERROR
Erics_He 2012-12-19
  • 打赏
  • 举报
回复
引用 4 楼 Chenhaijing 的回复:
有个log4j.properties的配置文件,这个有配置log的输出级别
我的项目里没这个文件啊,只有一个在tomcat/conf下面的logging.properties文件。
Derek-Chen 2012-12-19
  • 打赏
  • 举报
回复
有个log4j.properties的配置文件,这个有配置log的输出级别
Erics_He 2012-12-19
  • 打赏
  • 举报
回复
引用 2 楼 Chenhaijing 的回复:
这是服务器启动时,加载的一下信息,没有问题
就是我记得以前没这么多信息的,想问下这些信息怎么可以不让它显示。好吧,我知道我的问题比较水。。。呵呵
Derek-Chen 2012-12-19
  • 打赏
  • 举报
回复
这是服务器启动时,加载的一下信息,没有问题
Erics_He 2012-12-19
  • 打赏
  • 举报
回复

十二月 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

67,513

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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