java.lang.IllegalArgumentException: Document base /usr/local/src/artifactory/tomcat/webapps/artifactory does not exist or is not a readable directory

JFrog JIRA | Sam Xiao | 2 years ago
  1. 0

    I follow the guide here: https://www.jfrog.com/confluence/display/RTF/Upgrading+Artifactory to upgrade Artifactory Pro Standalone Installation, and replacing folder _tomcat/_ But `service artifactory start` doesn't actually boot up the artifactory {code} # service artifactory start Starting Artifactory tomcat as user artifactory... Using CATALINA_BASE: /usr/local/src/artifactory/tomcat Using CATALINA_HOME: /usr/local/src/artifactory/tomcat Using CATALINA_TMPDIR: /usr/local/src/artifactory/tomcat/temp Using JRE_HOME: /usr/lib/jvm/java-7-oracle Using CLASSPATH: /usr/local/src/artifactory/tomcat/bin/bootstrap.jar:/usr/local/src/artifactory/tomcat/bin/tomcat-juli.jar Tomcat started. Artifactory Tomcat started in normal mode {code} *catalina.out* log {code} Mar 24, 2015 10:31:20 PM org.apache.catalina.startup.SetAllPropertiesRule begin WARNING: [SetAllPropertiesRule]{Server/Service/Connector} Setting property 'maxSpareThreads' to '150' did not find a matching property. Mar 24, 2015 10:31:21 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["http-bio-8081"] Mar 24, 2015 10:31:21 PM org.apache.catalina.core.StandardService startInternal INFO: Starting service Catalina Mar 24, 2015 10:31:21 PM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet Engine: Apache Tomcat/7.0.56 Mar 24, 2015 10:31:21 PM org.apache.catalina.startup.HostConfig deployDescriptor INFO: Deploying configuration descriptor /usr/local/src/artifactory/tomcat/conf/Catalina/localhost/artifactory.xml Mar 24, 2015 10:31:21 PM org.apache.catalina.startup.HostConfig deployDescriptor WARNING: A docBase /usr/local/src/artifactory/tomcat/webapps/${artifactory.home}/webapps/artifactory.war inside the host appBase has been specified, and will be ignored Mar 24, 2015 10:31:21 PM org.apache.catalina.core.StandardContext resourcesStart SEVERE: Error starting static Resources java.lang.IllegalArgumentException: Document base /usr/local/src/artifactory/tomcat/webapps/artifactory does not exist or is not a readable directory at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:136) at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:5110) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5294) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:672) at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1861) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) Mar 24, 2015 10:31:21 PM org.apache.catalina.core.ContainerBase addChildInternal SEVERE: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/artifactory]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:672) at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1861) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) Caused by: org.apache.catalina.LifecycleException: Error in resourceStart() at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5295) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) ... 10 more Mar 24, 2015 10:31:21 PM org.apache.catalina.startup.HostConfig deployDescriptor SEVERE: Error deploying configuration descriptor /usr/local/src/artifactory/tomcat/conf/Catalina/localhost/artifactory.xml java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/artifactory]] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:904) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:672) at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1861) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) Mar 24, 2015 10:31:21 PM org.apache.catalina.startup.HostConfig deployDescriptor INFO: Deployment of configuration descriptor /usr/local/src/artifactory/tomcat/conf/Catalina/localhost/artifactory.xml has finished in 71 ms Mar 24, 2015 10:31:21 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory /usr/local/src/artifactory/tomcat/webapps/ROOT Mar 24, 2015 10:31:21 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deployment of web application directory /usr/local/src/artifactory/tomcat/webapps/ROOT has finished in 437 ms Mar 24, 2015 10:31:21 PM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["http-bio-8081"] {code} {code} Mar 24, 2015 10:43:29 PM org.apache.catalina.startup.SetAllPropertiesRule begin WARNING: [SetAllPropertiesRule]{Server/Service/Connector} Setting property 'maxSpareThreads' to '150' did not find a matching property. Mar 24, 2015 10:43:29 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["http-bio-8081"] Mar 24, 2015 10:43:29 PM org.apache.catalina.core.StandardService startInternal INFO: Starting service Catalina Mar 24, 2015 10:43:29 PM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet Engine: Apache Tomcat/7.0.56 Mar 24, 2015 10:43:29 PM org.apache.catalina.startup.HostConfig deployDescriptor INFO: Deploying configuration descriptor /usr/local/src/artifactory/tomcat/conf/Catalina/localhost/artifactory.xml Mar 24, 2015 10:43:30 PM org.apache.catalina.startup.HostConfig deployDescriptor INFO: Deployment of configuration descriptor /usr/local/src/artifactory/tomcat/conf/Catalina/localhost/artifactory.xml has finished in 537 ms Mar 24, 2015 10:43:30 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory /usr/local/src/artifactory/tomcat/webapps/ROOT Mar 24, 2015 10:43:30 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deployment of web application directory /usr/local/src/artifactory/tomcat/webapps/ROOT has finished in 88 ms Mar 24, 2015 10:43:30 PM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["http-bio-8081"] {code}

    JFrog JIRA | 2 years ago | Sam Xiao
    java.lang.IllegalArgumentException: Document base /usr/local/src/artifactory/tomcat/webapps/artifactory does not exist or is not a readable directory
  2. 0

    I follow the guide here: https://www.jfrog.com/confluence/display/RTF/Upgrading+Artifactory to upgrade Artifactory Pro Standalone Installation, and replacing folder _tomcat/_ But `service artifactory start` doesn't actually boot up the artifactory {code} # service artifactory start Starting Artifactory tomcat as user artifactory... Using CATALINA_BASE: /usr/local/src/artifactory/tomcat Using CATALINA_HOME: /usr/local/src/artifactory/tomcat Using CATALINA_TMPDIR: /usr/local/src/artifactory/tomcat/temp Using JRE_HOME: /usr/lib/jvm/java-7-oracle Using CLASSPATH: /usr/local/src/artifactory/tomcat/bin/bootstrap.jar:/usr/local/src/artifactory/tomcat/bin/tomcat-juli.jar Tomcat started. Artifactory Tomcat started in normal mode {code} *catalina.out* log {code} Mar 24, 2015 10:31:20 PM org.apache.catalina.startup.SetAllPropertiesRule begin WARNING: [SetAllPropertiesRule]{Server/Service/Connector} Setting property 'maxSpareThreads' to '150' did not find a matching property. Mar 24, 2015 10:31:21 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["http-bio-8081"] Mar 24, 2015 10:31:21 PM org.apache.catalina.core.StandardService startInternal INFO: Starting service Catalina Mar 24, 2015 10:31:21 PM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet Engine: Apache Tomcat/7.0.56 Mar 24, 2015 10:31:21 PM org.apache.catalina.startup.HostConfig deployDescriptor INFO: Deploying configuration descriptor /usr/local/src/artifactory/tomcat/conf/Catalina/localhost/artifactory.xml Mar 24, 2015 10:31:21 PM org.apache.catalina.startup.HostConfig deployDescriptor WARNING: A docBase /usr/local/src/artifactory/tomcat/webapps/${artifactory.home}/webapps/artifactory.war inside the host appBase has been specified, and will be ignored Mar 24, 2015 10:31:21 PM org.apache.catalina.core.StandardContext resourcesStart SEVERE: Error starting static Resources java.lang.IllegalArgumentException: Document base /usr/local/src/artifactory/tomcat/webapps/artifactory does not exist or is not a readable directory at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:136) at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:5110) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5294) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:672) at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1861) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) Mar 24, 2015 10:31:21 PM org.apache.catalina.core.ContainerBase addChildInternal SEVERE: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/artifactory]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:672) at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1861) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) Caused by: org.apache.catalina.LifecycleException: Error in resourceStart() at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5295) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) ... 10 more Mar 24, 2015 10:31:21 PM org.apache.catalina.startup.HostConfig deployDescriptor SEVERE: Error deploying configuration descriptor /usr/local/src/artifactory/tomcat/conf/Catalina/localhost/artifactory.xml java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/artifactory]] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:904) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:672) at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1861) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) Mar 24, 2015 10:31:21 PM org.apache.catalina.startup.HostConfig deployDescriptor INFO: Deployment of configuration descriptor /usr/local/src/artifactory/tomcat/conf/Catalina/localhost/artifactory.xml has finished in 71 ms Mar 24, 2015 10:31:21 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory /usr/local/src/artifactory/tomcat/webapps/ROOT Mar 24, 2015 10:31:21 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deployment of web application directory /usr/local/src/artifactory/tomcat/webapps/ROOT has finished in 437 ms Mar 24, 2015 10:31:21 PM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["http-bio-8081"] {code} {code} Mar 24, 2015 10:43:29 PM org.apache.catalina.startup.SetAllPropertiesRule begin WARNING: [SetAllPropertiesRule]{Server/Service/Connector} Setting property 'maxSpareThreads' to '150' did not find a matching property. Mar 24, 2015 10:43:29 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["http-bio-8081"] Mar 24, 2015 10:43:29 PM org.apache.catalina.core.StandardService startInternal INFO: Starting service Catalina Mar 24, 2015 10:43:29 PM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet Engine: Apache Tomcat/7.0.56 Mar 24, 2015 10:43:29 PM org.apache.catalina.startup.HostConfig deployDescriptor INFO: Deploying configuration descriptor /usr/local/src/artifactory/tomcat/conf/Catalina/localhost/artifactory.xml Mar 24, 2015 10:43:30 PM org.apache.catalina.startup.HostConfig deployDescriptor INFO: Deployment of configuration descriptor /usr/local/src/artifactory/tomcat/conf/Catalina/localhost/artifactory.xml has finished in 537 ms Mar 24, 2015 10:43:30 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory /usr/local/src/artifactory/tomcat/webapps/ROOT Mar 24, 2015 10:43:30 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deployment of web application directory /usr/local/src/artifactory/tomcat/webapps/ROOT has finished in 88 ms Mar 24, 2015 10:43:30 PM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["http-bio-8081"] {code}

    JFrog JIRA | 2 years ago | Sam Xiao
    java.lang.IllegalArgumentException: Document base /usr/local/src/artifactory/tomcat/webapps/artifactory does not exist or is not a readable directory
  3. 0

    Creating Maven Web Service on Tomcat

    Stack Overflow | 4 years ago | ekremk
    java.lang.IllegalArgumentException: Document base /home/ekcdr/NetBeansProjects/d1/target/d1-1.0-SNAPSHOT does not exist or is not a readable directory
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    How to remove previous projects from work folder in tomcat 7

    Stack Overflow | 4 years ago | Java Questions
    java.lang.IllegalArgumentException: Document base D:\netbeans_workspace\Servlets-DWR\build\web does not exist or is not a readable directory
  6. 0

    HTTP Status 404 - /helloWorld/ error

    icesoft.org | 6 months ago
    java.lang.IllegalArgumentException: Document base C:\Users\joram\Documents\NetBeansProjects\myVaadinApp\build\web does not exist or is not a readable directory

  1. treefolk 1 times, last 2 weeks ago
  2. Tahir 1 times, last 2 months ago
  3. linxiaolong 3 times, last 2 weeks ago
  4. linxiaolong 5 times, last 3 months ago
  5. jedcua 2 times, last 4 months ago
2 more registered users
10 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalArgumentException

    Document base /usr/local/src/artifactory/tomcat/webapps/artifactory does not exist or is not a readable directory

    at org.apache.naming.resources.FileDirContext.setDocBase()
  2. Web Container Naming Utilities
    FileDirContext.setDocBase
    1. org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:136)
    1 frame
  3. Glassfish Core
    HostConfig$DeployDescriptor.run
    1. org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:5110)
    2. org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5294)
    3. org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    4. org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
    5. org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
    6. org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649)
    7. org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:672)
    8. org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1861)
    8 frames
  4. Java RT
    Thread.run
    1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    2. java.util.concurrent.FutureTask.run(FutureTask.java:262)
    3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    5. java.lang.Thread.run(Thread.java:744)
    5 frames