我正在尝试为SoapUI(开源)创建一个新的插件。我已经跟随steps mentioned here创建了一个插件。
在user\.soapuios\plugins
中构建项目placed the jar file in plugins folder之后。[由于插件管理器无法免费提供]
当启动SoapUI时,插件没有被加载。它抛出了plugin has unsigned class
的下面错误。
SoapUI 5.2.1 OpenSource
Windows 7
2016-01-11 17:02:58,736 ERROR [SoapUI] An error occurred [The plugin 'C:\Users\xxxx\.soapuios\plugins\testplugin-1.0.0.jar' has unsigned class files.], see error log for details
2016-01-11 17:02:58,752 ERROR [errorlog] java.lang.SecurityException: The plugin 'C:\Users\525372\.soapuios\plugins\testplugin-1.0.0.jar' has unsigned class files.
java.lang.SecurityException: The plugin 'C:\Users\525372\.soapuios\plugins\testplugin-1.0.0.jar' has unsigned class files.
at com.eviware.soapui.plugins.ProductBodyguard$JarVerifier.verify(ProductBodyguard.java:107)
at com.eviware.soapui.plugins.ProductBodyguard.isKnown(ProductBodyguard.java:39)
at com.eviware.soapui.plugins.PluginManager.loadPlugins(PluginManager.java:93)
at com.eviware.soapui.DefaultSoapUICore.loadPlugins(DefaultSoapUICore.java:155)
at com.eviware.soapui.DefaultSoapUICore.init(DefaultSoapUICore.java:133)
at com.eviware.soapui.StandaloneSoapUICore.<init>(StandaloneSoapUICore.java:38)
at com.eviware.soapui.SoapUI$SoapUIRunner.run(SoapUI.java:721)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
2016-01-11 17:02:58,783 WARN [SoapUI] Plugin 'testplugin-1.0.0.jar' is not loaded because it hasn't been signed by SmartBear Software.
答案 0 :(得分:1)
根据this thread看起来从5.2.1开始标准 SoapUI将不接受来自未知来源的插件。社区管理员(SmartBear员工) )写道:
据我所知,插件管理器的一些变化已经实现 在SoapUI 5.2.1中。从那以后,只有SmartBear制造的插件可以工作 和新经理一起。
我可以为您推荐以下选项:
- 您可以通过soapuiplugins@smartbear.com发送插件。我们的团队将对其进行审核并添加到产品中。
- 您可以考虑迁移到SoapUI NG - 这里允许用户自制的插件。 SoapUI NG是最新的SoapUI版本,它是 纳入准备! API。
如果您查看该主题,您可能还会发现其他一些可能对您的案例有帮助的建议。 (为了测试目的,有一个黑客绕过这种保护)