Given that 8.0.16 will also be EOL in a few days, I would recommend to switch to TomEE 9.1.x instead.
Gruß Richard Am 29. Dezember 2023 15:02:29 MEZ schrieb Felipe Rafailov <felipe.rafai...@consilux.com.br>: >Thank you, I will be upgrading to 8.0.16 and Java 17. > > > > > > >Em sex., 29 de dez. de 2023 às 10:55, Gilberto <gilbert...@gmail.com> >escreveu: > >> TomEE 1.7.5 is incompatible with java 21. >> Take a look at here https://tomee.apache.org/download-discontinued.html >> >> Regards, >> >> Gilberto >> >> On 2023/12/26 14:23:49 Felipe Rafailov wrote: >> > Hello developers! >> > >> > First and foremost, Merry Christmas to everyone! >> > >> > I just discovered TomEE and was trying to use it for my project. I saw it >> > had a Maven plugin as well (tomee-maven-plugin) and was going to give it >> a >> > try. >> > >> > I was able to change my POM file to use the plugin, previously I was >> using >> > tomcat7-maven-plugin. I built my "ROOT.war" and was ready to run TomEE. >> > >> > My "tomee:run" target was running fine until it gave me the following >> error: >> > >> > [INFO] Running 'org.apache.openejb.maven.plugin.run'. Configured TomEE in >> > plugin is localhost:8080 (plugin shutdown port is 8005 and https port is >> > 8443) >> > Started server process on port: 8080 >> > -Djava.endorsed.dirs=C:\JAVA\WS\GTW_SEINFRA\target\apache-tomee\endorsed >> is >> > not supported. Endorsed standards and standalone APIs >> > in modular form will be supported via the concept of upgradeable modules. >> > Error: Could not create the Java Virtual Machine. >> > Error: A fatal exception has occurred. Program will exit. >> > [WARNING] Failed to check or track server startup on port: 8080 >> > [INFO] Waiting for command: [quit, exit, reload] >> > >> > I was looking for more information on this error online. In some forums >> > they claim that they got Tomcat running by removing the >> > "-Djava.endorsed.dirs" parameter entirely. >> > >> > I also traced the parameter to the configuration file in >> > C:\JAVA\WS\GTW_SEINFRA\target\apache-tomee\bin\catalina.bat, where I can >> > edit the file and remove the parameter, but as soon as I hit Run, this >> file >> > gets replaced by the original version that contains the parameter. >> > >> > I was wondering if anyone else had this issue? Is there something wrong >> > with my POM file or is this simply a compatibility issue with Java 21? >> > >> > Thank you for the support! >> > >> > Regards, >> > Felipe >> > >>