{"action":"created","issue":{"url":"https://api.github.com/repos/vaadin/skeleton-starter-flow-spring/issues/13","repository_url":"https://api.github.com/repos/vaadin/skeleton-starter-flow-spring","labels_url":"https://api.github.com/repos/vaadin/skeleton-starter-flow-spring/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/vaadin/skeleton-starter-flow-spring/issues/13/comments","events_url":"https://api.github.com/repos/vaadin/skeleton-starter-flow-spring/issues/13/events","html_url":"https://github.com/vaadin/skeleton-starter-flow-spring/issues/13","id":275306262,"number":13,"title":"Can't launch project with `mvn spring-boot:run`","user":{"login":"OlliTietavainenVaadin","id":15027701,"avatar_url":"https://avatars0.githubusercontent.com/u/15027701?v=4","gravatar_id":"","url":"https://api.github.com/users/OlliTietavainenVaadin","html_url":"https://github.com/OlliTietavainenVaadin","followers_url":"https://api.github.com/users/OlliTietavainenVaadin/followers","following_url":"https://api.github.com/users/OlliTietavainenVaadin/following{/other_user}","gists_url":"https://api.github.com/users/OlliTietavainenVaadin/gists{/gist_id}","starred_url":"https://api.github.com/users/OlliTietavainenVaadin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OlliTietavainenVaadin/subscriptions","organizations_url":"https://api.github.com/users/OlliTietavainenVaadin/orgs","repos_url":"https://api.github.com/users/OlliTietavainenVaadin/repos","events_url":"https://api.github.com/users/OlliTietavainenVaadin/events{/privacy}","received_events_url":"https://api.github.com/users/OlliTietavainenVaadin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-11-20T10:31:18Z","updated_at":"2017-11-20T10:38:01Z","closed_at":null,"author_association":"MEMBER","body":"version: 1.0.0.alpha10\r\nOS: Windows 10\r\nWithout any modifications in the project, if I try to launch it with `mvn spring-boot:run`, I get the following exception: \r\n```\r\n2017-11-20 12:19:44.817  INFO 6408 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'requestContextFilter' to: [/*]\r\n2017-11-20 12:19:44.839 ERROR 6408 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/]       : Exception sending context initialized event to listener instance of class [com.vaadin.spring.VaadinServletContextInitializer$RouteServletContextListener]\r\n\r\njava.lang.NoClassDefFoundError: com/vaadin/router/RouteAlias\r\n\tat com.vaadin.spring.VaadinServletContextInitializer$RouteServletContextListener.contextInitialized(VaadinServletContextInitializer.java:86) ~[flow-spring-addon-1.0.0.alpha10.jar:na]\r\n\tat org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4743) [tomcat-embed-core-8.5.20.jar:8.5.20]\r\n\tat org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5207) [tomcat-embed-core-8.5.20.jar:8.5.20]\r\n\tat org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) [tomcat-embed-core-8.5.20.jar:8.5.20]\r\n\tat org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1419) [tomcat-embed-core-8.5.20.jar:8.5.20]\r\n\tat org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409) [tomcat-embed-core-8.5.20.jar:8.5.20]\r\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_121]\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_121]\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_121]\r\n\tat java.lang.Thread.run(Thread.java:745) [na:1.8.0_121]\r\nCaused by: java.lang.ClassNotFoundException: com.vaadin.router.RouteAlias\r\n\tat java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[na:1.8.0_121]\r\n\tat java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_121]\r\n\tat sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) ~[na:1.8.0_121]\r\n\tat java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_121]\r\n\t... 10 common frames omitted\r\n\r\n2017-11-20 12:19:44.893 ERROR 6408 --- [ost-startStop-1] o.apache.catalina.core.StandardContext   : One or more listeners failed to start. Full details will be found in the appropriate container log file\r\n2017-11-20 12:19:44.894 ERROR 6408 --- [ost-startStop-1] o.apache.catalina.core.StandardContext   : Context [] startup failed due to previous errors\r\n2017-11-20 12:19:44.903  WARN 6408 --- [  restartedMain] ationConfigEmbeddedWebApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.boot.context.embedded.EmbeddedServletContainerException: Unable to start embedded Tomcat\r\n2017-11-20 12:19:44.909  INFO 6408 --- [  restartedMain] utoConfigurationReportLoggingInitializer : \r\n\r\nError starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.\r\n2017-11-20 12:19:44.913 ERROR 6408 --- [  restartedMain] o.s.boot.SpringApplication               : Application startup failed\r\n\r\norg.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.boot.context.embedded.EmbeddedServletContainerException: Unable to start embedded Tomcat\r\n\tat org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:137) ~[spring-boot-1.5.8.RELEASE.jar:1.5.8.RELEASE]\r\n\tat org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:537) ~[spring-context-4.3.12.RELEASE.jar:4.3.12.RELEASE]\r\n\tat org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122) ~[spring-boot-1.5.8.RELEASE.jar:1.5.8.RELEASE]\r\n\tat org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693) [spring-boot-1.5.8.RELEASE.jar:1.5.8.RELEASE]\r\n\tat org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360) [spring-boot-1.5.8.RELEASE.jar:1.5.8.RELEASE]\r\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:303) [spring-boot-1.5.8.RELEASE.jar:1.5.8.RELEASE]\r\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:1118) [spring-boot-1.5.8.RELEASE.jar:1.5.8.RELEASE]\r\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:1107) [spring-boot-1.5.8.RELEASE.jar:1.5.8.RELEASE]\r\n\tat com.example.spring.ExampleServletInitializer.main(ExampleServletInitializer.java:30) [classes/:na]\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_121]\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_121]\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_121]\r\n\tat java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_121]\r\n\tat org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) [spring-boot-devtools-1.5.8.RELEASE.jar:1.5.8.RELEASE]\r\nCaused by: org.springframework.boot.context.embedded.EmbeddedServletContainerException: Unable to start embedded Tomcat\r\n\tat org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.initialize(TomcatEmbeddedServletContainer.java:123) ~[spring-boot-1.5.8.RELEASE.jar:1.5.8.RELEASE]\r\n\tat org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.<init>(TomcatEmbeddedServletContainer.java:84) ~[spring-boot-1.5.8.RELEASE.jar:1.5.8.RELEASE]\r\n\tat org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory.getTomcatEmbeddedServletContainer(TomcatEmbeddedServletContainerFactory.java:554) ~[spring-boot-1.5.8.RELEASE.jar:1.5.8.RELEASE]\r\n\tat org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory.getEmbeddedServletContainer(TomcatEmbeddedServletContainerFactory.java:179) ~[spring-boot-1.5.8.RELEASE.jar:1.5.8.RELEASE]\r\n\tat org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.createEmbeddedServletContainer(EmbeddedWebApplicationContext.java:164) ~[spring-boot-1.5.8.RELEASE.jar:1.5.8.RELEASE]\r\n\tat org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:134) ~[spring-boot-1.5.8.RELEASE.jar:1.5.8.RELEASE]\r\n\t... 13 common frames omitted\r\nCaused by: java.lang.IllegalStateException: StandardEngine[Tomcat].StandardHost[localhost].TomcatEmbeddedContext[] failed to start\r\n\tat org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.rethrowDeferredStartupExceptions(TomcatEmbeddedServletContainer.java:167) ~[spring-boot-1.5.8.RELEASE.jar:1.5.8.RELEASE]\r\n\tat org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.initialize(TomcatEmbeddedServletContainer.java:102) ~[spring-boot-1.5.8.RELEASE.jar:1.5.8.RELEASE]\r\n\t... 18 common frames omitted\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/vaadin/skeleton-starter-flow-spring/issues/comments/345656986","html_url":"https://github.com/vaadin/skeleton-starter-flow-spring/issues/13#issuecomment-345656986","issue_url":"https://api.github.com/repos/vaadin/skeleton-starter-flow-spring/issues/13","id":345656986,"user":{"login":"denis-anisimov","id":11425472,"avatar_url":"https://avatars0.githubusercontent.com/u/11425472?v=4","gravatar_id":"","url":"https://api.github.com/users/denis-anisimov","html_url":"https://github.com/denis-anisimov","followers_url":"https://api.github.com/users/denis-anisimov/followers","following_url":"https://api.github.com/users/denis-anisimov/following{/other_user}","gists_url":"https://api.github.com/users/denis-anisimov/gists{/gist_id}","starred_url":"https://api.github.com/users/denis-anisimov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/denis-anisimov/subscriptions","organizations_url":"https://api.github.com/users/denis-anisimov/orgs","repos_url":"https://api.github.com/users/denis-anisimov/repos","events_url":"https://api.github.com/users/denis-anisimov/events{/privacy}","received_events_url":"https://api.github.com/users/denis-anisimov/received_events","type":"User","site_admin":false},"created_at":"2017-11-20T10:38:01Z","updated_at":"2017-11-20T10:38:01Z","author_association":"CONTRIBUTOR","body":"I don't know what's going on with vaadin platform deps overall ( do we update them each time and do they have a correct dep to the Flow).\r\nBut I would suggest to avoid such issues in the future to exclude flow from the vaadin platform dependency at all. So that the dep from the Spring add-on always wins."}}
{"actor":{"display_login":"denis-anisimov"}}