SLF4J: and java.lang.ClassNotFoundException: errors found on SoapUI-x32-5.2.1
Hello All:
I am getting SLF4J and ClassNotFoundException errors while running test using testrunner.bat of SoapUI 5.2.1 (x-32 version). Could you please let me know where is the problem ?
OS information:
Windows 7 Enterprise
The error logs are as below:
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
java.lang.ClassNotFoundException: com.eviware.soapui.plugins.auto.factories.AutoDiscoveryMethodFactory
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:136)
at com.eviware.soapui.plugins.PluginManager.access$600(PluginManager.java:38)
at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.computeSequentially(PluginManager.java:415)
at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.compute(PluginManager.java:372)
at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.compute(PluginManager.java:360)
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)
Finally, the problem was solved !
The other 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:
- readyapi-swaggerhub-plugin-1.0.jar
- ready-mqtt-plugin-dist.jar
- ready-uxm-plugin-1.0.1-dist.jar
- soapui-swagger-plugin-2.2-dist.jar
Renamed the original folder 'plugins' to 'plugins_NOTinUse' (or something else), so that default plugins could be forced hidden during runtime. The problem then disappeared.
Kudos for Rao for all the hints he gave me to resolve the issue under this thread.
Now, I am able to enjoy ZERO error testing :smileyhappy:
Suggestion, packaging of SoapUI can be modified to avoid installing default plugins.
/jamil