TransformerFactoryImpl not found exception

javax.xml.transform.TransformerFactoryConfigurationError: Provider org.apache.xalan.processor.TransformerFactoryImpl not found

This is the  problem with jdk 1.5 and tomcat 5.0 and I've found the problem

in tomcat java is called with the following argument:
-Djava.endorsed.dirs="X:/my_app/Portal/tomcat/common/endorsed"

In this directory you find two jar files: xercesImpl.jar and xml-apis.jar needed by tomcat and that must be loaded before all xmsl stuff present in the jdk (1.4 naming problem). And in the file xml-apis.jar the TransformerFactoryImpl is set to "org.apache.xalan.processor.TransformerFactoryImpl".

The solution: remove the file xml-apis.jar from the directory.

For other application, just check this file or dom3-xml-apis.jar in your class path

阅读更多
想对作者说点什么?

博主推荐

换一批

没有更多推荐了,返回首页