Forum Discussion

Geggeh's avatar
New Member
9 years ago

AutoDiscoveryMethodFactory ClassNotFoundException when executing mockservicerunner

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:


at$ Source)
at$ Source)
at Method)
at 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(
at com.eviware.soapui.plugins.LoaderBase.loadFactories(
at com.eviware.soapui.plugins.PluginLoader.loadPluginFactories(
at com.eviware.soapui.plugins.PluginLoader.loadPlugin(
at com.eviware.soapui.plugins.PluginLoader.loadPlugin(
at com.eviware.soapui.plugins.PluginManager.doInstallPlugin(
at com.eviware.soapui.plugins.PluginManager.access$600(
at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.computeSequentially(
at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.compute(
at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.compute(
at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.compute(
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 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

8 Replies

  • squawk's avatar
    Occasional Visitor

    exactly the same exceptions reported for me - win 7, soapui 5.2.0.... but it does appear to work

  • dagnygaard's avatar
    New Contributor

    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?



    Annoying, but not cripling, I too observe that the script does run with all the error messages.




    • nmrao's avatar
      Champion Level 3
      Do you have any plugins? or soapui logs that you can attach here?
      • jrahman's avatar

        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:

        1. readyapi-swaggerhub-plugin-1.0.jar
        2. ready-mqtt-plugin-dist.jar
        3. ready-uxm-plugin-1.0.1-dist.jar
        4. soapui-swagger-plugin-2.2-dist.jar

        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.