Reputation: 31
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.
Upvotes: 3
Views: 4314
Reputation: 563
Adding <Resources allowLinking="true" />
to conf/context.xml inside <Context>
fixed it for me.
Upvotes: 0
Reputation: 5135
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"
Upvotes: 1