Jetty Access JSP page exception occurred: Org.apache.jasper.jasperexception:pwc6345:a full JDK (not just JRE) is required resolved

Source: Internet
Author: User

Today, under the jetty configuration of a JSP template report page, reported the following exception information:

Org.apache.jasper.JasperException:PWC6345:There is a error in invoking Javac. A full JDK (not just JRE) was required at Org.apache.jasper.compiler.DefaultErrorHandler.jspError (Defaulterrorhandler.ja va:92) at Org.apache.jasper.compiler.ErrorDispatcher.dispatch (errordispatcher.java:378) at Org.apache.jasper.compiler.ErrorDispatcher.jspError (errordispatcher.java:119) at Org.apache.jasper.compiler.Jsr199JavaCompiler.compile (jsr199javacompiler.java:208) at Org.apache.jasper.compiler.Compiler.generateClass (compiler.java:384) 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:847) at Org.eclipse.jetty.servlet.ServletHolder.handle (servletholder.java:558) at Org.eclipse.jetty.servlet.ServletHandler.doHandle (servlethandler.java:489) at Org.eclipse.jetty.server.handler.ScopedHandler.handle (scopedhandler.java:119) at Org.eclipse.jetty.security.SecurityHandler.handle (securityhandler.java:520) at Org.eclipse.jetty.server.session.SessionHandler.doHandle (sessionhandler.java:233) at Org.eclipse.jetty.server.handler.ContextHandler.doHandle (contexthandler.java:972) at Org.eclipse.jetty.servlet.ServletHandler.doScope (servlethandler.java:417) at Org.eclipse.jetty.server.session.SessionHandler.doScope (sessionhandler.java:192) at Org.eclipse.jetty.server.handler.ContextHandler.doScope (contexthandler.java:906) at Org.eclipse.jetty.server.handler.ScopedHandler.handle (scopedhandler.java:117) at Org.eclipse.jetty.server.handler.HandlerWrapper.handle (handlerwrapper.java:110) at Org.eclipse.jetty.server.Server.handle (server.java:350) at org.ecLipse.jetty.server.HttpConnection.handleRequest (httpconnection.java:442) at Org.eclipse.jetty.server.httpconnection$requesthandler.headercomplete (httpconnection.java:910) at Org.eclipse.jetty.http.HttpParser.parseNext (httpparser.java:565) at Org.eclipse.jetty.http.HttpParser.parseAvailable (httpparser.java:217) at Org.eclipse.jetty.server.AsyncHttpConnection.handle (asynchttpconnection.java:46) at Org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle (selectchannelendpoint.java:545) at Org.eclipse.jetty.io.nio.selectchannelendpoint$1.run (selectchannelendpoint.java:43) at Org.eclipse.jetty.util.thread.QueuedThreadPool.runJob (queuedthreadpool.java:598) at Org.eclipse.jetty.util.thread.queuedthreadpool$3.run (queuedthreadpool.java:533) at Java.lang.Thread.run (Unknown Source)


On the internet to find a lot of information, the main problem is jetty running JRE environment configuration problem, the final solution is as follows:
In eclipse->window->prefence->java->installed jres, select JRE Click Edit to find the JDK installation directory, my installation is C:Program files/java/ jdk1.7 Locate the JRE directory under the JDK installation directory and click Finish. , start the project, access the JSP page, everything works.

Reminder: Online Solutions I tried unsuccessfully, the main reason is because of the JRE configuration environment error, when choosing the JRE environment, there are two choices, one is the Java root directory of the JRE (choose this will not succeed), One is the JRE under the JDK root directory (choose this success)!!

Jetty Access JSP page exception occurred: Org.apache.jasper.jasperexception:pwc6345:a full JDK (not just JRE) is required resolved

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.