wct357110558 2011-07-27 08:34
浏览 198
已采纳

关于extjs+struts2 的一些问题

[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]

这个算不算错误?
如果错误该怎么解决?
如果不是错误该怎么让服务器启动时候不提示?
如果这些存在 会有什么影响?

  • 写回答

1条回答 默认 最新

  • ylf0716 2011-07-27 08:50
    关注

    这个是 容器加载的时候加载了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

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?