场景

将PC1上的Tomcat连带着项目将其复制到另一台电脑上时,启动Tomcat提示:

严重: Error starting static Resources
java.lang.IllegalArgumentException: Document base E:\apache-tomcat-7.0.82\webapps\columbus-web does not exist or is not a readable directory

如图:

Tomcat提示:Error starting static Resources......Tomcat提示:Error starting static Resources......

完整错误信息:

严重: Error starting static Resources
java.lang.IllegalArgumentException: Document base E:\apache-tomcat-7.0.82\webapps\columbus-web 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:5239)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5430)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1700)
        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1690)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)

解决

原来Tomcat目录是在E盘下,后来将其复制到另一台电脑的C盘中。

但是原来Tomcat的配置文件中有原来的配置文件。

位置:

找到Tomcat下的conf目录下的server.xml

Tomcat提示:Error starting static Resources......Tomcat提示:Error starting static Resources......

原来的配置:

Tomcat提示:Error starting static Resources......Tomcat提示:Error starting static Resources......

将其路径修改为复制后的电脑路径即可。

相关文章:

  • 2022-12-23
  • 2021-05-28
  • 2021-08-13
  • 2022-01-01
  • 2021-05-14
  • 2021-09-14
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-28
  • 2021-12-11
  • 2021-07-11
  • 2021-10-10
  • 2022-01-11
  • 2022-01-01
相关资源
相似解决方案