`
yuanyannan
  • 浏览: 30769 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

javax.servlet.ServletException:

阅读更多
web项目配置jdk1.6 tomcat6.0 ;
我在运行web项目的时候tomcat抛得异常如下:
严重: Servlet.service() for servlet jsp threw exception
javax.servlet.ServletException: javax.servlet.jsp.JspFactory.getJspApplicationContext(Ljavax/servlet/ServletContext;)Ljavax/servlet/jsp/JspApplicationContext;
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:275)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.hitrust.lib.filter.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:25)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:174)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
at java.lang.Thread.run(Thread.java:619)
经过分析原因之一是:
tomcat lib目录下放置了 servlet-api.jar 和 j2ee.jar 两个jar。j2ee.jar 包含了servlet.jar内的内容。jar冲突。
解决方法:去掉j2ee.jar

呵呵,以上是我的浅解,如有错误请指正。如果有更好的见解,请多多指教。
分享到:
评论

相关推荐

    javax.servlet.jar下载

    javax.servlet.ServletException.class javax.servlet.ServletRequest.class javax.servlet.ServletResponse.class javax.servlet.ServletConfig.class javax.servlet.ServletInputStream.class javax.servlet....

    sjsxp.jar(解决启动报错)

    启动报错:javax.servlet.ServletException:javax.xml.stream.FactoryConfigurationError: Provider for class javax.xml.stream.XMLInputFactory cannot be created。引入jar包解决问题

    servlet.jar javax.servlet.jar

    在使用servlet.jar和javax.servlet.jar时,开发者需要在Web应用的部署描述符(如web.xml)中声明Servlet实例,指定其类名、URL映射以及可能的初始化参数。例如: ```xml <servlet> <servlet-name>MyServlet</...

    javax.servlet API中文说明.docx

    ### javax.servlet API中文说明知识点详解 #### 一、概述 `javax.servlet` 包是 Java Web 开发的核心组件之一,提供了构建和管理 Servlet 的基础框架。该包定义了一系列的接口和类,使得开发者能够创建可扩展的...

    javax.servlet api参考(英文版)

    《javax.servlet API参考详解》 在Java Web开发中,`javax.servlet` API是核心部分,它为构建基于HTTP协议的Web应用程序提供了基础框架。本文将深入解析`javax.servlet` API,帮助开发者理解其核心概念、关键接口和...

    servlet-api-2.4.jar.zip

    javax.servlet.ServletException javax.servlet.http.HttpServlet javax.servlet.http.HttpSession javax.servlet.RequestDispatcher javax.servlet.SingleThreadModel javax.servlet.ServletInputStream javax....

    javax.servlet.http使用帮助.docx

    ### javax.servlet.http 使用详解 #### 一、概述 `javax.servlet.http` 是 Java Servlet 规范中的一个重要包,主要用于处理 HTTP 请求和响应。本篇文档将详细介绍 `javax.servlet.http` 包中的关键接口和类的功能...

    java web Servlet

    * javax.servlet.ServletException:是 Servlet 异常的接口。 * javax.servlet.UnavailableException:是 Servlet 不可用异常的接口。 Servlet 容器: * Tomcat:是最流行的 Servlet 容器之一,提供了完整的 ...

    servlet2.4doc

    doFilter(ServletRequest, ServletResponse, FilterChain) - Method in interface javax.servlet.Filter The doFilter method of the Filter is called by the container each time a request/response pair is ...

    [课堂课件讲解]Java微服务实践-Spring Boot Web篇(下).pptx

    包括 javax.servlet.ServletConfig、javax.servlet.FilterConfig(since Servlet 2.3)、javax.servlet.ServletInputStream、javax.servlet.ServletOutputStream、javax.servlet.ServletException 等。 6. Servlet ...

    LoginServlet

    import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import ...

    Java-filter过滤器在项目开发中的应用.docx

    import javax.servlet.ServletException; import javax.servlet.ServletRequest; import javax.servlet.ServletResponse; public class Encode implements Filter { public void destroy() { // TODO Auto-...

    mvc实现操作

    import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import cn.bean.StudentDetail...

    JAVA SCM供应链项目代码

    import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import mmb.rec.sys.easyui.EasyuiComBoBoxBean; import mmb.rec.sys....

    Filter_Listener相信代码使用

    import javax.servlet.ServletException; import javax.servlet.ServletRequest; import javax.servlet.ServletResponse; import javax.servlet.http.HttpServletRequest; /** * Servlet Filter implementation...

    关于springboot我出过的那些错误.docx

    错误八:javax.servlet.ServletException: Servlet.init() for servlet [Springmvc] threw exception 错误原因:web.xml 配置的 servlet 与实体文件不符 解决方式:检查 web.xml 配置是否正确,并确保 servlet 与...

    servlet API

    - `javax.servlet.ServletException`: 当 Servlet 出现错误时抛出的异常。 **2. **javax.servlet.http** 包** - **接口** - `javax.servlet.http.HttpServlet`: 扩展了 `GenericServlet`,实现了 HTTP 协议的...

Global site tag (gtag.js) - Google Analytics