首页 > 其他分享 >tomcat报错总结C:\Program Files\Apache Software Foundation\Tomcat 8.5\logs\catalina.2018-11-07.log (

tomcat报错总结C:\Program Files\Apache Software Foundation\Tomcat 8.5\logs\catalina.2018-11-07.log (

时间:2022-12-30 18:00:57浏览次数:52  
标签:Files 8.5 java LogManager juli 报错 logging apache org


错误问题一

java.util.logging.ErrorManager: 4
java.io.FileNotFoundException: C:\Program Files\Apache Software Foundation\Tomcat 8.5\logs\catalina.2018-11-07.log (拒绝访问。)

1、错误日志

java.util.logging.ErrorManager: 4
java.io.FileNotFoundException: C:\Program Files\Apache Software Foundation\Tomcat 8.5\logs\catalina.2018-11-07.log (拒绝访问。)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(FileOutputStream.java:270)
at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
at org.apache.juli.FileHandler.openWriter(FileHandler.java:504)
at org.apache.juli.FileHandler.<init>(FileHandler.java:176)
at org.apache.juli.AsyncFileHandler.<init>(AsyncFileHandler.java:82)
at org.apache.juli.AsyncFileHandler.<init>(AsyncFileHandler.java:74)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:601)
at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:538)
at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:336)
at java.util.logging.LogManager$3.run(LogManager.java:399)
at java.util.logging.LogManager$3.run(LogManager.java:396)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.logging.LogManager.readPrimordialConfiguration(LogManager.java:396)
at java.util.logging.LogManager.access$800(LogManager.java:145)
at java.util.logging.LogManager$2.run(LogManager.java:345)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.logging.LogManager.ensureLogManagerInitialized(LogManager.java:338)
at java.util.logging.LogManager.getLogManager(LogManager.java:378)
at java.util.logging.Logger.demandLogger(Logger.java:448)
at java.util.logging.Logger.getLogger(Logger.java:502)
at org.apache.juli.logging.DirectJDKLog.<init>(DirectJDKLog.java:68)
at org.apache.juli.logging.DirectJDKLog.getInstance(DirectJDKLog.java:188)
at org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:117)
at org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:141)
at org.apache.juli.logging.LogFactory.getLog(LogFactory.java:196)
at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:52)

2、问题分析

权限问题。

3、问题解决

进入tomcat的安装路径

我的在C:\Program Files\Apache Software Foundation中

对文件夹Apache Software Foundation,右键–》属性–》安全–》编辑

在ALL APPLICATION PACKAGES和User(***\Users)中

在下面的权限中,全部选中。

tomcat报错总结C:\Program Files\Apache Software Foundation\Tomcat 8.5\logs\catalina.2018-11-07.log (拒绝访问)_tomcat报错总结


这样既可

如果还是有问题,就对里面的文件夹执行这个操作。

错误问题二

Could not publish server configuration for Tomcat v8.5 Server at localhost.

Multiple Contexts have a path of “/jsp01”.

tomcat报错总结C:\Program Files\Apache Software Foundation\Tomcat 8.5\logs\catalina.2018-11-07.log (拒绝访问)_eclipse_02

解决方案

if:使用的eclipse tomcat 插件

在工作空间 workspace找到如下文件:
.metadata.plugins\org.eclipse.wst.server.core\tmp0\conf中的server.xml
或者
.metadata.plugins\org.eclipse.wst.server.core\tmp1\conf中的server.xml

if:使用自己安装的tomcat服务器

在Tomcat的安装目录下的\conf\server.xml中

将标签所对应的重复名称项目删除
将下面的这两个删掉

<Context docBase="jsp01" path="/jsp01" reloadable="true" source="org.eclipse.jst.jee.server:jsp01"/>
<Context docBase="jsp01" path="/jsp01" reloadable="true" source="org.eclipse.jst.jee.server:jsp01"/>

在eclipse中服务器重新部署
项目重新部署


标签:Files,8.5,java,LogManager,juli,报错,logging,apache,org
From: https://blog.51cto.com/u_15926676/5981057

相关文章

  • 【Azure Developer】Springboot 集成 中国区的Key Vault 报错 AADSTS90002: Tenant 'x
    问题描述Springboot集成azurekeyvault报错,代码参考的官方文档:https://docs.microsoft.com/en-us/azure/developer/java/spring-framework/configure-spring-boot-start......
  • 执行shell脚本报错:Syntax error: word unexpected (expecting "in")
    可能是脚本文件换行符的问题。vs创建的文件默认以CRLF(0D0A)换行。然而对于换行,windows用CRLF(0D0A)表示,linux用LF(0A)表示。切换脚本文件换行符为LF(0A)后运行成功,如在vs中更改......
  • VC6 编译报错 spawning link.exe
    报错背景我之前把D盘的VC6拷贝到E盘,后面点击“Compile”或者“Build”后被出现的“Compiling...,Errorspawningcl.exe”解决VC6比较古老了,它可能只在第一次使用的......
  • too many open files
    查看进程文件句柄设置cat/proc/<pid>/limits找到openfiles这一项,查看设置值是否过小修改值大小:在/etc/secutiry/limits.conf末尾添加:roothardnofile655360root......
  • ICMP-ping报错类型
        ICMP数据包的包头,两个重要字段Type和Code,如图所示  ICMP消息类型和编码类型 回显请求包,正常为80回显回复包,正常为00其余均为报错类型。超时:对方主......
  • 使用redisTemplate时,Lists和Sets报错
    在使用RedisUtils工具类的时候,Lists和Sets报错,原因是由于缺少谷歌的依赖,只需要添加对应的依赖即可1<dependency>2<groupId>com.google.guava</groupId>3......
  • Linux报错:pip: command not found
    问题描述CentOS7下,执行pip提示不存在#系统cat/etc/redhat-releaseCentOSLinuxrelease7.9.2009(Core)#检查python已存在$python-VPython2.7.5#检查pip,......
  • 小心Debug与Release报错行号不一样
    Debug调试版和Release发行版,它们有各用的特点和用途。但要注意抛出异常时的行号可能不相同。以下面一段代码为例:usingSystem;usingSystem.Windows.Forms;namespace......
  • kubernetes 部署报错
    1、安装网络插件报错WarningFailedCreatePodSandBox7m52skubeletFailedtocreatepodsandbox:rpcerror:code=Unknowndesc=failedtosetupsandboxcont......
  • 想通过anconda来创建一个虚拟环境,结果发现一直报错。An unexpected error has occurre
    本来想要通过condacreate-ndrf-adminpython==3.8 来创建一个虚拟环境,结果一直报错。Anunexpectederrorhasoccurred.Condahaspreparedtheabovereport.如......