Unable to compile class for JSP

问题描述

Anerroroccurredatline:163inthejspfile:/WEB-INF/jsp/sys/Menu.jspThemethodsetTest(boolean)inthetypeIfTagisnotapplicableforthearguments(String)160:<c:forEachitems="${buttonList}"var="buttonList">161:<c:iftest="${buttonList=='menuadd.hu'}"><li><aclass="add"href="menuadd.hu?vid={vid}"onmouseup="checkfunct();"rel="menuadd.hu"mask="true"width="600"height="500"><span></span></a></li></c:if>162:<c:iftest="${buttonList=='buttonadd.hu'}"><li><aclass="add"href="buttonadd.hu?vid={vid}"onmouseup="checkfinalmenu();"rel="buttonadd.hu"mask="true"width="600"height="500"><span></span></a></li></c:if>163:<c:iftest="${fn:substring(buttonList,0,fn:length(buttonList))=='menuupdate.hu?vid={gid}'}"><li><aid="editupdate"class="edit"rel="menuupdate.hu"mask="true"width="520"height="450"href="menuupdate.hu?vid={vid}"target="dialog"><span>缂栬緫</span></a></li></c:if>164:<c:iftest="${fn:substring(buttonList,0,fn:length(buttonList)-1)=='menudel.hu?vid={gid'}"><li><aid="deleteid"class="delete"href="menudel.hu?vid={vid}"><span></span></a></li></c:if>165:</c:forEach>166:<liclass="line">line</li>其他机子不报错。

解决方案

解决方案二:
估计这里menuupdate.hu?vid={gid}有问题。你这个是jsp编译通不过。
解决方案三:
jsp编译可以过,有警告,用浏览器跳到这个页面就报这个错误,把代码copy到别人的机子运行访问又没有问题。
解决方案四:
把页面报错的内容贴出来。
解决方案五:
2014-11-2016:55:27org.apache.catalina.core.StandardWrapperValveinvoke严重:Servlet.service()forservletHonourthrewexceptionorg.apache.jasper.JasperException:UnabletocompileclassforJSP:Anerroroccurredatline:163inthejspfile:/WEB-INF/jsp/sys/Menu.jspThemethodsetTest(boolean)inthetypeIfTagisnotapplicableforthearguments(String)160:<c:forEachitems="${buttonList}"var="buttonList">161:<c:iftest="${buttonList=='menuadd.hu'}"><li><aclass="add"href="menuadd.hu?vid={vid}"onmouseup="checkfunct();"target="dialog"rel="menuadd.hu"mask="true"width="600"height="500"title="娣诲姞鑿滃崟"><span>娣诲姞鑿滃崟</span></a></li></c:if>162:<c:iftest="${buttonList=='buttonadd.hu'}"><li><aclass="add"href="buttonadd.hu?vid={vid}"onmouseup="checkfinalmenu();"target="dialog"rel="buttonadd.hu"mask="true"width="600"height="500"title="娣诲姞鎸夐挳"><span>娣诲姞鎸夐挳</span></a></li></c:if>163:<c:iftest="${fn:substring(buttonList,0,fn:length(buttonList)-1)=='menuupdate.hu?vid={gid"}"'}"><li><aid="editupdate"class="edit"rel="menuupdate.hu"mask="true"width="520"height="450"href="menuupdate.hu?vid={vid}"target="dialog"><span>缂栬緫</span></a></li></c:if>164:<c:iftest="${fn:substring(buttonList,0,fn:length(buttonList)-1)=='menudel.hu?vid={gid'}"><li><aid="deleteid"class="delete"href="menudel.hu?vid={vid}"target="ajaxTodo"title="纭畾瑕佸垹闄ゅ悧?"><span>鍒犻櫎</span></a></li></c:if>165:</c:forEach>166:<liclass="line">line</li>Stacktrace:atorg.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)atorg.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)atorg.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:439)atorg.apache.jasper.compiler.Compiler.compile(Compiler.java:334)atorg.apache.jasper.compiler.Compiler.compile(Compiler.java:312)atorg.apache.jasper.compiler.Compiler.compile(Compiler.java:299)atorg.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586)atorg.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)atorg.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)atorg.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)atjavax.servlet.http.HttpServlet.service(HttpServlet.java:717)atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)atorg.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)atorg.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)atorg.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)atorg.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)atorg.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:209)atorg.springframework.web.servlet.view.AbstractView.render(AbstractView.java:267)atorg.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1217)atorg.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1005)atorg.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:952)atorg.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:870)atorg.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:961)atorg.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:852)atjavax.servlet.http.HttpServlet.service(HttpServlet.java:617)atorg.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:837)atjavax.servlet.http.HttpServlet.service(HttpServlet.java:717)atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)atcom.honour.filter.UrlFilter.doFilter(UrlFilter.java:60)atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)atorg.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)atorg.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:108)atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)atorg.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)atorg.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)atorg.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)atorg.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)atorg.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)atorg.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)atorg.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)atorg.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)atorg.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)atjava.lang.Thread.run(Thread.java:662)
解决方案六:
把你的这个文件拷贝出来另存为utf-8试试看,然后再替换掉你以前的文件。
解决方案七:
先把乱码问题解决后试试。

时间: 2024-09-23 17:27:34

Unable to compile class for JSP的相关文章

jsp-新手求教,总是出现“Unable to compile class for JSP:”

问题描述 新手求教,总是出现"Unable to compile class for JSP:" 解决方案 报了三个这样相同的错误,其他的没问题. 解决方案二: ?近来用到tomcat,在发布项目是,碰到这样一个问题:org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 23 in the generated java file The method

jsp-HTTP Status 500 - Unable to compile class for JSP

问题描述 HTTP Status 500 - Unable to compile class for JSP 求大牛求解!新手不了解 j点击Jsp页面出现的错误 type Exception report message Unable to compile class for JSP description The server encountered an internal error that prevented it from fulfilling this request. except

Unable to compile class for JSP 装饰器

装饰器装饰了目标页INDEX.JSP后.突然 报Unable to compile class for JSP错误,删除了 <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; %> 后正常了.

org.apache.jasper.JasperException: Unable to compile class for JSP:

问题描述 <%@pagelanguage="java"import="java.util.*"pageEncoding="GB2312"%><%@pageimport="com.wh.communicationsystem.DAO.*"%><%Stringpath=request.getContextPath();StringbasePath=request.getScheme()+":

Unable to compile class for JSP问题

问题描述 <%@pagelanguage="java"import="java.io.File"%><%@pagelanguage="java"import="java.io.*"%><%@pagelanguage="java"import="jxl.read.biff.*"%><%@pagelanguage="java"im

入门jsp报Unable to compile class for JSP错,救助

问题描述 各位高手好,小弟在入门jsp入到错误提示,请帮帮忙,谢谢.如下SayHelloBean.html编码放置在D:apache-tomcat-8webappstesttestbean下<html><head><title>数据输入</title><metahttp-equiv="Content-Type"content="text/html;charset=gb2312"></head>&

tomcat-Unable to compile class for JSP

问题描述 Unable to compile class for JSP 2C HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to com

javaweb-HTTP Status 500 - Unable to load class for JSP

问题描述 HTTP Status 500 - Unable to load class for JSP <%@ page contentType="text/html pageEncoding="GBK"%> <%@ page import="java.io.*"%> <%@ page import="java.util.*"%> <%@ page import="java.math.

JSP渐进学习教程

js|教程 //------------------------------------------------------------------------------------------- 客户端(client)与服务器端(server)的概念服务器: 广义地说,服务器分两种(硬件服务器.软件服务器) 硬件服务器:指相对PC机而言,性能和稳定性较好的.采用特殊硬件的计算机. 软件服务器:通俗的说,就是指安装了某种服务软件,并能提供相应的服务的机器,我们称之为服务器. 服务软件有很多种,