Hi,
I am trying to install Apache Tomcat 9 on JDK 9 on windows. It fails with java compatibility issue like -
java.lang.NoClassDefFoundError: javax/xml/bind/ValidationEventHandler
at java.base/java.lang.Class.getDeclaredFields0(Native Method)
at java.base/java.lang.Class.privateGetDeclaredFields(Unknown Source)
When I google, I found it as JDK 9 compatibility issue and can be fixed by using --add-modules java.se.ee option when we run java.
For example, it worked when starting ORDS like -
java --add-modules java.se.ee -jar apex.war install advanced
However, for Tomcat, to start, I use -
catalina.bat start
And it gives above mentioned error. Not sure, how to fix this issue. Please help.
Thanks,
-Anand