gpt4 book ai didi

tomcat8 - 如何解决java.lang.IllegalStateException : No Java compiler available for configuration options compilerClassName

转载 作者:行者123 更新时间:2023-12-02 00:17:54 31 4
gpt4 key购买 nike

如何解决java.lang.IllegalStateException:没有可用于配置选项compilerClassName的Java编译器。我使用 embedded-tomcat 8.0.46 和 spring 4.3.10.RELEASE

java.lang.IllegalStateException: No Java compiler available for configuration options compilerClassName: [null] and comp
iler: [null]
at org.apache.jasper.JspCompilationContext.createCompiler(JspCompilationContext.java:231)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:578)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:363)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:340)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:716)

最佳答案

尝试添加

<dependency>
<groupId>org.eclipse.jdt.core.compiler</groupId>
<artifactId>ecj</artifactId>
<version>4.6.1</version>
<scope>provided</scope>
</dependency>

到 maven pom.xml。

看: https://www.mkyong.com/spring-boot/spring-boot-web-jsp-no-java-compiler-available/

关于tomcat8 - 如何解决java.lang.IllegalStateException : No Java compiler available for configuration options compilerClassName,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45937784/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com