简体   繁体   English

Google App Engine演示应用程序JSP页面创建500错误

[英]Google app engine demo app jsp page creates 500 error

Hello I am trying out Google app engine and eclipse. 您好,我正在尝试使用Google App Engine和Eclipse。 I ihave installed the google plug in and have copied the code in the demo exactly. 我已经安装了Google插件,并已在演示中完全复制了代码。 I saw a similar question posted here and I tried the solution of making sure the JDK was checked instead of JRE. 我在这里看到了类似的问题,我尝试了确保检查JDK而不是JRE的解决方案。 I am using the guestbook demo for java and when I get to the part where I add the jsp page I am still getting this error : 我正在使用Java的guestbook演示,当我到达添加jsp页面的部分时,仍然出现此错误:

HTTP ERROR 500 Problem accessing /. HTTP错误500访问/时出现问题。 Reason: 原因:

Error running javac.exe compiler

Caused by: Error running javac.exe compiler at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:509) at org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExternal.java:61) at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1065) at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:882) 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) 由以下原因引起的:在org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExternal)上在org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:509)上运行javac.exe编译器时出错.java:61),位于org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1065),位于org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:882)。 org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)上的apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)在org.apache.jasper.compiler.Compiler.compile(Compiler。的org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)的java:451)org.apache.jasper.servlet.JspServletWrapper的org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)处org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)上的.service(JspServletWrapper.java:295)

You may have run the ant target before switching JRE to JDK so the launch configuration is old and refers to the JRE which doesn't have a javac.exe. 在将JRE切换到JDK之前,您可能已经运行了ant目标,因此启动配置很旧,并且引用了没有javac.exe的JRE。

Try opening the launch configuration (by selecting the Run As... menu entry - the dots are important), and verify that this Java Runtime points to the JDK also. 尝试打开启动配置(通过选择Run As ...菜单项-这些点很重要),并验证 Java Runtime是否也指向JDK。 This should fix it. 这应该解决它。 Also verify that you actually have switched the JRE correctly for all of Eclipse in the Preferences. 还要在“首选项”中验证您是否确实已为所有Eclipse正确切换了JRE。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM