ClassNotFoundException after updating to SoapUI 5.2.0

cristiano007 picture cristiano007 · Jul 14, 2015 · Viewed 25.9k times · Source

After having updated to SoapUI 5.2.0 I'm getting

15:58:00,756 ERROR [SoapUI] An error occurred [com.eviware.soapui.plugins.auto.factories.AutoImportMethodFactory], see error log for details
java.lang.ClassNotFoundException: com.eviware.soapui.plugins.auto.factories.AutoImportMethodFactory
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at com.eviware.soapui.plugins.LoaderBase.loadAutoFactories(LoaderBase.java:96)
    at com.eviware.soapui.plugins.LoaderBase.loadFactories(LoaderBase.java:64)
    at com.eviware.soapui.plugins.PluginLoader.loadPluginFactories(PluginLoader.java:129)
    at com.eviware.soapui.plugins.PluginLoader.loadPlugin(PluginLoader.java:92)
    at com.eviware.soapui.plugins.PluginLoader.loadPlugin(PluginLoader.java:42)
    at com.eviware.soapui.plugins.PluginManager.doInstallPlugin(PluginManager.java:127)
    at com.eviware.soapui.plugins.PluginManager.access$600(PluginManager.java:38)
    at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.computeSequentially(PluginManager.java:406)
    at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.compute(PluginManager.java:363)
    at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.compute(PluginManager.java:368)
    at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.compute(PluginManager.java:351)
    at java.util.concurrent.RecursiveTask.exec(Unknown Source)
    at java.util.concurrent.ForkJoinTask.doExec(Unknown Source)
    at java.util.concurrent.ForkJoinWorkerThread.execTask(Unknown Source)
    at java.util.concurrent.ForkJoinPool.scan(Unknown Source)
    at java.util.concurrent.ForkJoinPool.work(Unknown Source)
    at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source)

when I start "Launch TestRunner". It seems that SoapUI 5.2.0 has some problems by loading some plugins.

Any idea what that could be?

Thx

Answer

Mikko Leppäaho picture Mikko Leppäaho · Jul 17, 2015

I did run into same issue with Soap-Ui 5.2 (OpenSource, 64b, Windows) version. When using Testrunner, it gave the same error. I noticed that 5.2 has these new plugins added and they are installed to your profile folder, under c:\user\*YourUserName*\.soapuios\plugins. This folder holds these jar files: soapui-swagger-plugin-2.1.3-dist, ready-uxm-plugin-1.0.1-dist and ready-mqtt-plugin-dist.

Well, in my current project I have no use for those plugins so I just re-named the .soapuions folder to NOT.soapuios.

Then I re-launched testrunner from SoapUi and voila, there was no AutoImportMethodFactory error.

Ok, I am not sure if those plugins are the root cause but I think that it's not really a good idea that these kind of plugins are stored in windows User Profile -folder. eg. in Windows Server environment you have like 100 issues that can go wrong with that kind of setup :-)

Anyway, if someone knows how to rebase that plugins folder (I'd like to move it to same folder where Soapui is installed), I mean that is there a setting somewhere inside soapui that defines this folder, I would really appreciate that :-)

EDIT:

Just checked from 5.2 Release Notes (#### Released 2015-07-02 ####) from github and there is a bugfix mentioned: * SoapUI failed to load plugins when you run tests with testrunner.bat and the current directory differed from <SoapUI>\bin.