I recently upgraded from SoapUI 5.0.0 to 5.2.0 on windows 7. I am attempting to execute a mock service from a command line using:
mockservicerunner.bat -m "<MockServiceName> MockService" "C:\<path-to-xml>"
When executing I recieve a ClassNotFoundException:
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)
Had a quick look through GitHub and can't seem to find this class. Any suggestions? I have tried putting all of the jars from the /<user dir>/.soapuios/plugins/*.jar into the lib dir... then I looked in them and found the class was not in there. How can I get my hands on this class or a version of the mock runnner that does not rely on the class?
Edit: Service works fine from the GUI
exactly the same exceptions reported for me - win 7, soapui 5.2.0.... but it does appear to work
I upgraded to 5.2.1 and still got the same ClassNotFoundException.
Some googling makes me believe that the class is from the Pro release?
https://www.soapui.org/apidocs/pro/index.html?com/eviware/soapui/plugins/auto/factories/AutoDiscoveryMethodFactory.html
Annoying, but not cripling, I too observe that the script does run with all the error messages.
If the SoapUI version is 5.2.1 (I use this and found the same problem), the problem ties to the default plugins installed under "C:\Users\<user name>.soapuios\plugin".
For SoapUI 5.2.1, there are 4 default plugins installed under this directory:
Just rename the original folder 'plugins' to 'plugins_NOTinUse' (or something else), so that default plugins could be forced hidden during runtime. The problem then disappeared.
/jamil
HI , As per above replay , I have checked file under plugin folder. No such jar found for deletion.
Please suggest other approach for resolving AutoDiscoveryMethodFactory ClassNotFoundException issue.
Hi,
Along with the exception there is normally a path like:
11:43:32,432 INFO [PluginManager] Adding plugin from [C:\Users\jenkins\.soapuios\plugins\ready-mqtt-plugin-dist.jar] 11:43:34,773 ERROR [SoapUI] An error occurred [com.eviware.soapui.plugins.auto.factories.AutoDiscoveryMethodFactory], see error log for details java.lang.ClassNotFoundException: com.eviware.soapui.plugins.auto.factories.AutoDiscoveryMethodFactory
I take it you've checked this / these locations?
As you're probably aware, whilst this exception is irritating, it isn't actually serious in terms of lost functionality. If you get a chance, please vote/kudo for the feature request to get these errors handled properly - https://community.smartbear.com/t5/SoapUI-Feature-Requests/Resolving-quot-An-error-occurred-com-eviw...
Thanks,
Rupert
Some folks are claiming this doesn't stop things from running. I am using the test launcher for a test case and it fails with that error and this one:Quote
@rupert_anderson wrote:Hi,
Along with the exception there is normally a path like:
11:43:32,432 INFO [PluginManager] Adding plugin from [C:\Users\jenkins\.soapuios\plugins\ready-mqtt-plugin-dist.jar]11:43:34,773 ERROR [SoapUI] An error occurred [com.eviware.soapui.plugins.auto.factories.AutoDiscoveryMethodFactory], see error log for details java.lang.ClassNotFoundException: com.eviware.soapui.plugins.auto.factories.AutoDiscoveryMethodFactoryI take it you've checked this / these locations?
As you're probably aware, whilst this exception is irritating, it isn't actually serious in terms of lost functionality. If you get a chance, please vote/kudo for the feature request to get these errors handled properly - https://community.smartbear.com/t5/SoapUI-Feature-Requests/Resolving-quot-An-error-occurred-com-eviw...
Thanks,
Rupert
java.lang.ClassNotFoundException: com.eviware.soapui.plugins.auto.factories.AutoImportMethodFactory
Is this not supposed to work in SoapUI Open Source or do you have to do something special to fix it so it will run. I also tried putting the plugins in the bin/ext directory due to several others mentioning this.
I had several errors like that:
log4j:ERROR setFile(null,true) call failed.
ERROR [SoapUI] An error occurred [com.eviware.soapui.plugins.auto.factories.AutoDiscoveryMethodFactory], see error log for details
ERROR [SoapUI] An error occurred [com.eviware.soapui.plugins.auto.factories.AutoImportMethodFactory], see error log for details
I did the solution for jrahman and it works now!
Subject | Author | Latest Post |
---|---|---|