2016-02-29 173 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

相關問題