---
title: "Exception starting filter CloseSessionFilter"
author: "lei33"
date: "2010-12-06T22:05:29Z"
tags: []
categories: ["编程语言"]
slug: "exception-starting-filter-closesessionfilter"
draft: false
lastmod: "2010-12-06T22:05:29Z"
id: 835092
url: "https://lei33.iteye.com/blog/835092"
---

情况：

当我再别的机子上运行我项目的时候，运行完全正常，但在这个机子上就不行。

当启动tomcat的时候，抛出异常：Exception starting filter CloseSessionFilter

经过高人指点，其实，就是把tomcat里所有的项目都清除掉，重新运行部署项目。

但，又抛出这个异常：Document base E:\\Program Files\\Apache Software Foundation\\Tomcat 6.0\\webapps\\manager does not exist or is not a readable directory

这是就是把。

这是因为在conf\\Catalina\\localhost里面有两个xml文件host-manager.xml、manager.xml，删掉他们在启动Tomcat就没问题了。  
或Catalina里面其它的文件夹中也可能存在host-manager.xml,manager.xml这样的文件, 把它们都删除了就可以了.

再就是我们自己建立的项目删掉以后也会出现这种问题

我们就把conf\\Catalina\\localhost相应配置文件删掉、把conf下的server.xml及context.xml中的相关配置删掉。