java.lang.NoClassDefFoundError:org/apache/xpath/compiler/FuncLoader
我将Eclipse与Java1.6一起使用,并在构建路径中包含了以下jar文件 xalan-2.7.1.jar、xmlsec-1.1.jar、xmlsec-2.0.jar,但在编译代码时仍然收到以下错误消息:java.lang.NoClassDefFoundError:org/apache/xpath/compiler/FuncLoader,java,noclassdeffounderror,Java,Noclassdeffounderror,我将Eclipse与Java1.6一起使用,并在构建路径中包含了以下jar文件 xalan-2.7.1.jar、xmlsec-1.1.jar、xmlsec-2.0.jar,但在编译代码时仍然收到以下错误消息: java.lang.NoClassDefFoundError:org/apache/xpath/compiler/FuncLoader 其出错的代码为: static{org.apache.xml.security.Init.Init();}根据,Xalan 2.7.x没有包含FuncLo
java.lang.NoClassDefFoundError:org/apache/xpath/compiler/FuncLoader
其出错的代码为:
static{org.apache.xml.security.Init.Init();}
根据,Xalan 2.7.x没有包含FuncLoader
类。尝试降级到Xalan 2.6.x.当我不确定为什么会发生NoClassDefowerRor
时,我觉得咨询一下很有用
我发现有趣的是,这里列出了xalan的各种版本,但不是类路径中的版本。也许有什么问题?试试与wss4j-1.6.16.jar兼容的xmlsec-1.3.0.jar你真的应该只在你的类路径中包含一个xmlsec-x.x jar。xlan-jar在你的类路径中吗?我想xlan-2.7.1.jar是xalan-2.7.1.jar,因为找不到的类来自于libraryGood技巧,但是发现了罐子