Tomcat的异常 之 java.lang.IllegalArgumentException:Document base *** does not exist or is not a readable
2011-06-28 10:27
951 查看
这个异常是经常遇到的异常情况。
Tomcat的异常 之 java.lang.IllegalArgumentException: Document base
有些刚开始使用的Tomcat的朋友会出现的问题,明明已经将某个web应用从tomcat下的webapps下移除了,为什么还会抛这样的异常呢?
?
java.lang.IllegalArgumentException: Document base *** does not exist or is not a readable
directory
at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:141)
at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:3957)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4126)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
********
.................
其实这个问题很简单,tomcat的一个应用不只是那个文件夹而已...
详细操作应该是这样的:
确定3点:
1.该项目的War文件从***\apache-tomcat-6.0.16\webapps 移出;
2.该项目的某些配置从 ***apache-tomcat-6.0.16\work\Catalina\localhost 移除;
3.该项目的配置文件,目录: ***\apache-tomcat-6.0.16\conf\Catalina\localhost移除。
Tomcat的异常 之 java.lang.IllegalArgumentException: Document base
有些刚开始使用的Tomcat的朋友会出现的问题,明明已经将某个web应用从tomcat下的webapps下移除了,为什么还会抛这样的异常呢?
?
java.lang.IllegalArgumentException: Document base *** does not exist or is not a readable
directory
at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:141)
at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:3957)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4126)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
********
.................
其实这个问题很简单,tomcat的一个应用不只是那个文件夹而已...
详细操作应该是这样的:
确定3点:
1.该项目的War文件从***\apache-tomcat-6.0.16\webapps 移出;
2.该项目的某些配置从 ***apache-tomcat-6.0.16\work\Catalina\localhost 移除;
3.该项目的配置文件,目录: ***\apache-tomcat-6.0.16\conf\Catalina\localhost移除。
相关文章推荐
- Tomcat的异常 之 java.lang.IllegalArgumentException:Document base *** does not exist or is not a readable
- Tomcat的异常 之 java.lang.IllegalArgumentException: Document base *** does not exist or is not a readable
- (转)Tomcat的异常 之 java.lang.IllegalArgumentException: Document base *** does not exist or is not a readable
- Tomcat的异常 之 java.lang.IllegalArgumentException: Document base *** does not exist or is not a readable
- Tomcat的异常 之 java.lang.IllegalArgumentException: Document base xxx does not exist or is not a readab
- Tomcat-java.lang.IllegalArgumentException: Document base F:apps does not exist or is not a readable
- Error starting static Resources java.lang.IllegalArgumentException: Document base D:\Program Files\apache-tomcat-xxx\webapps\xxx does not exist or is not a readable directory
- Tomcat的异常 之 java.lang.IllegalArgumentException: Document base *** does not exist or is not a readabl
- tomcat的java.lang.IllegalArgumentException:Document base *** does not exist or is not a readable
- tomcat启动报错:java.lang.IllegalArgumentException: Document base D:\apache-tomcat-6.0.45\webapps\activiti-explorer does not exist or is not a readable directory
- java.lang.IllegalArgumentException: Document base (文件夹路) does not exist or is not a readable directo
- java.lang.IllegalArgumentException: Document base *** does not exist or is not a readable
- java.lang.IllegalArgumentException: Document base F:\personal\projects\annoMVC\web does not exist or is not a readable directory
- java.lang.IllegalArgumentException: Document base D:\Tomcat 6.0\webapps\xxx does not exist or is not
- java.lang.IllegalArgumentException: Document base XXXXX does not exist or is not a readable directory
- java.lang.IllegalArgumentException: Document base *** does not exist or is not a readable
- java.lang.IllegalArgumentException:Document base ……does not exist or is not a readable directory错误的解决方案
- java.lang.IllegalArgumentException: Document base *** does not exist or is not a readable
- java.lang.IllegalArgumentException: Document base D:\myspace\MyProj\WebContent does not exist or is
- tomcat java.lang.IllegalArgumentException probe does not exist or is not a readable directory