jettyapacheds

Failed startup of context o.e.j.w.WebAppContext error after upgrade jetty version to 9.4.44


Current jetty version is 9.4.6, I tried to upgrade 9.4.44, I got the error. Could you please help me?

 WebAppContext:554 -Failed startup of context o.e.j.w.WebAppContext@163f1cd{passwd-change,/passwd-change,file:///run/opt/corp/gsec/7.0.0/java-service/gsec-jetty-base/temp/jetty-gsec-2443-passwd-change.war-_passwd-change-any-6326268666909012254.dir/webapp/,UNAVAILABLE}{/passwd-change.war} 

Caused by: java.lang.IllegalAccessError: tried to access method org.eclipse.jetty.server.handler.ContextHandler$StaticContext.createInstance(Ljava/lang/Class;)Ljava/lang/Object; from class jetty.webapp.StandardDescriptorProcessor
at org.eclipse.jetty.webapp.StandardDescriptorProcessor.newListenerInstance(StandardDescriptorProcessor.java:1945) ~[apacheds-service-2.0.0-M24.jar:2.0.0-M24] 
at org.eclipse.jetty.webapp.StandardDescriptorProcessor.visitListener(StandardDescriptorProcessor.java:1900) ~[apacheds-service-2.0.0-M24.jar:2.0.0-M24]

Solution

  • The jetty files in your apacheds-service-2.0.0-M24.jar needs to be upgraded as well.

    List the contents of the apacheds-service-2.0.0-M24.jar file and you'll see classes in the org.eclipse.jetty. namespace.

    Those are conflicting with your efforts to upgrade Jetty via the jetty-distribution zip.