我正在编译 Amazon Web Services Elastic Beanstalk 演示并尝试在全新安装的 Arch linux 上运行它(在本地,在 tomcat7 上)。
每次,它都会失败到控制台:
Feb 18, 2012 2:31:41 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [jsp] in context with path [/TryTwo] threw exception [java.lang.IllegalStateException: No Java compiler available] with root cause
java.lang.IllegalStateException: No Java compiler available
at org.apache.jasper.JspCompilationContext.createCompiler(JspCompilationContext.java:228)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:638)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
# 哪个java /usr/bin/java # java -版本 java版本“1.7.0_03-icedtea” OpenJDK 运行时环境 (IcedTea7 2.1) (ArchLinux build 7.b147_2.1-1-x86_64) OpenJDK 64 位服务器 VM(构建 22.0-b10,混合模式)
我究竟做错了什么?