0

I am using Tomcat 9 on JDK 9 and started tomcat like -

C:\apache-tomcat-9.0.4\bin>catalina.bat start

On the consolde it is giving errors 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 search google it is mentioned to use --add-modules java.xml.bind

But not sure about where to set this. Please help.

Thanks, -Anand

anand gp
  • 11
  • 3
  • You probably want to include links to the web pages you researched already. – GhostCat Feb 12 '18 at 10:18
  • Does solve your problem? https://stackoverflow.com/questions/43574426/how-to-resolve-java-lang-noclassdeffounderror-javax-xml-bind-jaxbexception-in-j – codebrane Feb 12 '18 at 10:23
  • Also see https://stackoverflow.com/questions/7738794/add-jvm-options-in-tomcat – Oleg Feb 12 '18 at 10:27
  • Hi, I am running Apache Tomcat as part of installation of APEX or ORDS. So, I have no knowledge about Java or Apache Tomcat. Not sure how to proceed because of issue with JDK 9 with Tomcat 9. Can someone help me what exactly I need to do to get this running. I am not able to understand how this link is suitable in my case https://stackoverflow.com/questions/43574426/how-to-resolve-java-lang-noclassdeffounderror-javax-xml-bind-jaxbexception-in-j – anand gp Feb 12 '18 at 12:01

0 Answers0