jetty 服务打jar包问题,发布war

18号 发布于 2014/07/30 17:20
阅读 1K+
收藏 0

org.apache.jasper.JasperException: PWC6033: Error in Javac compilation for JSP||PWC6199: Generated servlet error:|程序包org.apache.jasper.runtime不存在||PWC6199: Generated servlet error:|程序包org.apache.jasper.runtime不存在||PWC6199: Generated servlet error:|程序包org.glassfish.jsp.api不存在||PWC61
99: Generated servlet error:|不兼容的类型|  需要: java.lang.Object|  找到:    org.apache.jsp.jam_jsp||PWC6199: Generated servlet error:|无法将类 javax.servlet.jsp.JspFactory中的方法 getPageContext应用到给定类型;|  需要: javax.servlet.Servlet,javax.servlet.ServletRequest,javax.servlet.ServletResponse
,java.lang.String,boolean,int,boolean|  找到: org.apache.jsp.jam_jsp,javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse,<nulltype>,boolean,int,boolean|  原因: 无法通过方法调用转换将实际参数org.apache.jsp.jam_jsp转换为javax.servlet.Servlet||PWC6199: Generated servlet error:|





HTTP ERROR 500

Problem accessing /jamvm/jam.jsp. Reason:

Server Error

Caused by:

org.apache.jasper.JasperException: PWC6033: Error in Javac compilation for JSP

PWC6199: Generated servlet error:
???org.apache.jasper.runtime???

PWC6199: Generated servlet error:
???org.apache.jasper.runtime???

PWC6199: Generated servlet error:
???org.glassfish.jsp.api???

PWC6199: Generated servlet error:
??????
  ??: java.lang.Object
  ??:    org.apache.jsp.jam_jsp

PWC6199: Generated servlet error:
???? javax.servlet.jsp.JspFactory???? getPageContext???????;
  ??: javax.servlet.Servlet,javax.servlet.ServletRequest,javax.servlet.ServletResponse,java.lang.String,boolean,int,boolean
  ??: org.apache.jsp.jam_jsp,javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse,<nulltype>,boolean,int,boolean
  ??: ???????????????org.apache.jsp.jam_jsp???javax.servlet.Servlet

PWC6199: Generated servlet error:
???org.glassfish.jsp.api???


	at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:129)
	at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:299)
	at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:392)
	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:453)
	at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:625)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:492)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:378)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:503)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:429)
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
	at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
	at org.eclipse.jetty.server.Server.handle(Server.java:370)
	at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)
	at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:971)
	at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1033)
	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644)
	at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
	at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
	at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:696)
	at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:53)
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
	at java.lang.Thread.run(Thread.java:722)


求解。。。。jetty在编译环境中可以跑jsp,但是我将jetty服务打jar之后就报上没的错误。求大神们帮助一下

加载中
返回顶部
顶部