Jsp page import加分号报错解决方案

2018-02-27 11:52:11来源:oschina作者:多金人点击

分享

日志显示filter报错,其实是jsp头部page import后面加了个分号导致,将分号删除即可。


正确写法 :<%@page import="com.netglobal.biz.LevelSearch"%>


具体错误如下:


java.lang.IllegalArgumentException: Page directive: invalid value for importorg.apache.jasper.compiler.Node$PageDirective.validateImport(Node.java:628)org.apache.jasper.compiler.Node$PageDirective.addImport(Node.java:609)org.apache.jasper.compiler.Parser.parsePageDirective(Parser.java:352)org.apache.jasper.compiler.Parser.parseDirective(Parser.java:473)org.apache.jasper.compiler.Parser.parseFileDirectives(Parser.java:1773)org.apache.jasper.compiler.Parser.parse(Parser.java:135)org.apache.jasper.compiler.ParserController.doParse(ParserController.java:242)org.apache.jasper.compiler.ParserController.parseDirectives(ParserController.java:119)org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:194)org.apache.jasper.compiler.Compiler.compile(Compiler.java:374)org.apache.jasper.compiler.Compiler.compile(Compiler.java:354)org.apache.jasper.compiler.Compiler.compile(Compiler.java:341)org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:662)org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:364)org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)javax.servlet.http.HttpServlet.service(HttpServlet.java:731)org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)org.apache.struts.chain.commands.servlet.PerformForward.handleAsForward(PerformForward.java:113)org.apache.struts.chain.commands.servlet.PerformForward.perform(PerformForward.java:96)org.apache.struts.chain.commands.AbstractPerformForward.execute(AbstractPerformForward.java:54)org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:305)org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)javax.servlet.http.HttpServlet.service(HttpServlet.java:624)javax.servlet.http.HttpServlet.service(HttpServlet.java:731)org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)com.touzi.filter.LoggerFilter.doFilter(LoggerFilter.java:34)

最新文章

123

最新摄影

闪念基因

微信扫一扫

第七城市微信公众平台