`

服务器启动时找不到org.springframework.web.ContextLoaderListener

 
阅读更多

java.lang.NoClassDefFoundError:org.springframework.web.ContextLoaderListener

 

这个异常原因:缺少某些jar包或者这些jar包只是引用进去,但实际上没有加到classpath,可能跟ide有关系


解决方法:1、jar包要全

                2、把jar包直接copy到lib里面,然后add to classpath



分享到:
评论

相关推荐

    java解决org.springframework.web.context.ContextLoaderListener

    java解决org.springframework.web.context.ContextLoaderListener

    spring-web-2.5.jar

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

    信息: Deploying web application directory lx01

    严重: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener at ...

    struts2驱动包

    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843) at org....

    springweb3.0MVC注解(附实例)

    org.springframework.web.context.ContextLoaderListener </listener> <!-- Spring MVC 的Servlet,它将加载WEB-INF/annomvc-servlet.xml 的 配置文件, 以启动Spring MVC模块--> <servlet-name>annomvc ...

    spring和hibernate整合

    org.springframework.web.context.ContextLoaderListener <listener> <listener-class>org.springframework.web.context.request.RequestContextListener</listener-class> </listener>

    com.springsource.org.objectweb.asm-3.2.0.jar

    严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener org.springframework.beans.factory.BeanCreationException: Error ...

    spring-simple-web:使用 Spring Framework 的简单 Web (WAR) 项目

    Web 应用程序使用 Spring Web 侦听器初始化,例如web.xml org.springframework.web.context.ContextLoaderListener 。 Spring Web 侦听器使用web.xml的contextConfigLocation上下文参数进行初始化。 此设置的...

    Spring的监听器ContextLoaderListener的作用

    <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> 这样, ContextLoaderListener 就会自动装配 spring 配置文件。 ContextLoaderListener 是 Spring 框架中一个非常重要的...

    简单spring MVC 配置

    <listener-class>org.springframework.web.context.ContextLoaderListener <servlet-name>test <servlet-class>org.springframework.web.servlet.DispatcherServlet <load-on-startup>1 <servlet-name>...

    Web项目中使用Spring, 使用 Spring 的器监听器 ContextLoaderListener.docx

    一、Web项目中使用Spring ...在 Web 项目中使用 Spring 框架,首先要解决在 web 层(这里指 Servlet)中获取到 Spring容器的问题。只要在 web 层获取到了 Spring 容器,便可从容器中获取到 Service 对象

    spring_MVC源码

    09. <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> 10. </listener> 11. 12. <servlet> 13. <servlet-name>spring</servlet-name> 14. <servlet-class>org.spring...

    Proxool-0.9.1

    proxool.0.9.1基础上做了修改。 改jar名称为:proxool-0.9.1.1,主要修改为以下3点: ... <listener-class>org.springframework.web.context.ContextLoaderListener 4.修正了proxool在多线程环境下的的错误。

    SSH第7章上机.zip ACCP8.0

    下面是整合的的步骤 ...<listener-class>org.springframework.web.context.ContextLoaderListener 在struts.xml中配置对象创建工具为spring <constant name="struts.objectFactory" value="spring" />

    Spring-5.1.5源码

    Spring framework 5.1.5源码 Main: spring-web/org.springframework.web.context.ContextLoaderListener

    基于java的企业级应用开发:Spring的核心容器.ppt

    spring/applicationContext.xml </param-value> </context-param> <listener> <listener-class> org.springframework.web.context.ContextLoaderListener </listener-class> </listener> ApplicationContext * * * *...

    ssh框架的搭建

    <listener-class>org.springframework.web.context.ContextLoaderListener <!-- Listener log4jConfigLocation --> <listener-class>org.springframework.web.util.Log4jConfigListener </listener>

    SpringMVC框架搭建及详解.pdf

    <listener-class>org.springframework.web.context.ContextLoaderListener ``` * 配置context-param: ```xml <param-name>contextConfigLocation <param-value>classpath:config/applicationContext.xml ``` ...

    Spring与Web环境集成.pdf

    为了解决这些弊端,我们可以使用ServletContextListener监听Web应用的启动,在Web应用启动时加载Spring的配置文件,创建应用上下文对象ApplicationContext,并将其存储到ServletContext域中。这样,我们就可以在任意...

    Spring MVC 框架应用实例

    org.springframework.web.context.ContextLoaderListener <filter-name>encodingFilter org.springframework.web.filter.CharacterEncodingFilter <param-name>encoding ...

Global site tag (gtag.js) - Google Analytics