`

启动jetty,打开JSP页面报错:Unable to compile class for JSP

阅读更多

启动jetty后,打开JSP页面报错:

Unable to compile class for JSP

 

解决方法:

为项目加入JDK的tools.jar即可

 

报错信息如下:

HTTP ERROR 500
Problem accessing /. Reason: 

    Unable to compile class for JSP

Generated servlet error:
2011-12-10 19:37:07 org.apache.jasper.compiler.Compiler generateClass
??: Javac exception 
Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK
	at org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:105)
	at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:924)
	at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757)
	at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
	at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)
	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
	at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:327)
	at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126)
	at org.mortbay.jetty.servlet.DefaultServlet.doGet(DefaultServlet.java:500)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
	at cn.chenfeng.Filter.PageTimersFilter.doFilter(PageTimersFilter.java:46)
	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
	at org.mortbay.jetty.Server.handle(Server.java:326)
	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
	at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:926)
	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
	at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)
	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)


Generated servlet error:
2011-12-10 19:37:07 org.apache.jasper.compiler.Compiler generateClass


Generated servlet error:
??: Env: Compile: javaFileName=/C:/Users/ADMINI~1/AppData/Local/Temp/Jetty_0_0_0_0_8081_WebRoot____ag5q3e/jsp//org/apache/jsp\index_jsp.java


Generated servlet error:
    classpath=/E:/MyWorkspace/cfJavaEEPlay/WebRoot/WEB-INF/classes/;/E:/MyWorkspace/cfJavaEEPlay/WebRoot/WEB-INF/lib/commons-beanutils.jar;/E:/MyWorkspace/cfJavaEEPlay/WebRoot/WEB-INF/lib/commons-logging-1.1.jar;/E:/MyWorkspace/cfJavaEEPlay/WebRoot/WEB-INF/lib/flexjson-2.0.jar;/E:/MyWorkspace/cfJavaEEPlay/WebRoot/WEB-INF/lib/freemarker-2.3.8.jar;/E:/MyWorkspace/cfJavaEEPlay/WebRoot/WEB-INF/lib/json.jar;/E:/MyWorkspace/cfJavaEEPlay/WebRoot/WEB-INF/lib/jstl.jar;/E:/MyWorkspace/cfJavaEEPlay/WebRoot/WEB-INF/lib/jtds-1.2.2.jar;/E:/MyWorkspace/cfJavaEEPlay/WebRoot/WEB-INF/lib/mysql-connector-java-5.1.6-bin.jar;/E:/MyWorkspace/cfJavaEEPlay/WebRoot/WEB-INF/lib/ognl-2.6.11.jar;/E:/MyWorkspace/cfJavaEEPlay/WebRoot/WEB-INF/lib/standard.jar;/E:/MyWorkspace/cfJavaEEPlay/WebRoot/WEB-INF/lib/struts2-core-2.0.6.jar;/E:/MyWorkspace/cfJavaEEPlay/WebRoot/WEB-INF/lib/xwork-2.0.1.jar;C:\Users\ADMINI~1\AppData\Local\Temp\Jetty_0_0_0_0_8081_WebRoot____ag5q3e\jsp;null


Generated servlet error:
    cp=E:\MyWorkspace\cfJavaEEPlay\build\classes;E:\MyWorkspace\cfJavaEEPlay\WebRoot\WEB-INF\lib\commons-beanutils.jar;E:\MyWorkspace\cfJavaEEPlay\WebRoot\WEB-INF\lib\commons-logging-1.1.jar;E:\MyWorkspace\cfJavaEEPlay\WebRoot\WEB-INF\lib\flexjson-2.0.jar;E:\MyWorkspace\cfJavaEEPlay\WebRoot\WEB-INF\lib\freemarker-2.3.8.jar;E:\MyWorkspace\cfJavaEEPlay\WebRoot\WEB-INF\lib\json.jar;E:\MyWorkspace\cfJavaEEPlay\WebRoot\WEB-INF\lib\jstl.jar;E:\MyWorkspace\cfJavaEEPlay\WebRoot\WEB-INF\lib\jtds-1.2.2.jar;E:\MyWorkspace\cfJavaEEPlay\WebRoot\WEB-INF\lib\mysql-connector-java-5.1.6-bin.jar;E:\MyWorkspace\cfJavaEEPlay\WebRoot\WEB-INF\lib\ognl-2.6.11.jar;E:\MyWorkspace\cfJavaEEPlay\WebRoot\WEB-INF\lib\standard.jar;E:\MyWorkspace\cfJavaEEPlay\WebRoot\WEB-INF\lib\struts2-core-2.0.6.jar;E:\MyWorkspace\cfJavaEEPlay\WebRoot\WEB-INF\lib\xwork-2.0.1.jar;E:\MyWorkspace\cfJavaEEPlay\WebRoot\WEB-INF\classes;E:\MyWorkspace\cfJavaEEPlay\jetty\ant-1.6.5.jar;E:\MyWorkspace\cfJavaEEPlay\jetty\commons-el.jar;E:\MyWorkspace\cfJavaEEPlay\jetty\commons-lang-2.3.jar;E:\MyWorkspace\cfJavaEEPlay\jetty\el-api.jar;E:\MyWorkspace\cfJavaEEPlay\jetty\jasper-compiler.jar;E:\MyWorkspace\cfJavaEEPlay\jetty\jasper-runtime.jar;E:\MyWorkspace\cfJavaEEPlay\jetty\jaxb-impl-2.0.5.jar;E:\MyWorkspace\cfJavaEEPlay\jetty\jetty-6.1.24.jar;E:\MyWorkspace\cfJavaEEPlay\jetty\jetty-util-6.1.24.jar;E:\MyWorkspace\cfJavaEEPlay\jetty\jsp-2.1-core-3.1.1.jar;E:\MyWorkspace\cfJavaEEPlay\jetty\jsp-2.1-jetty-6.1.24.jar;E:\MyWorkspace\cfJavaEEPlay\jetty\jsp-api.jar;E:\MyWorkspace\cfJavaEEPlay\jetty\jstl-1.2.jar;E:\MyWorkspace\cfJavaEEPlay\jetty\servlet-api-2.5-6.1.3.jar;E:\MyWorkspace\cfJavaEEPlay\jetty\standard-1.0.2.jar
    cp=E:\MyWorkspace\cfJavaEEPlay\WebRoot\WEB-INF\classes
    cp=E:\MyWorkspace\cfJavaEEPlay\WebRoot\WEB-INF\lib\commons-beanutils.jar
    cp=E:\MyWorkspace\cfJavaEEPlay\WebRoot\WEB-INF\lib\commons-logging-1.1.jar
    cp=E:\MyWorkspace\cfJavaEEPlay\WebRoot\WEB-INF\lib\flexjson-2.0.jar
    cp=E:\MyWorkspace\cfJavaEEPlay\WebRoot\WEB-INF\lib\freemarker-2.3.8.jar
    cp=E:\MyWorkspace\cfJavaEEPlay\WebRoot\WEB-INF\lib\json.jar
    cp=E:\MyWorkspace\cfJavaEEPlay\WebRoot\WEB-INF\lib\jstl.jar
    cp=E:\MyWorkspace\cfJavaEEPlay\WebRoot\WEB-INF\lib\jtds-1.2.2.jar
    cp=E:\MyWorkspace\cfJavaEEPlay\WebRoot\WEB-INF\lib\mysql-connector-java-5.1.6-bin.jar
    cp=E:\MyWorkspace\cfJavaEEPlay\WebRoot\WEB-INF\lib\ognl-2.6.11.jar
    cp=E:\MyWorkspace\cfJavaEEPlay\WebRoot\WEB-INF\lib\standard.jar
    cp=E:\MyWorkspace\cfJavaEEPlay\WebRoot\WEB-INF\lib\struts2-core-2.0.6.jar
    cp=E:\MyWorkspace\cfJavaEEPlay\WebRoot\WEB-INF\lib\xwork-2.0.1.jar
    cp=C:\Users\ADMINI~1\AppData\Local\Temp\Jetty_0_0_0_0_8081_WebRoot____ag5q3e\jsp
    cp=null
    work dir=C:\Users\ADMINI~1\AppData\Local\Temp\Jetty_0_0_0_0_8081_WebRoot____ag5q3e\jsp


Generated servlet error:
    extension dir=D:\Program Files\Java\jdk1.6.0_11\jre\lib\ext;C:\Windows\Sun\Java\lib\ext
    srcDir=C:\Users\ADMINI~1\AppData\Local\Temp\Jetty_0_0_0_0_8081_WebRoot____ag5q3e\jsp
    include=org/apache/jsp/index_jsp.java





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

Generated servlet error:
2011-12-10 19:37:07 org.apache.jasper.compiler.Compiler generateClass
??: Javac exception 
Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK
	at org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:105)
	at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:924)
	at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757)
	at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
	at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)
	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
	at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:327)
	at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126)
	at org.mortbay.jetty.servlet.DefaultServlet.doGet(DefaultServlet.java:500)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
	at cn.chenfeng.Filter.PageTimersFilter.doFilter(PageTimersFilter.java:46)
	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
	at org.mortbay.jetty.Server.handle(Server.java:326)
	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
	at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:926)
	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
	at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)
	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)


Generated servlet error:
2011-12-10 19:37:07 org.apache.jasper.compiler.Compiler generateClass


Generated servlet error:
??: Env: Compile: javaFileName=/C:/Users/ADMINI~1/AppData/Local/Temp/Jetty_0_0_0_0_8081_WebRoot____ag5q3e/jsp//org/apache/jsp\index_jsp.java


Generated servlet error:
    classpath=/E:/MyWorkspace/cfJavaEEPlay/WebRoot/WEB-INF/classes/;/E:/MyWorkspace/cfJavaEEPlay/WebRoot/WEB-INF/lib/commons-beanutils.jar;/E:/MyWorkspace/cfJavaEEPlay/WebRoot/WEB-INF/lib/commons-logging-1.1.jar;/E:/MyWorkspace/cfJavaEEPlay/WebRoot/WEB-INF/lib/flexjson-2.0.jar;/E:/MyWorkspace/cfJavaEEPlay/WebRoot/WEB-INF/lib/freemarker-2.3.8.jar;/E:/MyWorkspace/cfJavaEEPlay/WebRoot/WEB-INF/lib/json.jar;/E:/MyWorkspace/cfJavaEEPlay/WebRoot/WEB-INF/lib/jstl.jar;/E:/MyWorkspace/cfJavaEEPlay/WebRoot/WEB-INF/lib/jtds-1.2.2.jar;/E:/MyWorkspace/cfJavaEEPlay/WebRoot/WEB-INF/lib/mysql-connector-java-5.1.6-bin.jar;/E:/MyWorkspace/cfJavaEEPlay/WebRoot/WEB-INF/lib/ognl-2.6.11.jar;/E:/MyWorkspace/cfJavaEEPlay/WebRoot/WEB-INF/lib/standard.jar;/E:/MyWorkspace/cfJavaEEPlay/WebRoot/WEB-INF/lib/struts2-core-2.0.6.jar;/E:/MyWorkspace/cfJavaEEPlay/WebRoot/WEB-INF/lib/xwork-2.0.1.jar;C:\Users\ADMINI~1\AppData\Local\Temp\Jetty_0_0_0_0_8081_WebRoot____ag5q3e\jsp;null


Generated servlet error:
    cp=E:\MyWorkspace\cfJavaEEPlay\build\classes;E:\MyWorkspace\cfJavaEEPlay\WebRoot\WEB-INF\lib\commons-beanutils.jar;E:\MyWorkspace\cfJavaEEPlay\WebRoot\WEB-INF\lib\commons-logging-1.1.jar;E:\MyWorkspace\cfJavaEEPlay\WebRoot\WEB-INF\lib\flexjson-2.0.jar;E:\MyWorkspace\cfJavaEEPlay\WebRoot\WEB-INF\lib\freemarker-2.3.8.jar;E:\MyWorkspace\cfJavaEEPlay\WebRoot\WEB-INF\lib\json.jar;E:\MyWorkspace\cfJavaEEPlay\WebRoot\WEB-INF\lib\jstl.jar;E:\MyWorkspace\cfJavaEEPlay\WebRoot\WEB-INF\lib\jtds-1.2.2.jar;E:\MyWorkspace\cfJavaEEPlay\WebRoot\WEB-INF\lib\mysql-connector-java-5.1.6-bin.jar;E:\MyWorkspace\cfJavaEEPlay\WebRoot\WEB-INF\lib\ognl-2.6.11.jar;E:\MyWorkspace\cfJavaEEPlay\WebRoot\WEB-INF\lib\standard.jar;E:\MyWorkspace\cfJavaEEPlay\WebRoot\WEB-INF\lib\struts2-core-2.0.6.jar;E:\MyWorkspace\cfJavaEEPlay\WebRoot\WEB-INF\lib\xwork-2.0.1.jar;E:\MyWorkspace\cfJavaEEPlay\WebRoot\WEB-INF\classes;E:\MyWorkspace\cfJavaEEPlay\jetty\ant-1.6.5.jar;E:\MyWorkspace\cfJavaEEPlay\jetty\commons-el.jar;E:\MyWorkspace\cfJavaEEPlay\jetty\commons-lang-2.3.jar;E:\MyWorkspace\cfJavaEEPlay\jetty\el-api.jar;E:\MyWorkspace\cfJavaEEPlay\jetty\jasper-compiler.jar;E:\MyWorkspace\cfJavaEEPlay\jetty\jasper-runtime.jar;E:\MyWorkspace\cfJavaEEPlay\jetty\jaxb-impl-2.0.5.jar;E:\MyWorkspace\cfJavaEEPlay\jetty\jetty-6.1.24.jar;E:\MyWorkspace\cfJavaEEPlay\jetty\jetty-util-6.1.24.jar;E:\MyWorkspace\cfJavaEEPlay\jetty\jsp-2.1-core-3.1.1.jar;E:\MyWorkspace\cfJavaEEPlay\jetty\jsp-2.1-jetty-6.1.24.jar;E:\MyWorkspace\cfJavaEEPlay\jetty\jsp-api.jar;E:\MyWorkspace\cfJavaEEPlay\jetty\jstl-1.2.jar;E:\MyWorkspace\cfJavaEEPlay\jetty\servlet-api-2.5-6.1.3.jar;E:\MyWorkspace\cfJavaEEPlay\jetty\standard-1.0.2.jar
    cp=E:\MyWorkspace\cfJavaEEPlay\WebRoot\WEB-INF\classes
    cp=E:\MyWorkspace\cfJavaEEPlay\WebRoot\WEB-INF\lib\commons-beanutils.jar
    cp=E:\MyWorkspace\cfJavaEEPlay\WebRoot\WEB-INF\lib\commons-logging-1.1.jar
    cp=E:\MyWorkspace\cfJavaEEPlay\WebRoot\WEB-INF\lib\flexjson-2.0.jar
    cp=E:\MyWorkspace\cfJavaEEPlay\WebRoot\WEB-INF\lib\freemarker-2.3.8.jar
    cp=E:\MyWorkspace\cfJavaEEPlay\WebRoot\WEB-INF\lib\json.jar
    cp=E:\MyWorkspace\cfJavaEEPlay\WebRoot\WEB-INF\lib\jstl.jar
    cp=E:\MyWorkspace\cfJavaEEPlay\WebRoot\WEB-INF\lib\jtds-1.2.2.jar
    cp=E:\MyWorkspace\cfJavaEEPlay\WebRoot\WEB-INF\lib\mysql-connector-java-5.1.6-bin.jar
    cp=E:\MyWorkspace\cfJavaEEPlay\WebRoot\WEB-INF\lib\ognl-2.6.11.jar
    cp=E:\MyWorkspace\cfJavaEEPlay\WebRoot\WEB-INF\lib\standard.jar
    cp=E:\MyWorkspace\cfJavaEEPlay\WebRoot\WEB-INF\lib\struts2-core-2.0.6.jar
    cp=E:\MyWorkspace\cfJavaEEPlay\WebRoot\WEB-INF\lib\xwork-2.0.1.jar
    cp=C:\Users\ADMINI~1\AppData\Local\Temp\Jetty_0_0_0_0_8081_WebRoot____ag5q3e\jsp
    cp=null
    work dir=C:\Users\ADMINI~1\AppData\Local\Temp\Jetty_0_0_0_0_8081_WebRoot____ag5q3e\jsp


Generated servlet error:
    extension dir=D:\Program Files\Java\jdk1.6.0_11\jre\lib\ext;C:\Windows\Sun\Java\lib\ext
    srcDir=C:\Users\ADMINI~1\AppData\Local\Temp\Jetty_0_0_0_0_8081_WebRoot____ag5q3e\jsp
    include=org/apache/jsp/index_jsp.java




	at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
	at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:332)
	at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:412)
	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
	at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)
	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
	at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:327)
	at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126)
	at org.mortbay.jetty.servlet.DefaultServlet.doGet(DefaultServlet.java:500)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
	at cn.chenfeng.Filter.PageTimersFilter.doFilter(PageTimersFilter.java:46)
	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
	at org.mortbay.jetty.Server.handle(Server.java:326)
	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
	at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:926)
	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
	at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)
	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)

 

 

 

分享到:
评论
3 楼 sichaostar 2016-03-03  
我的解决办法是 增加包:core-3.1.1.jar 就可以了 mark一下
2 楼 yunzhu 2012-06-05  
langke93 写道
不错,这问题折腾了我好久

me too。

曾经在公司的环境折腾了好久,后来弄好了。

很长时间以后忘记了,在家里的环境又折腾了很久,果断记下来。
1 楼 langke93 2012-06-05  
不错,这问题折腾了我好久

相关推荐

    jetty-jsp-8.1.8.v20121106.jar

    jetty-jsp-8.1.8.v20121106.jar

    Jetty启动和JSP验证

    【Jetty启动与JSP验证】是针对Java Web开发中的两个关键环节,主要涉及轻量级Web服务器Jetty以及动态网页技术JSP的使用。在Java Web开发中,Jetty作为一个小巧、高效的服务器,常被用于测试和部署应用程序,而JSP则...

    jetty-server-8.1.8.v20121106-API文档-中文版.zip

    Maven坐标:org.eclipse.jetty:jetty-server:8.1.8.v20121106; 标签:eclipse、jetty、server、中文文档、jar包、java; 使用方法:解压翻译后的API文档,用浏览器打开“index.html”文件,即可纵览文档内容。 人性...

    ExtJS Jetty启动报错 tag

    此问题涉及到的是一个基于Jetty服务器的ExtJS应用,在尝试启动时遇到了`JasperException`,这通常与JSP(Java Server Pages)的编译和解析有关。下面将详细解释这个问题及其解决方案。 首先,`JasperException`是...

    jetty-http-9.4.11.v20180605-API文档-中英对照版.zip

    Maven坐标:org.eclipse.jetty:jetty-http:9.4.11.v20180605; 标签:eclipse、jetty、http、中英对照文档、jar包、java; 使用方法:解压翻译后的API文档,用浏览器打开“index.html”文件,即可纵览文档内容。 ...

    jetty9.4.11+jetty在idea上的配置教程

    implementation 'org.eclipse.jetty:jetty-server:9.4.11.v20180605' implementation 'org.eclipse.jetty:jetty-webapp:9.4.11.v20180605' ``` 3. **配置Jetty启动脚本:** 创建一个名为`start.ini`的文件,放...

    main方法启动jetty

    **标签"jetty start"** 暗示了这个过程主要是关于启动Jetty服务器的,这可能是一个简单的脚本,用于快速启动和停止Jetty服务,便于开发和测试。 在给定的压缩包文件`StartJetty`中,可能包含了实现上述步骤的Java源...

    jetty servlet容器

    Jetty 是一个开源的servlet容器,它为基于Java的web容器,例如JSP和servlet提供运行环境。Jetty是使用Java语言编写的,它的API以一组JAR包的形式发布。开发人员可以将Jetty容器实例化成一个对象,可以迅速为一些独立...

    jetty-security-9.3.19.v20170502-API文档-中文版.zip

    Maven坐标:org.eclipse.jetty:jetty-security:9.3.19.v20170502; 标签:eclipse、jetty、security、中文文档、jar包、java; 使用方法:解压翻译后的API文档,用浏览器打开“index.html”文件,即可纵览文档内容。...

    jetty-client-9.4.11.v20180605-API文档-中文版.zip

    Maven坐标:org.eclipse.jetty:jetty-client:9.4.11.v20180605; 标签:eclipse、jetty、client、中文文档、jar包、java; 使用方法:解压翻译后的API文档,用浏览器打开“index.html”文件,即可纵览文档内容。 ...

    jetty的main启动代码及相关jar包

    jetty的main启动代码及相关jar包: jetty-6.1.26.jar、jetty-util-6.1.26.jar为jetty相关jar包。 jasper-el.jar、jasper-jdt.jar、jasper.jar为jsp页面解析编译相关jar包。 jsp-api.jar为jstl相关jar包 tomcat-juli....

    jetty-server-6.1.26

    jetty-server-6.1.26,JFinal软件所需要的包

    jetty-io-9.4.43.v20210629-API文档-中英对照版.zip

    Maven坐标:org.eclipse.jetty:jetty-io:9.4.43.v20210629; 标签:eclipse、jetty、中英对照文档、jar包、java; 使用方法:解压翻译后的API文档,用浏览器打开“index.html”文件,即可纵览文档内容。 人性化翻译...

    embedded-jetty-jsp:带有JSP支持的嵌入式Jetty示例

    示例:带JSP支持的嵌入式Jetty 这是一个maven项目,用于构建它: $ mvn clean package 要运行示例org.eclipse.jetty.demo.Main : $ mvn exec:exec 打开您的Web浏览器以: http://localhost:8080/ 停止码头: 使用...

    jetty源码剖析

    Jetty 的组件启动过程包括了多个步骤,包括启动 Jetty server、加载配置文件、初始化组件等。下面是 Jetty 的组件启动过程: 1. 启动 Jetty server:Jetty server 是 Jetty 的核心组件,负责处理请求和响应。 2. ...

    maven项目下用 jetty 启动热部署

    mvn jetty:run ``` 这将启动Jetty服务器并加载项目。如果配置正确,现在你每次修改源代码后,无需停止和重启服务器,改动就会自动应用。 4. **其他配置**:除了基本的热部署配置,还可以根据需求进行其他设置,...

    jetty-9.4.6

    安装和使用Jetty 9.4.6时,开发者通常会解压该分布包,配置相关的启动脚本或Java代码,然后启动Jetty服务器。开发者可以自定义配置文件(如jetty.xml)来调整服务器的行为,或者通过Maven或Gradle插件进行自动化构建...

    jetty 学习资料合集

    3. **Servlet与JSP**:Jetty支持Servlet和JSP,因此学习如何在Jetty上部署Servlet应用和JSP页面至关重要。掌握Servlet生命周期、过滤器和监听器的使用,以及JSP的EL表达式、JSTL标签库等。 4. **Jetty嵌入式使用**...

    Jetty8 之前用6的时候报错数组越界 换成8就好了

    Jetty是一款轻量级、高性能的Java Web服务器和Servlet容器,它被广泛应用于各种规模的Web应用程序部署。在从Jetty 6升级到Jetty 8的过程中,有时可能会遇到一些问题,比如“数组越界”错误。这个错误通常是由于代码...

    shell脚本启动jetty嵌入式server

    shell脚本启动jetty嵌入式server,shell脚本启动jetty嵌入式server

Global site tag (gtag.js) - Google Analytics