"java.nio.file.NoSuchFileException: default.policy" found in the Tomcat log after OpenJDK upgrade

Solution Verified - Updated -

Issue

  • After using "yum/dnf update java-1.8.0-openjdk", the error "java.nio.file.NoSuchFileException: /usr/lib/jvm/java-11-openjdk-/lib/security/default.policy" is found in the Tomcat log

Environment

  • JBoss Web Server (JWS/Tomcat)
    • 5
    • Tomcat was running during the yum update
    • JAVA_HOME is set to the symlink: /usr/lib/jvm/jre-11-openjdk/
  • OpenJDK
    • 11

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content