XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • Kohn Release
    • Kohn Release
    • None

      Following error reported when  the latest container (org.onap.dcaegen2.services.son-handler:2.1.10-20220920T023150Z version) is deployed

      17:29:07.608 [main] WARN  o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is java.lang.NoSuchMethodError: 'void org.apache.catalina.Context.addServletContainerInitializer(javax.servlet.ServletContainerInitializer, java.util.Set)'
      17:29:07.614 [main] INFO  o.s.b.a.l.ConditionEvaluationReportLoggingListener - Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
      17:29:07.616 [main] ERROR o.s.b.d.LoggingFailureAnalysisReporter - ***************************
      APPLICATION FAILED TO START
      ***************************Description:An attempt was made to call a method that does not exist. The attempt was made from the following location:    org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.configureContext(TomcatServletWebServerFactory.java:356)The following method did not exist:    'void org.apache.catalina.Context.addServletContainerInitializer(javax.servlet.ServletContainerInitializer, java.util.Set)'The method's class, org.apache.catalina.Context, is available from the following locations:    jar:file:/bin/application.jar!/BOOT-INF/lib/tomcat-embed-core-10.0.21.jar!/org/apache/catalina/Context.classThe class hierarchy was loaded from the following locations:    org.apache.catalina.Context: jar:file:/bin/application.jar!/BOOT-INF/lib/tomcat-embed-core-10.0.21.jar!/
      Action:Correct the classpath of your application so that it contains a single, compatible version of org.apache.catalina.Context17:30:04.105 [parallel-1] INFO  o.o.d.s.s.r.s.c.c.i.CbsClientConfigMap - PolicySync file does not exist
      17:30:04.106 [parallel-1] INFO  o.o.d.s.s.r.s.c.c.i.CbsClientConfigMap - Got successful output from ConfigMap file
       

       

      The tomcat version - 10.0.21 (introduced under https://gerrit.onap.org/r/c/dcaegen2/services/son-handler/+/130594

      is not compatible. May need to switch to latest 9.x (9.0.65) version.

            vv770d vv770d
            vv770d vv770d
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: