Java中java.lang.ClassNotFoundException: org.springframework.web异常
来源:互联网 发布:智能手机看书软件 编辑:程序博客网 时间:2024/05/18 00:11
当通过启动服务器时加载web.xml中的Spring容器时遇到java.lang.ClassNotFoundException: org.springframework.web等相同系列的问题该如何解决
整合ssh时,通过web.xml加载spring容器的时候,有的同学可能会出现java.lang.ClassNotFoundException: org.springframeworntext.ContextLoaderListener错误。根据错误提示,很明显能判断出来是因为类加载器找不到类。出现这个错误一般有三种可能,下面提供解决方法。
第一:最低级的错误,忘了导包。该类是在spring.jar里面,看看你是否忘了导包。
第二:发现已经导入了包,在工程里面手动能找到该类了,但还是出错。那么就应该看看你应用到tomcat里面的 web应用里面有没有该包。有些开 发工具存在debug,通过开发工具应用到tomcat的时存在丢包的 情况,所以最好去tomcat里检查一下,看看WEB-INF/lib下面有没有 spring.jar包。
第三:如果以上都没有问题,那么就是你的开发环境的问题了。解决方法是不要在WEB-INF/lib下建文件夹,所有 的包放到WEB-INF/lib根目录下即可。
0 0
- Java中java.lang.ClassNotFoundException: org.springframework.web异常
- 异常:java.lang.ClassNotFoundException: org.springframework.web.jsf.DelegatingVariableResolver
- 异常:java.lang.ClassNotFoundException: org.springframework.web.servlet.Dispatcher
- 异常java.lang.ClassNotFoundException: org.springframework.web.servlet.DispatcherServlet
- 异常:java.lang.ClassNotFoundException: org.springframework.web.servlet.Dispatcher
- Java---当由Maven搭建的Web项目报java.lang.ClassNotFoundException: org.springframework.web异常
- Spring抛出异常:java.lang.ClassNotFoundException: org.springframework.expression.PropertyAccessor
- 异常:java.lang.ClassNotFoundException: org.springframework.aop.TargetSource
- Tomcat 启动报java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener 异常
- java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderServlet服务器启动报异常
- maven 项目 启动时异常:java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListen
- Spring-Struts2整合异常:java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderLi
- java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderServlet服务器启动报异常
- java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener 问题原因。
- 关于java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderServlet
- java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- java.lang.ClassNotFoundException: org.springframework.web.portlet.DispatcherPortlet
- linux grep命令
- 如何修改ubuntu的密码
- 双向链表基础操作C++实现
- You must reset your password using ALTER USER statement before executing this statement.
- oracle 存储过程in out inout三种参数模式和PROMPT用法
- Java中java.lang.ClassNotFoundException: org.springframework.web异常
- 深度学习(二十八)基于多尺度深度网络的单幅图像深度估计-NIPS 2014
- java虚拟机总结
- IOS8 Spring Animation API 动画
- iOS之单例模式详解
- FlyBoys优化过程10.8-10.16
- jpa条件查询和分页
- AIDL 学习小结
- Linux中头疼的rm命令,替换脚本rmrf