---
title: "转:Exception starting filter struts2 Caught exception while loading file struts-d"
author: "cppmayi"
date: "2010-06-12T10:32:39Z"
tags: []
categories: ["编程语言"]
slug: "exception-starting-filter-struts2-caught-exception-while-loading-file-struts-d"
draft: false
lastmod: "2010-06-12T10:32:39Z"
id: 690296
url: "https://cppmayi.iteye.com/blog/690296"
---

Exception starting filter struts2 Caught exception while loading file struts-default.xml - \[unknown location]

 

Caused by: java.lang.ClassCastException: org.apache.xerces.parsers.XML11Configuration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration

 

解决方法：

a. 先把MyEclipse Hibernate 3.2 Core Lib从BuildPath去掉;

b. 不要重新发布应用, 从发布后的目录复制全部的jar文件到开发工具下项目的WEB-INF\\lib目录下, 不要复制其中的xml-apis.jar和xerces-2.6.2.jar.

c. 停止Tomcat, 重新发布应用或者删除发布后的目录下的WEB-INF\\lib下的xml-apis.jar和xerces-2.6.2.jar.