Home > Enterprise >  TomEE 8 Server being limited to Java EE7 Web apps in Netbeans 15
TomEE 8 Server being limited to Java EE7 Web apps in Netbeans 15

Time:10-24

So I've installed the latest Apache TomEE 8 Server from here: Screenshot of Java EE Version selection drop-down

CodePudding user response:

I can reproduce your problem using NetBeans 15 JDK 17.0.2 TomEE 8.0.12.

Adding the TomEE 8.0.12 server works fine (Services > Servers > Add Server...), and it can be started and stopped within NetBeans, but there is no corresponding Java EE 8 Web option available in the Java EE Version drop list when creating an Ant Web Application, as shown in your screen shot.

This issue has already been reported as a NetBeans bug (see issue #4027: No Java EE 8 Web Server option for TomEE 8.0.11 and TomEE 9.0.0 M7), but unfortunately it doesn't look like the issue has even been assigned to anyone yet.

The obvious workaround, as suggested by Basil Bourque in the comments to the OP, is to create your web application with Maven or Gradle instead. A messier alternative would be to create the Ant project as a Java EE 7 Web project, and then edit that project's configuration files to upgrade it to use Java EE 8. That approach sounds straightforward, but I suspect in practice it might prove to be tricky.

  • Related