Details
Description
Steps to reproduce:
git checkout -b camel-2.x upstream/camel-2.x git show --summary # commit fb5278ea2860e05b833f8e32d4ec6c2dfcc73c94 (HEAD -> camel-2.x, upstream/camel-2.x) # Author: Claus Ibsen <claus.ibsen@gmail.com> # Date: Sat Jan 19 09:57:17 2019 +0100 # # Add missing docs for EIPs # cd examples/camel-example-spring-boot mvn clean package java -jar target/camel-example-spring-boot-*.jar # Expected: no error # Actual: # [...] # Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2019-01-19 17:09:16.253 ERROR 21732 --- [ main] o.s.boot.SpringApplication : Application run failed org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is java.lang.NoClassDefFoundError: javax/servlet/http/MappingMatch at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:157) ~[spring-boot-2.1.1.RELEASE.jar!/:2.1.1.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:540) ~[spring-context-5.1.4.RELEASE.jar!/:5.1.4.RELEASE] at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:142) ~[spring-boot-2.1.1.RELEASE.jar!/:2.1.1.RELEASE] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:775) [spring-boot-2.1.1.RELEASE.jar!/:2.1.1.RELEASE] at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) [spring-boot-2.1.1.RELEASE.jar!/:2.1.1.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:316) [spring-boot-2.1.1.RELEASE.jar!/:2.1.1.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1260) [spring-boot-2.1.1.RELEASE.jar!/:2.1.1.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1248) [spring-boot-2.1.1.RELEASE.jar!/:2.1.1.RELEASE] at sample.camel.MyCamelApplication.main(MyCamelApplication.java:33) [classes!/:2.24.0-SNAPSHOT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_191] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_191] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_191] at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_191] at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48) [camel-example-spring-boot-2.24.0-SNAPSHOT.jar:2.24.0-SNAPSHOT] at org.springframework.boot.loader.Launcher.launch(Launcher.java:87) [camel-example-spring-boot-2.24.0-SNAPSHOT.jar:2.24.0-SNAPSHOT] at org.springframework.boot.loader.Launcher.launch(Launcher.java:50) [camel-example-spring-boot-2.24.0-SNAPSHOT.jar:2.24.0-SNAPSHOT] at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51) [camel-example-spring-boot-2.24.0-SNAPSHOT.jar:2.24.0-SNAPSHOT] Caused by: java.lang.NoClassDefFoundError: javax/servlet/http/MappingMatch at io.undertow.servlet.handlers.ServletPathMatches.resolveServletForPath(ServletPathMatches.java:445) ~[undertow-servlet-2.0.16.Final.jar!/:2.0.16.Final] at io.undertow.servlet.handlers.ServletPathMatches.setupServletChains(ServletPathMatches.java:280) ~[undertow-servlet-2.0.16.Final.jar!/:2.0.16.Final] at io.undertow.servlet.handlers.ServletPathMatches.getData(ServletPathMatches.java:145) ~[undertow-servlet-2.0.16.Final.jar!/:2.0.16.Final] at io.undertow.servlet.handlers.ServletPathMatches.initData(ServletPathMatches.java:76) ~[undertow-servlet-2.0.16.Final.jar!/:2.0.16.Final] at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:256) ~[undertow-servlet-2.0.16.Final.jar!/:2.0.16.Final] at org.springframework.boot.web.embedded.undertow.UndertowServletWebServerFactory.createDeploymentManager(UndertowServletWebServerFactory.java:284) ~[spring-boot-2.1.1.RELEASE.jar!/:2.1.1.RELEASE] at org.springframework.boot.web.embedded.undertow.UndertowServletWebServerFactory.getWebServer(UndertowServletWebServerFactory.java:208) ~[spring-boot-2.1.1.RELEASE.jar!/:2.1.1.RELEASE] at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:181) ~[spring-boot-2.1.1.RELEASE.jar!/:2.1.1.RELEASE] at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:154) ~[spring-boot-2.1.1.RELEASE.jar!/:2.1.1.RELEASE] ... 16 common frames omitted Caused by: java.lang.ClassNotFoundException: javax.servlet.http.MappingMatch at java.net.URLClassLoader.findClass(URLClassLoader.java:382) ~[na:1.8.0_191] at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_191] at org.springframework.boot.loader.LaunchedURLClassLoader.loadClass(LaunchedURLClassLoader.java:93) ~[camel-example-spring-boot-2.24.0-SNAPSHOT.jar:2.24.0-SNAPSHOT] at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_191] ... 25 common frames omitted
Attachments
Issue Links
- is related to
-
CAMEL-13090 Update to servlet api 4
- Resolved