Forum Discussion

leahkhodak's avatar
leahkhodak
Occasional Contributor
9 years ago

deployment in tomcat throws ClassNotFoundException

I created a REST project on SOAPUI 5.2.1 i deployed it to war, and they deployed it to Tomcat. when try to run it on tomcat it does not display anything. 

I got an error log:

 

ERROR [errorlog] java.lang.ClassNotFoundException: com.eviware.soapui.plugins.auto.factories.AutoDiscoveryMethodFactory
java.lang.ClassNotFoundException: com.eviware.soapui.plugins.auto.factories.AutoDiscoveryMethodFactory
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1285)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1119)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
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:377)
at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.compute(PluginManager.java:360)
at java.util.concurrent.RecursiveTask.exec(RecursiveTask.java:94)
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)

    • leahkhodak's avatar
      leahkhodak
      Occasional Contributor

      Hi,

       

      I do not appear to have soapuios directory on my machine. Instead i tried by removing plugins from /applications/soapui-5.2.1/ Content/plugins.

      However I still get an error log, a little different one. I do not see how the issue I was linked with solves the issue, since I do not have an issue with loading soapui application, i have problem with displaying on the browser my deployed war file on tomcat.

       

      ERROR [errorlog] java.lang.ClassNotFoundException: com.eviware.soapui.plugins.auto.factories.AutoImportMethodFactory
      java.lang.ClassNotFoundException: com.eviware.soapui.plugins.auto.factories.AutoImportMethodFactory
      at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1285)
      at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1119)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:264)
      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:377)
      at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.compute(PluginManager.java:360)
      at java.util.concurrent.RecursiveTask.exec(RecursiveTask.java:94)
      at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
      at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
      at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
      at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)

      • rupert_anderson's avatar
        rupert_anderson
        Valued Contributor

        Hi,

         

        Ok, so above that stacktrace, can you see a log message above it like:

         

        [PluginManager] Adding plugin from [/Users/test/.soapuios/plugins/soapui-swagger-plugin-2.2-dist.jar]

         

        This should tell you where the plugin is that is causing the error.

         

        Regards,

        Rup