`
gstarwd
  • 浏览: 1488233 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

ERRORcheck whether you have multiple ContextLoader* definitions in your web.xml!

    博客分类:
  • SSH
阅读更多

ERROR:check whether you have multiple ContextLoader* definitions in your web.xml!

 

 

 找到了错误的原因了!!!!!!!!!!

一般根据报错提示顺藤摸瓜 就能解决问题!!

 

在web.xml里面~~

 

  <listener>
    <listener-class>
      org.springframework.web.context.ContextLoaderListener
    </listener-class>
  </listener>
 
     <servlet>
        <servlet-name>SpringContextServlet</servlet-name>
        <servlet-class>
            org.springframework.web.context.ContextLoaderServlet
        </servlet-class>
        <load-on-startup>1</load-on-startup>
    </servlet>
<!-- 两个一样的ContextLoaderListener !!!???我要搞清楚-->
 

 

 

休息一下稍后继续呀~~下一集

ContextLoaderListener  VS.  ContextLoaderServlet

分享到:
评论
1 楼 guoguo1010 2011-10-17  
两个一样的ContextLoaderListener

什么乱七八糟的哦 说的···

相关推荐

    spring-web-2.5.jar

    org.springframework.web.context.ContextLoader.class org.springframework.web.context.ContextLoaderListener.class org.springframework.web.context.ContextLoaderServlet.class org.springframework.web....

    S2SH整合报错

    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Instantiation of bean failed;...

    struts2驱动包

    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [applicationContext.xml]: Initialization of bean failed; nested ...

    ContextLoader 加载xml

    NULL 博文链接:https://yjgyjg4.iteye.com/blog/662723

    第17讲 Spring、hibernate和Struts2的整合

    ①在web.xml中配置ApplicationContext.xml,并使用ContextLoader监听器实例化spring容器 ②把action交给spring管理,即在spring配置文件中定义action Bean并使用依赖注入功能在action中注入业务Bean,同时修改作用域...

    spring源代码解析

    对于一个Spring激活的web应用程序,可以通过使用Spring代码声明式的指定在web应用程序启动时载入应用程序上下文(WebApplicationContext),Spring的ContextLoader是提供这样性能的类,我们可以使用 ...

    SPRING API 2.0.CHM

    ContextLoader ContextLoaderListener ContextLoaderPlugIn ContextLoaderServlet ContextRefreshedEvent ContextSingletonBeanFactoryLocator ControlFlow ControlFlowFactory ControlFlowFactory.Jdk13...

    iriska:鸢尾花分类模型

    Iris model = new Iris ( new ContextLoader ()); Flower flower = Flower . builder() .setSepalLength( 5.57091678078844 ) .setPetalWidth( 3.09644861465126 ) .setPetalLength( 1.23725924762744 )

    realtor:Klassy的房地产经纪人回归模型

    =房地产经纪人= ... Houser model = new Houser ( new ContextLoader ()); House house = House . builder() .houseSize( 2983 ) .lotSize( 9365 ) .bedrooms( 5 ) .granite( 0 ) .bathroom( 1 ) .build

Global site tag (gtag.js) - Google Analytics