我必须在我的webapp(Spring 3)中使用xerces(xsd v1.1)验证xml,需要部署在jboss 6服务器中。但是我在部署中遇到错误。这在 Tomcat 中不会发生。它抛出以下异常:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter#0': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter]: Constructor threw exception; nested exception is java.lang.ClassCastException: org.apache.xalan.processor.TransformerFactoryImpl cannot be cast to javax.xml.transform.TransformerFactory
我尝试使用 jboss-web.xml 和 jboss-classloading.xml 进行一些配置,但我没有工作。有什么想法?