Tomcat的异常 之 java.lang.IllegalArgumentException:Document base *** does not exist or is not a readable

这个异常是经常遇到的异常情况。

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移除。

时间: 2024-09-16 09:33:36

Tomcat的异常 之 java.lang.IllegalArgumentException:Document base *** does not exist or is not a readable的相关文章

java.lang.IllegalArgumentException 错误异常求解

问题描述 java.lang.IllegalArgumentException 错误异常求解 上面是代码的日志 求大神指点 解决方案 有一个方法传参或者是什么,参数类型错了 看看提示在哪一行 解决方案二: 解决spring的java.lang.IllegalArgumentException异常.hibernate中java.lang.IllegalArgumentException异常可能的原因

Tomcat启动报错:java.lang.IllegalArgumentException: Can't convert argument:null

一.发现问题为了避免导入的项目重名,我先修改了前一个项目的名称. 重新启动该项目至tomcat,报错:java.lang.IllegalArgumentException: Can't convert argument: null   二.发现问题因为MyEclipse在修改项目名时候,自动更新部署了web.xml文件 并且重新生成了xml文件的头部声明. 新增了java的命名把这个javaee去掉就可以了,一般情况下他会修改servlet的配置. <filter>      <filt

java.lang.IllegalArgumentException 异常,求大牛说下解决方案

问题描述 java.lang.IllegalArgumentException 异常,求大牛说下解决方案 解决方案 java.lang.IllegalArgumentException的解决方案java.lang.IllegalArgumentException:(读取配置文件异常) 解决方案二: 这是用了spring框架吧,报是非法的参数错误,你看一下配置文件中是否有不存在的类,或者其它地方有不存在的一些类或者其它的内容.还有同样问题的参考:http://bbs.csdn.net/topics

java.lang.IllegalArgumentException: Wrong FS ...异常的解决

配置完Hbase后,启动,JPS发现少了HMaster这个进程.查看了一下日志如下: java.lang.IllegalArgumentException: Wrong FS: hdfs://192.168.0.131:9000/hbase, expected: hdfs://icache-9200.site:9000 at org.apache.hadoop.fs.FileSystem.checkPath(FileSystem.java:310) at org.apache.hadoop.hd

java.lang.IllegalArgumentException

问题描述 java.lang.IllegalArgumentException java.lang.IllegalArgumentException: Cannot convert value of type [com.citics.monitor.f9.service.F009Service] to required type [com.citics.monitor.f8.service.F008Service] for property 'service': no matching edit

servlet SearchVisit 的某一服务方法创建了未捕获到的异常。创建的异常:java.lang.NullPointerException

问题描述 RT:本地tomcat无问题.[15-3-49:45:13:731GMT+08:00]00000032servletEcom.ibm.ws.webcontainer.servlet.ServletWrapperserviceSRVE0068E:应用程序中servletSearchVisit的某一服务方法创建了未捕获到的异常.创建的异常:java.lang.NullPointerExceptionatSearchVisit.performTask(SearchVisit.java:217

java.lang.IllegalArgumentException: Request header is too large

tomcat运行项目时,有一个请求过去后,后台报这样的错java.lang.IllegalArgumentException: Request header is too large原因:请求头超过了tomcat的限值.本来post请求是没有参数大小限制,但是服务器有自己的默认大小.解决:处理办法:在server.xml中 <Connector connectionTimeout="20000" port="8080" protocol="HTTP/

反射-java.lang.IllegalArgumentException: object is not an instance of declaring class

问题描述 java.lang.IllegalArgumentException: object is not an instance of declaring class 目的:将目标xml的内容解析到一个java对象里边(xml的各个标签有对应的java类,并且有包含关系). NginxCache配置文件: <?xml version="1.0" encoding="utf-8"?> XXXAction/getXXX.rdm XXXBction/get

Cause: java.lang.IllegalArgumentException:

问题描述 Cause: java.lang.IllegalArgumentException: 使用mybaties查询数据报:Error querying database. Cause: java.lang.IllegalArgumentException: Mapped Statements collection already contains value for PostCardEntity.list 应该不是配置问题,我实在一个完整项目的基础上加入一个小功能,没有创建新类,都是在原有