zoukankan      html  css  js  c++  java
  • Linux下启动tomcat报错RROR org.apache.catalina.core.StandardContext- Error starting static Resources java.lang.IllegalArgumentException: Document base /home/duiba/apache-tomcat/webapps/../webapps/manager do

    部署项目的时候,重启tomcat,死活起不来,很郁闷,网上巴拉了半天,结合自己的情况,找到了原因;

    错误日志信息:

    2018-12-13 13:52:26,992 [main] INFO  org.apache.catalina.core.AprLifecycleListener- The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
    2018-12-13 13:52:27,052 [main] WARN  org.apache.tomcat.util.digester.Digester- [SetAllPropertiesRule]{Server/Service/Connector} Setting property 'maxSpareThreads' to '512' did not find a matching property.
    2018-12-13 13:52:27,394 [main] INFO  org.apache.coyote.http11.Http11NioProtocol- Initializing ProtocolHandler ["http-nio-2015"]
    2018-12-13 13:52:27,685 [main] INFO  org.apache.tomcat.util.net.NioSelectorPool- Using a shared selector for servlet write/read
    2018-12-13 13:52:27,688 [main] INFO  org.apache.coyote.http11.Http11Protocol- Initializing ProtocolHandler ["http-bio-9094"]
    2018-12-13 13:52:27,695 [main] INFO  org.apache.catalina.startup.Catalina- Initialization processed in 976 ms
    2018-12-13 13:52:27,732 [main] INFO  org.apache.catalina.core.StandardService- Starting service Catalina
    2018-12-13 13:52:27,732 [main] INFO  org.apache.catalina.core.StandardEngine- Starting Servlet Engine: ONIP SOABean OpenAS V300R002C50SPC100
    2018-12-13 13:52:27,796 [localhost-startStop-1] ERROR org.apache.catalina.core.StandardContext- Error starting static Resources
    java.lang.IllegalArgumentException: Document base /home/duiba/apache-tomcat/webapps/../webapps/manager does not exist or is not a readable directory
            at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:138)
            at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4912)
            at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5092)
            at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
            at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1517)
            at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1508)
            at java.util.concurrent.FutureTask.run(FutureTask.java:266)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
            at java.lang.Thread.run(Thread.java:745)
    2018-12-13 13:52:27,800 [localhost-startStop-1] ERROR org.apache.catalina.core.StandardContext- Error in resourceStart()
    2018-12-13 13:52:27,822 [localhost-startStop-1] ERROR org.apache.catalina.core.StandardContext- Error getConfigured
    2018-12-13 13:52:27,823 [localhost-startStop-1] ERROR org.apache.catalina.core.StandardContext- Context [/manager] startup failed due to previous errors
    2018-12-13 13:52:27,923 [localhost-startStop-1] INFO  org.apache.catalina.loader.WebappClassLoader- validateJarFile(/home/duiba/apache-tomcat/webapps/duiba/WEB-INF/lib/servlet-api-1.0.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class

      分析原因:原来是因为我自己的原因,为了把原来的东西个删除干净,我把tomcat自带的manager目录也给删除了,这就尴尬了,启动的时候就一直有这个错误的日志信息在打印(事实上,这个错误并不影响程序的运行),但是日志一直有Error还是不好的,我就把其他模块的manager给复制了一份,并传到了改服务器上,然后重新启动服务,启动成功了!感觉下次要小心了,不能乱删东西啊!

  • 相关阅读:
    Linux命令大全之关机重启命令
    Linux命令大全之帮助命令及压缩命令
    Linux命令大全之搜索命令
    Linux命令大全之基本命令
    Linux安装界面简介
    Linux 的ftp服务未启用怎么办
    创建分区表
    Linux分区,格式化概念理解
    VMware简介
    Linux简介
  • 原文地址:https://www.cnblogs.com/zhang-yawei/p/10143936.html
Copyright © 2011-2022 走看看