You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Dmitry Volodin (JIRA)" <ji...@apache.org> on 2019/01/21 13:56:00 UTC

[jira] [Comment Edited] (CAMEL-13084) javax.servlet.http.MappingMatch not found when starting camel-example-spring-boot

    [ https://issues.apache.org/jira/browse/CAMEL-13084?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16747954#comment-16747954 ] 

Dmitry Volodin edited comment on CAMEL-13084 at 1/21/19 1:55 PM:
-----------------------------------------------------------------

[~ancosen], how is idea about to keep javax.servlet-api version in one place to minimize care on change it?


was (Author: dmvolod):
[~ancosen], how idea about to keep javax.servlet-api version in one place to minimize care on change it?

> javax.servlet.http.MappingMatch not found when starting camel-example-spring-boot
> ---------------------------------------------------------------------------------
>
>                 Key: CAMEL-13084
>                 URL: https://issues.apache.org/jira/browse/CAMEL-13084
>             Project: Camel
>          Issue Type: Bug
>          Components: examples
>    Affects Versions: 2.23.0, 3.0.0, 2.23.1
>            Reporter: Peter Palaga
>            Assignee: Andrea Cosentino
>            Priority: Major
>             Fix For: 3.0.0, 2.23.2, 2.24.0
>
>
> Steps to reproduce:
> {code}
> 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 <cl...@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
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)