Tomcat的异常 之 java.lang.IllegalArgumentException: Document base
2011-10-11 17:32
585 查看
ava.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本身中$代表tomcat的安装目录
如果在netbeans中$代表netbeans的工作目录,如C:\Documents and Settings\Administrator\.netbeans\6.9
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本身中$代表tomcat的安装目录
如果在netbeans中$代表netbeans的工作目录,如C:\Documents and Settings\Administrator\.netbeans\6.9
相关文章推荐
- Tomcat的异常 之 java.lang.IllegalArgumentException: Document base
- Tomcat的异常 java.lang.IllegalArgumentException: Document base 发现问题解决问题
- 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 readabl
- 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 *** does not exist or is not a readable
- Tomcat的异常 之 java.lang.IllegalArgumentException: Document base
- tomcat启动时报:java.lang.IllegalArgumentException: Document base D:\apache-tomcat-6.0.20\webapps
- java.lang.IllegalArgumentException: Document base D:\Program Files\Apache Software Foundation\Tomcat
- java.lang.IllegalArgumentException: Document base D:\apache-tomcat-6.0.20\webapps\XXX错误
- Tomcat启动时出现java.lang.IllegalArgumentException: Document base D:\apache-tomcat-6.0.20\webapps\XXX doe
- java.lang.IllegalArgumentException: Document base D:\apache-tomcat-7.0.61\webapps\xxxx does no
- java.lang.IllegalArgumentException: Document base D:\apache-tomcat-pointfor\webapps\manager does not
- java.lang.IllegalArgumentException: Document base D:\apache-tomcat-6.0.37\webapps\host-manager does
- java.lang.IllegalArgumentException: Document base D:\apache-tomcat-6.0.20\webapps\bookstore does not
- java.lang.IllegalArgumentException: Document base D:\apache-tomcat-6.0.45\webapps\项目不存在错误
- 解决java.lang.IllegalArgumentException: Document base D:\jakarta-tomcat-5.0.28\webapps\BIDemo does not