java.lang.ClassNotFoundException:com.eviware.soapui.config.InvalidSecurityScanConfig [英] java.lang.ClassNotFoundException: com.eviware.soapui.config.InvalidSecurityScanConfig

查看:87
本文介绍了java.lang.ClassNotFoundException:com.eviware.soapui.config.InvalidSecurityScanConfig的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

处获取 java.lang.ClassNotFoundException:com.eviware.soapui.config.InvalidSecurityScanConfig

WsdlProject项目=新的WsdlProject();
尽管会在运行时提供错误,但会导入所有必需的jar(soapui-4.0.1.0.jar,soapui-xmlbeans-1.7.jar,wsdl4j.jar).背后的原因是什么?

 公共类SOAPInputGenerator {公共静态void main(String [] args)引发异常{WsdlProject项目=新的WsdlProject();WsdlInterface [] wsdls = WsdlImporter.importWsdl(project,"http://ws.cdyne.com/emailverify/Emailvernotestemail.asmx?WSDL");WsdlInterface wsdl = wsdls [0];for(操作操作:wsdl.getOperationList()){WsdlOperation wsdlOperation =(WsdlOperation)操作;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));}} 

解决方案

根据

也不确定您从哪里获得了 soapui-xmlbeans-1.7.jar 文件,因为在上面的屏幕快照中无法找到与该文件相同的版本.

soapui的更高版本(例如4.5及更高版本),相同的类是核心jar文件的一部分,即 SOAPUI_HOME/bin/soapui-4.5.*.jar

顺便说一下,不确定(是否有任何限制?)是否使用了非常旧的版本.

getting java.lang.ClassNotFoundException: com.eviware.soapui.config.InvalidSecurityScanConfig at

WsdlProject project = new WsdlProject();
All necessary jars(soapui-4.0.1.0.jar,soapui-xmlbeans-1.7.jar,wsdl4j.jar) are imported though it is giving error at runtime. what can be the reason behind it?

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));
    }
 }

解决方案

According this blog, the feature is available in SoapUI 4.x release.

It is clear that you did not have the jar file in the class path.

In SoapUI 4.0.1, the class file, com.eviware.soapui.config.InvalidSecurityScanConfig is available in different jar file, called SOAPUI_HOME/lib/soapui-xmlbeans-4.0.1.jar.

Here you can see:

Also not sure where did you get soapui-xmlbeans-1.7.jar file, as I could not find it in the same version which you can see in the screen shot above.

Later version of soapui, say 4.5 onwards, the same class is part of the core jar file i.e., SOAPUI_HOME/bin/soapui-4.5.*.jar

By the way, not sure(any constraints?) for using very old version.

这篇关于java.lang.ClassNotFoundException:com.eviware.soapui.config.InvalidSecurityScanConfig的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆