我正在尝试运行本地Tomcat环境,并且始终遇到以下错误:
Can't load log handler "2localhost.org.apache.juli.FileHandler"
java.lang.ClassNotFoundException: 2localhost.org.apache.juli.FileHandler
java.lang.ClassNotFoundException: 2localhost.org.apache.juli.FileHandler
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
我已经确认%TOMCAT_HOME%/ bin中存在'tomcat-juli.jar'。
把头发拉出来。它几乎消失了......非常感谢您提供的任何帮助。谢谢! :)
答案 0 :(得分:1)
答案 1 :(得分:1)
您修改了catalina.policy配置吗?
grant codeBase "file:${catalina.home}/bin/tomcat-juli.jar" {
permission java.security.AllPermission;
permission java.lang.RuntimePermission "setContextClassLoader";
};