Error during startup vaadin 8 application

Hello,

I use following environment:

App Server: wildfly-10.1.0.Final
Vaadin 8.0.6
Build tool: Maven 3

When i build project and deploy, server gets following error:

2017-07-14 11:03:41,518 INFO [io.undertow.servlet]
(ServerService Thread Pool – 65) Initializing AtmosphereFramework
2017-07-14 11:03:41,538 INFO [com.vaadin.cdi.internal.ContextDeployer]
(ServerService Thread Pool – 65) Initializing web context for path /vrs-portal
2017-07-14 11:03:41,538 INFO [com.vaadin.cdi.internal.ContextDeployer]
(ServerService Thread Pool – 65) Discovering Vaadin UIs…
2017-07-14 11:03:41,538 INFO [com.vaadin.cdi.internal.ContextDeployer]
(ServerService Thread Pool – 65) 0 beans inheriting from UI discovered!
2017-07-14 11:03:41,538 INFO [com.vaadin.cdi.internal.ContextDeployer]
(ServerService Thread Pool – 65) Available Vaadin UIs for CDI deployment
2017-07-14 11:03:41,548 WARNING [com.vaadin.cdi.internal.ContextDeployer]
(ServerService Thread Pool – 65) Vaadin related servlet is defined in deployment descriptor, automated deployment of VaadinCDIServlet is now disabled
2017-07-14 11:03:41,548 INFO [com.vaadin.cdi.internal.ContextDeployer]
(ServerService Thread Pool – 65) Done deploying Vaadin UIs
2017-07-14 11:03:41,558 INFO [org.atmosphere.cpr.AtmosphereFramework]
(ServerService Thread Pool – 65) Installed AtmosphereHandler com.vaadin.server.communication.PushAtmosphereHandler mapped to context-path: /*
2017-07-14 11:03:41,558 INFO [org.atmosphere.cpr.AtmosphereFramework]
(ServerService Thread Pool – 65) Installed the following AtmosphereInterceptor mapped to AtmosphereHandler com.vaadin.server.communication.PushAtmosphereHandler
2017-07-14 11:03:41,588 INFO [org.atmosphere.cpr.AtmosphereFramework]
(ServerService Thread Pool – 65) Atmosphere is using org.atmosphere.util.VoidAnnotationProcessor for processing annotation
2017-07-14 11:03:41,598 INFO [org.atmosphere.util.ForkJoinPool]
(ServerService Thread Pool – 65) Using ForkJoinPool java.util.concurrent.ForkJoinPool. Set the org.atmosphere.cpr.broadcaster.maxAsyncWriteThreads to -1 to fully use its power.
2017-07-14 11:03:41,598 INFO [org.atmosphere.cpr.AtmosphereFramework]
(ServerService Thread Pool – 65) Installed WebSocketProtocol org.atmosphere.websocket.protocol.SimpleHttpProtocol


2017-07-14 11:03:41,608 SEVERE [org.atmosphere.util.IOUtils]
(ServerService Thread Pool – 65) : java.util.NoSuchElementException
at java.util.ArrayList$Itr.next(ArrayList.java:854)
at java.util.Collections$UnmodifiableCollection$1.next(Collections.java:1042)
at org.atmosphere.util.IOUtils.guestRawServletPath(IOUtils.java:283)
at org.atmosphere.util.IOUtils.guestServletPath(IOUtils.java:248)
at org.atmosphere.container.JSR356AsyncSupport.(JSR356AsyncSupport.java:63)
at org.atmosphere.container.JSR356AsyncSupport.(JSR356AsyncSupport.java:40)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.atmosphere.cpr.DefaultAsyncSupportResolver.newCometSupport(DefaultAsyncSupportResolver.java:234)
at org.atmosphere.cpr.DefaultAsyncSupportResolver.resolveWebSocket(DefaultAsyncSupportResolver.java:306)
at org.atmosphere.cpr.DefaultAsyncSupportResolver.resolve(DefaultAsyncSupportResolver.java:292)
at org.atmosphere.cpr.AtmosphereFramework.autoDetectContainer(AtmosphereFramework.java:2079)
at org.atmosphere.cpr.AtmosphereFramework.init(AtmosphereFramework.java:914)
at org.atmosphere.cpr.AtmosphereFramework.init(AtmosphereFramework.java:838)
at com.vaadin.server.communication.PushRequestHandler.initAtmosphere(PushRequestHandler.java:216)
at com.vaadin.server.communication.JSR356WebsocketInitializer.initAtmosphereForVaadinServlet(JSR356WebsocketInitializer.java:152)
at com.vaadin.server.communication.JSR356WebsocketInitializer.contextInitialized(JSR356WebsocketInitializer.java:118)
at io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:187)
at io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:200)
at io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:171)
at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42)
at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:234)
at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:100)
at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:82)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
at org.jboss.threads.JBossThread.run(JBossThread.java:320)
2017-07-14 11:03:41,628 WARNING [org.atmosphere.cpr.DefaultAsyncSupportResolver]
(ServerService Thread Pool – 65) Failed to create AsyncSupport class: class org.atmosphere.container.JSR356AsyncSupport, error: java.lang.reflect.InvocationTargetException
2017-07-14 11:03:41,638 SEVERE [org.atmosphere.cpr.DefaultAsyncSupportResolver]
(ServerService Thread Pool – 65) Real error: Unable to configure jsr356 at that stage: java.lang.IllegalStateException: Unable to configure jsr356 at that stage
at org.atmosphere.util.IOUtils.guestRawServletPath(IOUtils.java:290)
at org.atmosphere.util.IOUtils.guestServletPath(IOUtils.java:248)
at org.atmosphere.container.JSR356AsyncSupport.(JSR356AsyncSupport.java:63)
at org.atmosphere.container.JSR356AsyncSupport.(JSR356AsyncSupport.java:40)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.atmosphere.cpr.DefaultAsyncSupportResolver.newCometSupport(DefaultAsyncSupportResolver.java:234)
at org.atmosphere.cpr.DefaultAsyncSupportResolver.resolveWebSocket(DefaultAsyncSupportResolver.java:306)
at org.atmosphere.cpr.DefaultAsyncSupportResolver.resolve(DefaultAsyncSupportResolver.java:292)
at org.atmosphere.cpr.AtmosphereFramework.autoDetectContainer(AtmosphereFramework.java:2079)
at org.atmosphere.cpr.AtmosphereFramework.init(AtmosphereFramework.java:914)
at org.atmosphere.cpr.AtmosphereFramework.init(AtmosphereFramework.java:838)
at com.vaadin.server.communication.PushRequestHandler.initAtmosphere(PushRequestHandler.java:216)
at com.vaadin.server.communication.JSR356WebsocketInitializer.initAtmosphereForVaadinServlet(JSR356WebsocketInitializer.java:152)
at com.vaadin.server.communication.JSR356WebsocketInitializer.contextInitialized(JSR356WebsocketInitializer.java:118)
at io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:187)
at io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:200)
at io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:171)
at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42)
at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:234)
at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:100)
at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:82)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
at org.jboss.threads.JBossThread.run(JBossThread.java:320)


2017-07-14 11:03:41,678 INFO [org.atmosphere.cpr.AtmosphereFramework]
(ServerService Thread Pool – 65) Installing Default AtmosphereInterceptors
2017-07-14 11:03:41,678 INFO [org.atmosphere.cpr.AtmosphereFramework]
(ServerService Thread Pool – 65) org.atmosphere.interceptor.CorsInterceptor : CORS Interceptor Support
2017-07-14 11:03:41,688 INFO [org.atmosphere.cpr.AtmosphereFramework]
(ServerService Thread Pool – 65) org.atmosphere.interceptor.CacheHeadersInterceptor : Default Response’s Headers Interceptor
2017-07-14 11:03:41,708 INFO [org.atmosphere.cpr.AtmosphereFramework]
(ServerService Thread Pool – 65) org.atmosphere.interceptor.PaddingAtmosphereInterceptor : Browser Padding Interceptor Support
2017-07-14 11:03:41,708 INFO [org.atmosphere.cpr.AtmosphereFramework]
(ServerService Thread Pool – 65) org.atmosphere.interceptor.AndroidAtmosphereInterceptor : Android Interceptor Support
2017-07-14 11:03:41,718 INFO [org.atmosphere.cpr.AtmosphereFramework]
(ServerService Thread Pool – 65) Dropping Interceptor org.atmosphere.interceptor.HeartbeatInterceptor
2017-07-14 11:03:41,718 INFO [org.atmosphere.cpr.AtmosphereFramework]
(ServerService Thread Pool – 65) org.atmosphere.interceptor.SSEAtmosphereInterceptor : SSE Interceptor Support
2017-07-14 11:03:41,728 INFO [org.atmosphere.cpr.AtmosphereFramework]
(ServerService Thread Pool – 65) org.atmosphere.interceptor.JSONPAtmosphereInterceptor : JSONP Interceptor Support
2017-07-14 11:03:41,728 INFO [org.atmosphere.cpr.AtmosphereFramework]
(ServerService Thread Pool – 65) org.atmosphere.interceptor.JavaScriptProtocol : Atmosphere JavaScript Protocol
2017-07-14 11:03:41,728 INFO [org.atmosphere.cpr.AtmosphereFramework]
(ServerService Thread Pool – 65) org.atmosphere.interceptor.WebSocketMessageSuspendInterceptor : org.atmosphere.interceptor.WebSocketMessageSuspendInterceptor
2017-07-14 11:03:41,738 INFO [org.atmosphere.cpr.AtmosphereFramework]
(ServerService Thread Pool – 65) org.atmosphere.interceptor.OnDisconnectInterceptor : Browser disconnection detection
2017-07-14 11:03:41,738 INFO [org.atmosphere.cpr.AtmosphereFramework]
(ServerService Thread Pool – 65) org.atmosphere.interceptor.IdleResourceInterceptor : org.atmosphere.interceptor.IdleResourceInterceptor

Could you provide a little more details about your application. For me it works just fine.

If you can, share the whole project via github or zip.

cheers,
matti