Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/317.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
java.lang.NoClassDefFoundError:org/apache/xpath/compiler/FuncLoader_Java_Noclassdeffounderror - Fatal编程技术网

java.lang.NoClassDefFoundError:org/apache/xpath/compiler/FuncLoader

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

我将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没有包含
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技巧,但是发现了罐子