Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/ant/2.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 测试用例中的org/apache/log4j/Priority错误_Java_Ant_Log4j_Testng_Testng Eclipse - Fatal编程技术网

Java 测试用例中的org/apache/log4j/Priority错误

Java 测试用例中的org/apache/log4j/Priority错误,java,ant,log4j,testng,testng-eclipse,Java,Ant,Log4j,Testng,Testng Eclipse,我已经在我的项目中使用TestNG创建了一些测试用例。当我从eclipse运行测试用例时,它工作得很好。但在我的ant构建脚本中,TestNG给出了以下错误: run.unit.tests: [testng] [TestNG] [Error] [testng] An error occurred while instantiating class com.sydac.tangara.tos.backend.test.FaultFunctionalityTests: org/apach

我已经在我的项目中使用TestNG创建了一些测试用例。当我从eclipse运行测试用例时,它工作得很好。但在我的ant构建脚本中,TestNG给出了以下错误:

run.unit.tests:
   [testng] [TestNG] [Error]
   [testng] An error occurred while instantiating class com.sydac.tangara.tos.backend.test.FaultFunctionalityTests: org/apache/log4j/Priority
有人知道这个错误吗??
如果需要更多信息,请回复。

ant提供的类路径中似乎缺少
log4j
。您可以共享您的ant build.xml文件吗?ant提供的类路径中似乎缺少
log4j
。你能分享你的ant build.xml文件吗?