Uploaded image for project: 'Archiva (Retired)'
  1. Archiva (Retired)
  2. MRM-2046

After upgrade war file from 2.2.5 to 2.2.6 a ClassNotFoundException is thrown org.eclipse.jetty.servlet.DefaultServlet

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 2.2.6
    • None
    • None
    • None
    • Tomcat 8.5.49

    Description

      I am using the war deployment of archiva on Tomcat 8.5.

      When upgrading from 2.2.5 to 2.2.6 something changed in the dependencies.

      I get the following error / stack:

      15-Apr-2022 22:38:56.963 SCHWERWIEGEND [repo-startStop-1] org.apache.catalina.core.StandardContext.loadOnStartup Servlet [default] in web application [/archiva] threw load() exception
          java.lang.ClassNotFoundException: org.eclipse.jetty.servlet.DefaultServlet
              at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1358)
              at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1180)
              at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:546)
              at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:527)
              at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:150)
              at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1044)
              at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:985)
              at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4885)
              at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5199)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
              at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:743)
              at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:719)
              at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:705)
              at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:614)
              at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1823)
              at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
              at java.util.concurrent.FutureTask.run(Unknown Source)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
              at java.lang.Thread.run(Unknown Source)

       

      It seems new dependencies were introduced

      As the servlet can't get loaded, the website of archiva is not available .

      Switching back to 2.2.5, everything works fine again.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tom_s4t Thomas Hoffmann
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: