XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: High High
    • London Release
    • London Release
    • dcae-services
    • None

      slice-analysis-ms fails to start due to this exception.

      Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
      15:39:43.727 [main] ERROR o.s.boot.SpringApplication:837 - Application run failed
      org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is java.lang.NoClassDefFoundError: org/apache/tomcat/jakartaee/EESpecProfile
          at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:161)
          at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:577)
          at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:143)
          at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:758)
          at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:750)
          at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397)
          at org.springframework.boot.SpringApplication.run(SpringApplication.java:315)
          at org.springframework.boot.SpringApplication.run(SpringApplication.java:1237)
          at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226)
          at org.onap.slice.analysis.ms.Application.main(Application.java:67)
      Caused by: java.lang.NoClassDefFoundError: org/apache/tomcat/jakartaee/EESpecProfile
          at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.prepareContext(TomcatServletWebServerFactory.java:224)
          at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getWebServer(TomcatServletWebServerFactory.java:190)
          at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:178)
          at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:158)
          ... 9 common frames omitted
      Caused by: java.lang.ClassNotFoundException: org.apache.tomcat.jakartaee.EESpecProfile
          at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)
          at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
          at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
          ... 13 common frames omitted

      This issue got introduced when embeded tomcat version (org.apache.tomcat.embed : tomcat-embed-core) was upgraded to 10.1.2 as a part of DCAEGEN2-3355. Version 10.1.2 has dependency on Springboot-3 and Spring-6 which in turn require Java-17.

      This runtime issue does not get captured while running junits.

      This bug is created to change the embeded tomcat version to 9.0.72. This is the highest supported version for Spring/Sprinboot/Java versions used by the service.

            pranitk1905 pranitk1905
            kedar.t kedar.t
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: