zoukankan      html  css  js  c++  java
  • The main resource set specified [/tmp/tomcat-docbase.5063501203886177649.7000] is not valid

    启动某个springboot项目的时候,后台报错 The main resource set specified [/tmp/tomcat-docbase.5063501203886177649.7000] is not valid

    具体错误信息如下:

     1 4:13:45.022 logback [main] ERROR o.s.boot.SpringApplication - Application startup failed
     2 org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.boot.context.embedded.EmbeddedServletContainerException: Unable to start embedded Tomcat
     3     at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:137)
     4     at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:537)
     5     at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)
     6     at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693)
     7     at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360)
     8     at org.springframework.boot.SpringApplication.run(SpringApplication.java:303)
     9     at org.springframework.boot.SpringApplication.run(SpringApplication.java:1118)
    10     at org.springframework.boot.SpringApplication.run(SpringApplication.java:1107)
    11     at com.xxl.job.executor.XxlJobExecutorApplication.main(XxlJobExecutorApplication.java:19)
    12     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    13     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    14     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    15     at java.lang.reflect.Method.invoke(Method.java:498)
    16     at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
    17     at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
    18     at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
    19     at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51)
    20 Caused by: org.springframework.boot.context.embedded.EmbeddedServletContainerException: Unable to start embedded Tomcat
    21     at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.initialize(TomcatEmbeddedServletContainer.java:138)
    22     at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.<init>(TomcatEmbeddedServletContainer.java:87)
    23     at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory.getTomcatEmbeddedServletContainer(TomcatEmbeddedServletContainerFactory.java:554)
    24     at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory.getEmbeddedServletContainer(TomcatEmbeddedServletContainerFactory.java:179)
    25     at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.createEmbeddedServletContainer(EmbeddedWebApplicationContext.java:164)
    26     at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:134)
    27     ... 16 common frames omitted
    28 Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardServer[-1]]
    29     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
    30     at org.apache.catalina.startup.Tomcat.start(Tomcat.java:366)
    31     at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.initialize(TomcatEmbeddedServletContainer.java:114)
    32     ... 21 common frames omitted
    33 Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardService[Tomcat]]
    34     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
    35     at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:793)
    36     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    37     ... 23 common frames omitted
    38 Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat]]
    39     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
    40     at org.apache.catalina.core.StandardService.startInternal(StandardService.java:422)
    41     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    42     ... 25 common frames omitted
    43 Caused by: org.apache.catalina.LifecycleException: A child container failed during start
    44     at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:950)
    45     at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)
    46     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    47     ... 27 common frames omitted
    48 Caused by: java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost]]
    49     at java.util.concurrent.FutureTask.report(FutureTask.java:122)
    50     at java.util.concurrent.FutureTask.get(FutureTask.java:192)
    51     at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:942)
    52     ... 29 common frames omitted
    53 Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost]]
    54     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
    55     at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1420)
    56     at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1410)
    57     at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    58     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    59     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    60     at java.lang.Thread.run(Thread.java:748)
    61 Caused by: org.apache.catalina.LifecycleException: A child container failed during start
    62     at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:950)
    63     at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:872)
    64     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    65     ... 6 common frames omitted
    66 Caused by: java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].TomcatEmbeddedContext[]]
    67     at java.util.concurrent.FutureTask.report(FutureTask.java:122)
    68     at java.util.concurrent.FutureTask.get(FutureTask.java:192)
    69     at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:942)
    70     ... 8 common frames omitted
    71 Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].TomcatEmbeddedContext[]]
    72     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
    73     ... 6 common frames omitted
    74 Caused by: org.apache.catalina.LifecycleException: Failed to start component [org.apache.catalina.webresources.StandardRoot@63518bbd]
    75     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
    76     at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4907)
    77     at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5042)
    78     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    79     ... 6 common frames omitted
    80 Caused by: java.lang.IllegalArgumentException: The main resource set specified [/tmp/tomcat-docbase.5063501203886177649.7000] is not valid
    81     at org.apache.catalina.webresources.StandardRoot.createMainResourceSet(StandardRoot.java:748)
    82     at org.apache.catalina.webresources.StandardRoot.startInternal(StandardRoot.java:706)
    83     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

    本次问题的解决方法如下,作为个人记录

     由于在线上服务器经常遇到磁盘满的问题,所以这次也特第看了一下

    命令: df -h

    果然是磁盘满了,但是没有截图,是清理完成之后才截的图, /dev/mapper/vg_centos6-lv_root 这个目录达到了100%

    清理工作:

    参考 : https://blog.csdn.net/cwd79457245/article/details/59522838

  • 相关阅读:
    easyexcel: The maximum length of cell contents (text) is 32,767 characters
    分库分表情况下添加索引
    如何保证消息顺序执行(Rabbitmq/kafka)
    MySQL Boolean类型的坑
    Redis居然还有比RDB和AOF更强大的持久化方式?
    ThreadLocal的应用场景和注意事项有哪些?
    spring boot 设置tomcat post参数限制
    并发慎用——System.currentTimeMillis()
    Java多线程中static变量的使用
    临时修改session日期格式冲突问题
  • 原文地址:https://www.cnblogs.com/hdllhd/p/11389094.html
Copyright © 2011-2022 走看看