You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

关于JBOSS EAP 7.0是否需JDK支持JSP及兼容OpenJDK 8 JRE的问询

JBoss EAP 7.0 JDK/JRE Requirements for JSP Support

Hey there, let's break down your questions clearly, since they're tied closely together:

1. Does JBoss EAP 7.0 require a JDK to support JSP files?

Short answer: Yes, it does.

JBoss EAP 7.0 uses Undertow as its underlying web container, and just like Tomcat, processing JSP files relies on the javac compiler to translate JSP source code into Java Servlet classes at runtime (unless you pre-compile all JSPs ahead of time). The JRE only includes runtime environment components—it doesn't come with javac or other development tools needed for this compilation step. So if your app depends on dynamic JSP compilation (which most standard setups do), you'll need a full JDK installed.

2. Can JBoss EAP 7.0 run solely on OpenJDK 8 JRE?

This depends entirely on your application's setup:

  • If you pre-compile all JSP files into Java class files before packaging your WAR/EAR (tools like Maven or Gradle can handle this), then JBoss EAP 7.0 can run on just the OpenJDK 8 JRE. The server won't need to compile JSPs at runtime, so the lack of javac won't cause issues.
  • If you have dynamic JSPs that need runtime compilation, then no—you must install the full OpenJDK 8 JDK. Without the javac compiler from the JDK, the server will fail to turn JSPs into servlets, leading to errors when users access those pages.

Also, while JBoss EAP's core runtime might technically launch on a JRE, some administrative tools and optional features depend on JDK-specific libraries. For a stable production environment (especially with JSPs), using the full JDK is strongly recommended—just like you've observed with Tomcat.


内容的提问来源于stack exchange,提问作者developer

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.14 07:12:42