Skip to content

Instantly share code, notes, and snippets.

@pbkwee
Created March 9, 2018 00:29
Show Gist options
  • Save pbkwee/8739f5ca4edc0597bf7916ead817bc50 to your computer and use it in GitHub Desktop.
Save pbkwee/8739f5ca4edc0597bf7916ead817bc50 to your computer and use it in GitHub Desktop.
java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlRootElement
=>
--add-modules java.xml.bind
-Djava.endorsed.dirs=/usr/local/tomcat/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.
=>
root@ri:/usr/local/tomcat# find . | grep endors
./endorsed
./endorsed/jaxb-api.jar
root@ri:/usr/local/tomcat# rm -rf endorsed/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment