Getting symlink warning after migrating to Tomcat sever 8.5.65

Viewed 1039

Getting symlink error after migrating to tomcat server 8.5.65 On tomcat startup (running spring mvc project) getting symlink error as below:

SEVERE : org.apache.catalina.webresources.AbstractFileResourceSet.file Resource for web application [/] at path [/] was not loaded as the canonical path [/] did not match. Use of symlinks is one possible cause.

1 Answers

We found that in our case, this error was appearing because the default character set in our OS was not set to UTF-8. To resolve, we added the following lines to the TOMCAT_HOME/bin/setenv.sh script:

export LC_ALL="en_US.utf-8"
export LANG="$LC_ALL"
Related