2016-02-29 174 views
1

抛出java.lang.ClassNotFoundException:com.eviware.soapui.config.InvalidSecurityScanConfig

WsdlProject project = new WsdlProject();
所有必要的罐子(soapUI的-4.0.1.0.jar,soapUI的-的xmlbeans-1.7.jar,WSDL4J得到java.lang.ClassNotFoundException: com.eviware.soapui.config.InvalidSecurityScanConfig。尽管它在运行时给出错误,但它们是被导入的。它背后的原因是什么?

public class SOAPInputGenerator { 

public static void main(String[] args) throws Exception { 

    WsdlProject project = new WsdlProject(); 
    WsdlInterface[] wsdls = WsdlImporter.importWsdl(project, "http://ws.cdyne.com/emailverify/Emailvernotestemail.asmx?WSDL"); 
    WsdlInterface wsdl = wsdls[0]; 
    for (Operation operation : wsdl.getOperationList()) { 
     WsdlOperation wsdlOperation = (WsdlOperation) operation; 
     System.out.println("OP:"+wsdlOperation.getName()); 
     System.out.println("Request:"); 
     System.out.println(wsdlOperation.createRequest(true)); 
     System.out.println("Response:"); 
     System.out.println(wsdlOperation.createResponse(true)); 
    } 
} 
+0

提取jar或在eclipse库jar中检查。是否包含“com.eviware.soapui.config.InvalidSecurityScanConfig” – Musaddique

+0

InvalidSecurityScanConfig在soapui-4.0.1.0中有误。我搜索了com.eviware.soapui.config.InvalidSecurityScanConfig的jar但没有得到任何jar – Sonal

回答

1

根据this博客,该功能在SoapUI 4.x版本中可用。

很明显,您在类路径中没有jar文件。

在SoapUI 4.0.1中,类文件com.eviware.soapui.config.InvalidSecurityScanConfig可用于不同的jar文件,名为SOAPUI_HOME/lib/soapui-xmlbeans-4.0.1.jar

在这里你可以看到:

enter image description here

而且不知道从哪里弄来soapui-xmlbeans-1.7.jar文件,因为我无法在其中您可以在上面的截图中看到相同的版本中找到它。

的soapUI后来的版本,比如说4.5起,同一类的核心jar文件即的一部分,SOAPUI_HOME/bin/soapui-4.5.*.jar

enter image description here

顺便说一句,不知道使用(任何约束?)很老版。

+0

非常感谢! ,我在网络服务中只有2天的时间。所以需要帮助。 – Sonal

相关问题