Servlet.service() for servlet jsp threw exception

问题描述

严重: Servlet.service() for servlet jsp threw exceptionorg.apache.jasper.JasperException: Unable to compile class for JSP:An error occurred at line: 23 in the generated java fileThe method getJspApplicationContext(ServletContext) is undefined for the type JspFactoryStacktrace: at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330) at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:439) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:349)

解决方案

因 为项目中有像jsp-api.jar servlet-api.jar跟tomcat6的lib中同样的包,但版本比tomcat6的版本要低,在运行的时候,因为会优先加载项目中的包,所以 产生了错误,把项目中和tomcat相同的包删除(必须删除,如果替换还会产生其他的错误),问题就可以解决了。所以,这些jar包不是加的越多就越安全的。。。http://www.cnblogs.com/icerainsoft/articles/2227661.html

时间: 2024-12-05 01:04:48

Servlet.service() for servlet jsp threw exception的相关文章

Servlet.service() for servlet action threw

问题描述 Servlet.service() for servlet action threw getConnection error: javax.naming.NameNotFoundException: Name exam is not bound in this Context 2016-5-18 21:17:35 org.apache.struts.action.RequestProcessor processException 警告: Unhandled Exception thro

严重: Servlet.service() for servlet jsp threw exception是因为什么啊?

问题描述 011-2-2521:46:06org.apache.catalina.core.StandardWrapperValveinvoke严重:Servlet.service()forservletjspthrewexceptionjava.lang.NullPointerExceptionatorg.apache.jsp.login_jsp._jspDestroy(login_jsp.java:40)atorg.apache.jasper.runtime.HttpJspBase.dest

传智播客 数据采集系统出现异常严重: Servlet.service() for servlet jsp threw exception org.apache.

问题描述 严重:Servlet.service()forservletjspthrewexceptionorg.apache.jasper.JasperException:/index.jsp(19,2)Thes:formtagdeclaresthatitacceptsdynamicattributesbutdoesnotimplementtherequiredinterfaceatorg.apache.jasper.compiler.DefaultErrorHandler.jspError(D

Servlet.service() for servlet hyServlet threw exception

问题描述 2011-4-1811:41:25org.apache.catalina.core.StandardWrapperValveinvoke严重:Servlet.service()forservlethyServletthrewexceptionjava.lang.AbstractMethodError:com.microsoft.jdbc.base.BasePreparedStatement.getParameterMetaData()Ljava/sql/ParameterMetaDat

关于json存值报错 Servlet.service() for servlet [default] in context with path [/examin

问题描述 这个json问题里到底存在多少种错误情况现在以本人经验发现对象中存在date类型或存在对象中还有对象这两种情况会导致这种错误出现.这问题字面上是存在多个回应,在第一个回应已经结束也会导致这个错误.这个问题有什么解决方案,存在的情况也请大神详细说明一下,最近被这问题缠绕多天了.感谢大家鼎力相助!! 解决方案 解决方案二:没看懂你想表达什么解决方案三:好像有属性设置你不需要转的.解决方案四:引用1楼wobuxiangnila的回复: 没看懂你想表达什么 Servlet.service()f

跪求赐教Servlet.service() for servlet [action] in context with path [/FristStruts]

问题描述 Servlet.service()forservlet[action]incontextwithpath[/FristStruts][/FristStruts]是我的工程名struts1.2+hibernate3两个都配置好了.可是在action中调用hibernate的方法时候就出现下面的错误:本人初学者~~求高手赐教~~谢谢啦~~严重:Servlet.service()forservlet[action]incontextwithpath[/FristStruts]threwexc

严重: Servlet.service() for servlet [jsp] in context with path [/qq] threw excepti

问题描述 16:<trheight="29"><tdbackground="/qq/images/left_T.jpg"style="text-indent:45;padding-top:8"><b><fontcolor="white">博主信息</font></b></td></tr>17:<trheight="4

ERROR - Servlet.service() for servlet action threw exception很急!!谢谢!

问题描述 packagemodule.toclarify;importjava.io.PrintStream;publicclassDiskID{privatestaticnativeStringgetFactory();privatestaticnativeStringgetDiskID();publicstaticStringFactory(){returngetFactory().trim();}publicstaticStringgetDiskIDs(){returngetDiskID(

Servlet.service() for servlet [action] in context with path [/SunIAS] threw exce

问题描述 java.lang.NoClassDefFoundError:javax/wsdl/WSDLExceptionatorg.apache.cxf.wsdl11.WSDLServiceFactory.<init>(WSDLServiceFactory.java:82)atorg.apache.cxf.jaxws.ServiceImpl.initializePorts(ServiceImpl.java:204)atorg.apache.cxf.jaxws.ServiceImpl.<i