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

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

报告相同问题?

悬赏问题

  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!
  • ¥15 drone 推送镜像时候 purge: true 推送完毕后没有删除对应的镜像,手动拷贝到服务器执行结果正确在样才能让指令自动执行成功删除对应镜像,如何解决?
  • ¥15 求daily translation(DT)偏差订正方法的代码
  • ¥15 js调用html页面需要隐藏某个按钮