Uploaded image for project: 'Openfire'
  1. Openfire
  2. OF-1584

Don't fail all plugin servlets when one fails

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.3.0
    • Component/s: Plugins
    • Labels:
      None

      Description

      When mistyping a servlet name in a custom web.xml part for a Plugin, none of the servlets failed to load. Instead, we should more gracefully only prevent the servlet that is failing from loading, while allowing the other ones to load.

      2018.07.31 15:41:14 ERROR [pool-36-thread-1]: org.jivesoftware.openfire.container.PluginServlet - An unexpected problem occurred while attempting to register servlets for plugin 'org.jivesoftware.openfire
      java.lang.ClassNotFoundException: org.jivesoftware.openfire.plugin.jitsivideobridge.jitsi_002dvideobridge_jsp
              at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
              at org.jivesoftware.openfire.container.PluginManager.loadClass(PluginManager.java:958)
              at org.jivesoftware.openfire.container.PluginServlet.registerServlets(PluginServlet.java:151)
              at org.jivesoftware.openfire.container.PluginManager.loadPlugin(PluginManager.java:568)
              at org.jivesoftware.openfire.container.PluginMonitor$MonitorTask$4.call(PluginMonitor.java:276)
              at org.jivesoftware.openfire.container.PluginMonitor$MonitorTask$4.call(PluginMonitor.java:264)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
              at java.lang.Thread.run(Thread.java:748)
      

        Attachments

          Activity

            People

            Assignee:
            gdt Greg Thomas
            Reporter:
            guus Guus der Kinderen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: