[color=red]
2011-7-27 8:07:29 com.opensymphony.xwork2.config.providers.XmlConfigurationProvider register
信息: Parsing configuration file [struts-default.xml]
2011-7-27 8:07:29 com.opensymphony.xwork2.config.providers.XmlConfigurationProvider register
信息: Parsing configuration file [struts-plugin.xml]
2011-7-27 8:07:29 com.opensymphony.xwork2.config.providers.XmlConfigurationProvider register
信息: Parsing configuration file [struts.xml]
2011-7-27 8:07:30 com.opensymphony.xwork2.util.ObjectTypeDeterminerFactory
信息: Setting DefaultObjectTypeDeterminer as default ...
2011-7-27 8:07:30 org.apache.struts2.dispatcher.Dispatcher init_CheckWebLogicWorkaround
信息: WebLogic server detected. Enabling Struts parameter access work-around.
2011-7-27 8:07:30 com.opensymphony.xwork2.config.providers.XmlConfigurationProvider register
信息: Parsing configuration file [struts-default.xml]
2011-7-27 8:07:31 com.opensymphony.xwork2.config.providers.XmlConfigurationProvider register
信息: Parsing configuration file [struts-plugin.xml]
2011-7-27 8:07:31 com.opensymphony.xwork2.config.providers.XmlConfigurationProvider register
信息: Parsing configuration file [struts.xml]
2011-7-27 8:07:31 com.opensymphony.xwork2.util.ObjectTypeDeterminerFactory
信息: Setting DefaultObjectTypeDeterminer as default ...
2011-7-27 8:07:31 org.apache.struts2.dispatcher.Dispatcher init_CheckWebLogicWorkaround
信息: WebLogic server detected. Enabling Struts parameter access work-around.
[/color]
这个算不算错误?
如果错误该怎么解决?
如果不是错误该怎么让服务器启动时候不提示?
如果这些存在 会有什么影响?
这个是 容器加载的时候加载了struts 的配置文件(和spring一样) 是用ServletContext.log()打出来的 前面显示 信息 两字 而不是警告或错误 所以应该不是错误 只是告诉你struts配置文件已经加载成功 环境已经生成 可以用了 这个意思 怎么禁用的话 这个不知道struts里面有没有相关配置 spring里面是无法禁用的 只能修改源码 但是我认为这个没有关系的 只是启动的时候显示一下而已
[code="java"]public WebApplicationContext initWebApplicationContext(ServletContext servletContext)
throws IllegalStateException, BeansException {
if (servletContext.getAttribute(WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE) != null) {
throw new IllegalStateException(
"Cannot initialize context because there is already a root application context present - " +
"check whether you have multiple ContextLoader* definitions in your web.xml!");
}
[color=darkred]servletContext.log("Initializing Spring root WebApplicationContext");[/color]
if (logger.isInfoEnabled()) {[/code]
这个是spring的源码 加载spring上下文的时候就用了 servletContext.log