Atmosphere / atmosphere

Event Driven WebSockets Framework with Cross-Browser Fallbacks
http://async-io.org/
3.7k stars 751 forks source link

Spring Boot: org.atmosphere.cpr.AtmosphereMappingException #2295

Closed keltik85 closed 7 years ago

keltik85 commented 7 years ago

I get this exception (only when running the packaged, executable war file -running the @SpringBootApplication in the Eclipse IDE works fine-):

org.atmosphere.cpr.AtmosphereMappingException: No AtmosphereHandler found. Make sure you define it inside WEB-INF/atmosphere.xml or annotate using @___Service


But this is not true. I have annotated the relevant class. This is my @ManagedService class:

package de.my.app.atmosphere;

import javax.inject.Inject;
import org.atmosphere.config.service.Disconnect;
import org.atmosphere.config.service.ManagedService;
import org.atmosphere.config.service.Ready;
import org.atmosphere.cpr.AtmosphereResource;
import org.atmosphere.cpr.AtmosphereResourceFactory;
import org.json.JSONException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@ManagedService(path = "/updateStuff")
public class PushStuff {

    private final Logger log = LoggerFactory.getLogger(PushStuff.class);

    @Inject
    public static AtmosphereResourceFactory factory;

    @Inject
    public AtmosphereResource resource;

    @Ready
    public void onReady() throws JSONException {
        log.info("onReady called!");
    }

    @Disconnect
    public void onDisconnect() {
        log.info("onDisconnect called!");
    }
}

This is my Configuration:

package de.my.app.atmosphere;

import java.util.Collections;

import javax.servlet.ServletContext;
import javax.servlet.ServletException;

import org.atmosphere.cpr.AtmosphereServlet;
import org.atmosphere.cpr.ContainerInitializer;
import org.springframework.boot.web.servlet.ServletContextInitializer;
import org.springframework.boot.web.servlet.ServletRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.Ordered;

@Configuration
public class PushConfig {
    @Bean
    public EmbeddedAtmosphereInitializer atmosphereInitializer() {
        return new EmbeddedAtmosphereInitializer();
    }

    @Bean
    public ServletRegistrationBean atmosphereServlet() {
        ServletRegistrationBean registration = new ServletRegistrationBean(new AtmosphereServlet(), "/updateStuff");
        registration.addInitParameter("org.atmosphere.cpr.packages", "de.my.app.atmosphere");
        registration.setLoadOnStartup(1);
        registration.setOrder(Ordered.HIGHEST_PRECEDENCE);
        return registration;
    }

    private static class EmbeddedAtmosphereInitializer extends ContainerInitializer
            implements ServletContextInitializer {
        @Override
        public void onStartup(ServletContext servletContext) throws ServletException {
            onStartup(Collections.<Class<?>>emptySet(), servletContext);
        }
    }
}

This is my pom.xml (some parts truncated):

<project...>
   <parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>1.4.1.RELEASE</version>
   </parent>
   <packaging>war</packaging>

    <dependencies>
        <dependency>
        <groupId>org.atmosphere</groupId>
        <artifactId>atmosphere-runtime</artifactId>
        <version>2.4.5</version>
    </dependency>
    <dependency>
        <groupId>org.atmosphere</groupId>
        <artifactId>atmosphere-spring</artifactId>
        <version>2.4.4</version>
    </dependency>
    ...
    </dependencies>
...
<build>
    <plugins>
        <plugin>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-maven-plugin</artifactId>
            <executions>
                <execution>
                    <goals>
                        <goal>build-info</goal>
                    </goals>
                </execution>
            </executions>
            <configuration>
                <executable>true</executable>
            </configuration>
        </plugin>
...
</build>
</project>

The log when running from the war file states that:

2017-10-13 14:45:39.582  INFO 20737 --- [localhost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean  : Mapping servlet: 'atmosphereServlet' to [/updateStuff]

There are some differences in the logs of the war file and the Java Application startup.

This is the Startup log of the war-file:


2017-10-16 16:56:59.123  INFO 21967 --- [main] org.atmosphere.cpr.AtmosphereFramework   : Atmosphere is using org.atmosphere.cpr.DefaultAnnotationProcessor for processing annotation
2017-10-16 16:56:59.124  INFO 21967 --- [main] o.a.cpr.DefaultAnnotationProcessor       : AnnotationProcessor class org.atmosphere.cpr.DefaultAnnotationProcessor$BytecodeBasedAnnotationProcessor being used
2017-10-16 16:56:59.190  INFO 21967 --- [main] org.atmosphere.cpr.AtmosphereFramework   : Auto detecting atmosphere handlers /WEB-INF/classes/
2017-10-16 16:56:59.194  INFO 21967 --- [main] org.atmosphere.cpr.AtmosphereFramework   : Auto detecting WebSocketHandler in /WEB-INF/classes/
2017-10-16 16:56:59.202  INFO 21967 --- [main] org.atmosphere.cpr.AtmosphereFramework   : Installed WebSocketProtocol org.atmosphere.websocket.protocol.SimpleHttpProtocol
2017-10-16 16:56:59.210  WARN 21967 --- [main] org.atmosphere.util.IOUtils              : More than one Servlet Mapping defined. WebSocket may not work org.apache.catalina.core.ApplicationServletRegistration@59ce792e
2017-10-16 16:56:59.210  INFO 21967 --- [main] o.a.container.JSR356AsyncSupport         : JSR 356 Mapping path /myAtmosphereUrl
2017-10-16 16:56:59.254  INFO 21967 --- [main] org.atmosphere.cpr.AtmosphereFramework   : Installing Default AtmosphereInterceptors
2017-10-16 16:56:59.264  INFO 21967 --- [main] org.atmosphere.cpr.AtmosphereFramework   :   org.atmosphere.interceptor.CorsInterceptor : CORS Interceptor Support
2017-10-16 16:56:59.268  INFO 21967 --- [main] org.atmosphere.cpr.AtmosphereFramework   :   org.atmosphere.interceptor.CacheHeadersInterceptor : Default Response's Headers Interceptor
2017-10-16 16:56:59.272  INFO 21967 --- [main] org.atmosphere.cpr.AtmosphereFramework   :   org.atmosphere.interceptor.PaddingAtmosphereInterceptor : Browser Padding Interceptor Support
2017-10-16 16:56:59.276  INFO 21967 --- [main] org.atmosphere.cpr.AtmosphereFramework   :   org.atmosphere.interceptor.AndroidAtmosphereInterceptor : Android Interceptor Support
2017-10-16 16:56:59.287  INFO 21967 --- [main] org.atmosphere.cpr.AtmosphereFramework   :   org.atmosphere.interceptor.HeartbeatInterceptor : Heartbeat Interceptor Support
2017-10-16 16:56:59.291  INFO 21967 --- [main] org.atmosphere.cpr.AtmosphereFramework   :   org.atmosphere.interceptor.SSEAtmosphereInterceptor : SSE Interceptor Support
2017-10-16 16:56:59.295  INFO 21967 --- [main] org.atmosphere.cpr.AtmosphereFramework   :   org.atmosphere.interceptor.JSONPAtmosphereInterceptor : JSONP Interceptor Support
2017-10-16 16:56:59.300  INFO 21967 --- [main] org.atmosphere.cpr.AtmosphereFramework   :   org.atmosphere.interceptor.JavaScriptProtocol : Atmosphere JavaScript Protocol
2017-10-16 16:56:59.303  INFO 21967 --- [main] org.atmosphere.cpr.AtmosphereFramework   :   org.atmosphere.interceptor.WebSocketMessageSuspendInterceptor : org.atmosphere.interceptor.WebSocketMessageSuspendInterceptor
2017-10-16 16:56:59.307  INFO 21967 --- [main] org.atmosphere.cpr.AtmosphereFramework   :   org.atmosphere.interceptor.OnDisconnectInterceptor : Browser disconnection detection
2017-10-16 16:56:59.310  INFO 21967 --- [main] org.atmosphere.cpr.AtmosphereFramework   :   org.atmosphere.interceptor.IdleResourceInterceptor : org.atmosphere.interceptor.IdleResourceInterceptor
2017-10-16 16:56:59.311  INFO 21967 --- [main] org.atmosphere.cpr.AtmosphereFramework   : Set org.atmosphere.cpr.AtmosphereInterceptor.disableDefaults to disable them.
2017-10-16 16:56:59.315  INFO 21967 --- [main] org.atmosphere.cpr.AtmosphereFramework   : Installed AtmosphereInterceptor CORS Interceptor Support with priority FIRST_BEFORE_DEFAULT
2017-10-16 16:56:59.316  INFO 21967 --- [main] org.atmosphere.cpr.AtmosphereFramework   : Installed AtmosphereInterceptor Default Response's Headers Interceptor with priority AFTER_DEFAULT
2017-10-16 16:56:59.316  INFO 21967 --- [main] org.atmosphere.cpr.AtmosphereFramework   : Installed AtmosphereInterceptor Browser Padding Interceptor Support with priority AFTER_DEFAULT
2017-10-16 16:56:59.316  INFO 21967 --- [main] org.atmosphere.cpr.AtmosphereFramework   : Installed AtmosphereInterceptor Android Interceptor Support with priority AFTER_DEFAULT
2017-10-16 16:56:59.318  INFO 21967 --- [main] o.a.interceptor.HeartbeatInterceptor     : HeartbeatInterceptor configured with padding value 'X', client frequency 60 seconds and server frequency 0 seconds
2017-10-16 16:56:59.318  INFO 21967 --- [main] org.atmosphere.cpr.AtmosphereFramework   : Installed AtmosphereInterceptor Heartbeat Interceptor Support with priority AFTER_DEFAULT
2017-10-16 16:56:59.318  INFO 21967 --- [main] org.atmosphere.cpr.AtmosphereFramework   : Installed AtmosphereInterceptor SSE Interceptor Support with priority AFTER_DEFAULT
2017-10-16 16:56:59.318  INFO 21967 --- [main] org.atmosphere.cpr.AtmosphereFramework   : Installed AtmosphereInterceptor JSONP Interceptor Support with priority AFTER_DEFAULT
2017-10-16 16:56:59.318  INFO 21967 --- [main] org.atmosphere.cpr.AtmosphereFramework   : Installed AtmosphereInterceptor Atmosphere JavaScript Protocol with priority AFTER_DEFAULT
2017-10-16 16:56:59.318  INFO 21967 --- [main] org.atmosphere.cpr.AtmosphereFramework   : Installed AtmosphereInterceptor org.atmosphere.interceptor.WebSocketMessageSuspendInterceptor with priority AFTER_DEFAULT
2017-10-16 16:56:59.319  INFO 21967 --- [main] org.atmosphere.cpr.AtmosphereFramework   : Installed AtmosphereInterceptor Browser disconnection detection with priority AFTER_DEFAULT
2017-10-16 16:56:59.319  INFO 21967 --- [main] org.atmosphere.cpr.AtmosphereFramework   : Installed AtmosphereInterceptor org.atmosphere.interceptor.IdleResourceInterceptor with priority BEFORE_DEFAULT
2017-10-16 16:56:59.330  INFO 21967 --- [main] org.atmosphere.cpr.AtmosphereFramework   : Using EndpointMapper class org.atmosphere.util.DefaultEndpointMapper
2017-10-16 16:56:59.331  WARN 21967 --- [main] org.atmosphere.cpr.AtmosphereFramework   : No BroadcasterCache configured. Broadcasted message between client reconnection will be LOST. It is recommended to configure the org.atmosphere.cache.UUIDBroadcasterCache
2017-10-16 16:56:59.331  INFO 21967 --- [main] org.atmosphere.cpr.AtmosphereFramework   : Default Broadcaster Class: org.atmosphere.cpr.DefaultBroadcaster
2017-10-16 16:56:59.331  INFO 21967 --- [main] org.atmosphere.cpr.AtmosphereFramework   : Broadcaster Shared List Resources: false
2017-10-16 16:56:59.333  INFO 21967 --- [main] org.atmosphere.cpr.AtmosphereFramework   : Broadcaster Polling Wait Time 100
2017-10-16 16:56:59.333  INFO 21967 --- [main] org.atmosphere.cpr.AtmosphereFramework   : Shared ExecutorService supported: true
2017-10-16 16:56:59.335  INFO 21967 --- [main] org.atmosphere.util.ForkJoinPool         : Using ForkJoinPool  java.util.concurrent.ForkJoinPool. Set the org.atmosphere.cpr.broadcaster.maxAsyncWriteThreads to -1 to fully use its power.
2017-10-16 16:56:59.335  INFO 21967 --- [main] org.atmosphere.cpr.AtmosphereFramework   : Messaging ExecutorService Pool Size unavailable - Not instance of ThreadPoolExecutor
2017-10-16 16:56:59.336  INFO 21967 --- [main] org.atmosphere.cpr.AtmosphereFramework   : Async I/O Thread Pool Size: 200
2017-10-16 16:56:59.336  INFO 21967 --- [main] org.atmosphere.cpr.AtmosphereFramework   : Using BroadcasterFactory: org.atmosphere.cpr.DefaultBroadcasterFactory
2017-10-16 16:56:59.336  INFO 21967 --- [main] org.atmosphere.cpr.AtmosphereFramework   : Using AtmosphereResurceFactory: org.atmosphere.cpr.DefaultAtmosphereResourceFactory
2017-10-16 16:56:59.336  INFO 21967 --- [main] org.atmosphere.cpr.AtmosphereFramework   : Using WebSocketProcessor: org.atmosphere.websocket.DefaultWebSocketProcessor
2017-10-16 16:56:59.348  INFO 21967 --- [main] org.atmosphere.cpr.AtmosphereFramework   : Invoke AtmosphereInterceptor on WebSocket message true
2017-10-16 16:56:59.348  INFO 21967 --- [main] org.atmosphere.cpr.AtmosphereFramework   : HttpSession supported: false
2017-10-16 16:56:59.348  INFO 21967 --- [main] org.atmosphere.cpr.AtmosphereFramework   : Atmosphere is using Spring Web ObjectFactory for dependency injection and object creation
2017-10-16 16:56:59.348  INFO 21967 --- [main] org.atmosphere.cpr.AtmosphereFramework   : Atmosphere is using async support: org.atmosphere.container.JSR356AsyncSupport running under container: Apache Tomcat/8.5.5 using javax.servlet/3.0 and jsr356/WebSocket API
2017-10-16 16:56:59.349  INFO 21967 --- [main] org.atmosphere.cpr.AtmosphereFramework   : Atmosphere Framework 2.4.5 started.
2017-10-16 16:56:59.349  INFO 21967 --- [main] org.atmosphere.cpr.AtmosphereFramework   :

This is the Java Application run inside Eclipse (which works as mentioned above):


2017-10-16 16:59:29.606  INFO 22236 --- [  restartedMain] org.atmosphere.cpr.AtmosphereFramework   : Atmosphere is using org.atmosphere.cpr.DefaultAnnotationProcessor for processing annotation
2017-10-16 16:59:29.607  INFO 22236 --- [  restartedMain] o.a.cpr.DefaultAnnotationProcessor       : AnnotationProcessor class org.atmosphere.cpr.DefaultAnnotationProcessor$BytecodeBasedAnnotationProcessor being used
2017-10-16 16:59:29.628  INFO 22236 --- [  restartedMain] org.atmosphere.cpr.AnnotationHandler     : Found Annotation in class com.myproject.something.atmosphere.MyAtmosphereManagedService being scanned: interface org.atmosphere.config.service.ManagedService
2017-10-16 16:59:29.635  INFO 22236 --- [  restartedMain] o.atmosphere.annotation.AnnotationUtil   : Adding class org.atmosphere.interceptor.AtmosphereResourceLifecycleInterceptor
2017-10-16 16:59:29.638  INFO 22236 --- [  restartedMain] o.atmosphere.annotation.AnnotationUtil   : Adding class org.atmosphere.client.TrackMessageSizeInterceptor
2017-10-16 16:59:29.642  INFO 22236 --- [  restartedMain] o.atmosphere.annotation.AnnotationUtil   : Adding class org.atmosphere.interceptor.SuspendTrackerInterceptor
2017-10-16 16:59:29.646  INFO 22236 --- [  restartedMain] o.atmosphere.annotation.AnnotationUtil   : Adding class org.atmosphere.config.managed.ManagedServiceInterceptor
2017-10-16 16:59:29.658  WARN 22236 --- [  restartedMain] f.a.AutowiredAnnotationBeanPostProcessor : Autowired annotation is not supported on static fields: public static org.atmosphere.cpr.AtmosphereResourceFactory  com.myproject.something.atmosphere.MyAtmosphereManagedService.factory
2017-10-16 16:59:29.678  INFO 22236 --- [  restartedMain] org.atmosphere.util.ForkJoinPool         : Using ForkJoinPool  java.util.concurrent.ForkJoinPool. Set the org.atmosphere.cpr.broadcaster.maxAsyncWriteThreads to -1 to fully use its power.
2017-10-16 16:59:29.689  INFO 22236 --- [  restartedMain] org.atmosphere.cpr.AtmosphereFramework   : Installed AtmosphereHandler org.atmosphere.config.managed.ManagedAtmosphereHandler mapped to context-path /myAtmosphereUrl and Broadcaster Class org.atmosphere.cpr.DefaultBroadcaster
2017-10-16 16:59:29.690  INFO 22236 --- [  restartedMain] org.atmosphere.cpr.AtmosphereFramework   : Installed AtmosphereInterceptor [Atmosphere LifeCycle,  Track Message Size Interceptor using |, UUID Tracking Interceptor, @ManagedService Interceptor] mapped to AtmosphereHandler org.atmosphere.config.managed.ManagedAtmosphereHandler
2017-10-16 16:59:29.691  INFO 22236 --- [  restartedMain] org.atmosphere.cpr.AnnotationHandler     : Found Annotation in class com.myproject.something.atmosphere.MySomeOtherManagedService being scanned: interface org.atmosphere.config.service.ManagedService
2017-10-16 16:59:29.692  INFO 22236 --- [  restartedMain] o.atmosphere.annotation.AnnotationUtil   : Adding class org.atmosphere.interceptor.AtmosphereResourceLifecycleInterceptor
2017-10-16 16:59:29.693  INFO 22236 --- [  restartedMain] o.atmosphere.annotation.AnnotationUtil   : Adding class org.atmosphere.client.TrackMessageSizeInterceptor
2017-10-16 16:59:29.694  INFO 22236 --- [  restartedMain] o.atmosphere.annotation.AnnotationUtil   : Adding class org.atmosphere.interceptor.SuspendTrackerInterceptor
2017-10-16 16:59:29.700  INFO 22236 --- [  restartedMain] o.atmosphere.annotation.AnnotationUtil   : Adding class org.atmosphere.config.managed.ManagedServiceInterceptor
2017-10-16 16:59:29.701  WARN 22236 --- [  restartedMain] f.a.AutowiredAnnotationBeanPostProcessor : Autowired annotation is not supported on static fields: public static org.atmosphere.cpr.AtmosphereResourceFactory com.myproject.something.atmosphere.MySomeOtherManagedService.factory
2017-10-16 16:59:29.711  INFO 22236 --- [  restartedMain] org.atmosphere.cpr.AtmosphereFramework   : Installed AtmosphereHandler org.atmosphere.config.managed.ManagedAtmosphereHandler mapped to context-path /updateLog and Broadcaster Class org.atmosphere.cpr.DefaultBroadcaster
2017-10-16 16:59:29.712  INFO 22236 --- [  restartedMain] org.atmosphere.cpr.AtmosphereFramework   : Installed AtmosphereInterceptor [Atmosphere LifeCycle,  Track Message Size Interceptor using |, UUID Tracking Interceptor, @ManagedService Interceptor] mapped to AtmosphereHandler org.atmosphere.config.managed.ManagedAtmosphereHandler
2017-10-16 16:59:29.714  INFO 22236 --- [  restartedMain] org.atmosphere.cpr.AtmosphereFramework   : Auto detecting WebSocketHandler in /WEB-INF/classes/
2017-10-16 16:59:29.718  INFO 22236 --- [  restartedMain] org.atmosphere.cpr.AtmosphereFramework   : Installed WebSocketProtocol org.atmosphere.websocket.protocol.SimpleHttpProtocol 
2017-10-16 16:59:29.722  WARN 22236 --- [  restartedMain] org.atmosphere.util.IOUtils              : More than one Servlet Mapping defined. WebSocket may not work org.apache.catalina.core.ApplicationServletRegistration@17a00bc0
2017-10-16 16:59:29.722  INFO 22236 --- [  restartedMain] o.a.container.JSR356AsyncSupport         : JSR 356 Mapping path /updateDevices
2017-10-16 16:59:29.734  INFO 22236 --- [  restartedMain] org.atmosphere.cpr.AtmosphereFramework   : Installing Default AtmosphereInterceptors
2017-10-16 16:59:29.737  INFO 22236 --- [  restartedMain] org.atmosphere.cpr.AtmosphereFramework   :    org.atmosphere.interceptor.CorsInterceptor : CORS Interceptor Support
2017-10-16 16:59:29.739  INFO 22236 --- [  restartedMain] org.atmosphere.cpr.AtmosphereFramework   :    org.atmosphere.interceptor.CacheHeadersInterceptor : Default Response's Headers Interceptor
2017-10-16 16:59:29.741  INFO 22236 --- [  restartedMain] org.atmosphere.cpr.AtmosphereFramework   :    org.atmosphere.interceptor.PaddingAtmosphereInterceptor : Browser Padding Interceptor Support
2017-10-16 16:59:29.745  INFO 22236 --- [  restartedMain] org.atmosphere.cpr.AtmosphereFramework   :    org.atmosphere.interceptor.AndroidAtmosphereInterceptor : Android Interceptor Support
2017-10-16 16:59:29.749  INFO 22236 --- [  restartedMain] org.atmosphere.cpr.AtmosphereFramework   :    org.atmosphere.interceptor.HeartbeatInterceptor : Heartbeat Interceptor Support
2017-10-16 16:59:29.754  INFO 22236 --- [  restartedMain] org.atmosphere.cpr.AtmosphereFramework   :    org.atmosphere.interceptor.SSEAtmosphereInterceptor : SSE Interceptor Support
2017-10-16 16:59:29.757  INFO 22236 --- [  restartedMain] org.atmosphere.cpr.AtmosphereFramework   :    org.atmosphere.interceptor.JSONPAtmosphereInterceptor : JSONP Interceptor Support
2017-10-16 16:59:29.762  INFO 22236 --- [  restartedMain] org.atmosphere.cpr.AtmosphereFramework   :    org.atmosphere.interceptor.JavaScriptProtocol : Atmosphere JavaScript Protocol
2017-10-16 16:59:29.765  INFO 22236 --- [  restartedMain] org.atmosphere.cpr.AtmosphereFramework   :    org.atmosphere.interceptor.WebSocketMessageSuspendInterceptor : org.atmosphere.interceptor.WebSocketMessageSuspendInterceptor
2017-10-16 16:59:29.767  INFO 22236 --- [  restartedMain] org.atmosphere.cpr.AtmosphereFramework   :    org.atmosphere.interceptor.OnDisconnectInterceptor : Browser disconnection detection
2017-10-16 16:59:29.770  INFO 22236 --- [  restartedMain] org.atmosphere.cpr.AtmosphereFramework   :    org.atmosphere.interceptor.IdleResourceInterceptor : org.atmosphere.interceptor.IdleResourceInterceptor
2017-10-16 16:59:29.771  INFO 22236 --- [  restartedMain] org.atmosphere.cpr.AtmosphereFramework   : Set org.atmosphere.cpr.AtmosphereInterceptor.disableDefaults to disable them.
2017-10-16 16:59:29.771  INFO 22236 --- [  restartedMain] org.atmosphere.cpr.AtmosphereFramework   : Installed AtmosphereInterceptor CORS Interceptor Support with priority FIRST_BEFORE_DEFAULT 
2017-10-16 16:59:29.771  INFO 22236 --- [  restartedMain] org.atmosphere.cpr.AtmosphereFramework   : Installed AtmosphereInterceptor Default Response's Headers Interceptor with priority AFTER_DEFAULT 
2017-10-16 16:59:29.771  INFO 22236 --- [  restartedMain] org.atmosphere.cpr.AtmosphereFramework   : Installed AtmosphereInterceptor Browser Padding Interceptor Support with priority AFTER_DEFAULT 
2017-10-16 16:59:29.771  INFO 22236 --- [  restartedMain] org.atmosphere.cpr.AtmosphereFramework   : Installed AtmosphereInterceptor Android Interceptor Support with priority AFTER_DEFAULT 
2017-10-16 16:59:29.771  INFO 22236 --- [  restartedMain] o.a.interceptor.HeartbeatInterceptor     : HeartbeatInterceptor configured with padding value 'X', client frequency 60 seconds and server frequency 0 seconds
2017-10-16 16:59:29.771  INFO 22236 --- [  restartedMain] org.atmosphere.cpr.AtmosphereFramework   : Installed AtmosphereInterceptor Heartbeat Interceptor Support with priority AFTER_DEFAULT 
2017-10-16 16:59:29.771  INFO 22236 --- [  restartedMain] org.atmosphere.cpr.AtmosphereFramework   : Installed AtmosphereInterceptor SSE Interceptor Support with priority AFTER_DEFAULT 
2017-10-16 16:59:29.771  INFO 22236 --- [  restartedMain] org.atmosphere.cpr.AtmosphereFramework   : Installed AtmosphereInterceptor JSONP Interceptor Support with priority AFTER_DEFAULT 
2017-10-16 16:59:29.771  INFO 22236 --- [  restartedMain] org.atmosphere.cpr.AtmosphereFramework   : Installed AtmosphereInterceptor Atmosphere JavaScript Protocol with priority AFTER_DEFAULT 
2017-10-16 16:59:29.771  INFO 22236 --- [  restartedMain] org.atmosphere.cpr.AtmosphereFramework   : Installed AtmosphereInterceptor org.atmosphere.interceptor.WebSocketMessageSuspendInterceptor with priority AFTER_DEFAULT 
2017-10-16 16:59:29.772  INFO 22236 --- [  restartedMain] org.atmosphere.cpr.AtmosphereFramework   : Installed AtmosphereInterceptor Browser disconnection detection with priority AFTER_DEFAULT 
2017-10-16 16:59:29.772  INFO 22236 --- [  restartedMain] org.atmosphere.cpr.AtmosphereFramework   : Installed AtmosphereInterceptor org.atmosphere.interceptor.IdleResourceInterceptor with priority BEFORE_DEFAULT 
2017-10-16 16:59:29.775  INFO 22236 --- [  restartedMain] org.atmosphere.cpr.AtmosphereFramework   : Using EndpointMapper class org.atmosphere.util.DefaultEndpointMapper
2017-10-16 16:59:29.775  INFO 22236 --- [  restartedMain] org.atmosphere.cpr.AtmosphereFramework   : Using BroadcasterCache: org.atmosphere.cache.UUIDBroadcasterCache
2017-10-16 16:59:29.775  INFO 22236 --- [  restartedMain] org.atmosphere.cpr.AtmosphereFramework   : Default Broadcaster Class: org.atmosphere.cpr.DefaultBroadcaster
2017-10-16 16:59:29.776  INFO 22236 --- [  restartedMain] org.atmosphere.cpr.AtmosphereFramework   : Broadcaster Shared List Resources: false
2017-10-16 16:59:29.776  INFO 22236 --- [  restartedMain] org.atmosphere.cpr.AtmosphereFramework   : Broadcaster Polling Wait Time 100
2017-10-16 16:59:29.776  INFO 22236 --- [  restartedMain] org.atmosphere.cpr.AtmosphereFramework   : Shared ExecutorService supported: true
2017-10-16 16:59:29.776  INFO 22236 --- [  restartedMain] org.atmosphere.cpr.AtmosphereFramework   : Messaging ExecutorService Pool Size unavailable - Not instance of ThreadPoolExecutor
2017-10-16 16:59:29.776  INFO 22236 --- [  restartedMain] org.atmosphere.cpr.AtmosphereFramework   : Async I/O Thread Pool Size: 200
2017-10-16 16:59:29.776  INFO 22236 --- [  restartedMain] org.atmosphere.cpr.AtmosphereFramework   : Using BroadcasterFactory: org.atmosphere.cpr.DefaultBroadcasterFactory
2017-10-16 16:59:29.776  INFO 22236 --- [  restartedMain] org.atmosphere.cpr.AtmosphereFramework   : Using AtmosphereResurceFactory: org.atmosphere.cpr.DefaultAtmosphereResourceFactory
2017-10-16 16:59:29.776  INFO 22236 --- [  restartedMain] org.atmosphere.cpr.AtmosphereFramework   : Using WebSocketProcessor: org.atmosphere.websocket.DefaultWebSocketProcessor
2017-10-16 16:59:29.779  INFO 22236 --- [  restartedMain] org.atmosphere.cpr.AtmosphereFramework   : Invoke AtmosphereInterceptor on WebSocket message true
2017-10-16 16:59:29.780  INFO 22236 --- [  restartedMain] org.atmosphere.cpr.AtmosphereFramework   : HttpSession supported: false
2017-10-16 16:59:29.780  INFO 22236 --- [  restartedMain] org.atmosphere.cpr.AtmosphereFramework   : Atmosphere is using Spring Web ObjectFactory for dependency injection and object creation
2017-10-16 16:59:29.780  INFO 22236 --- [  restartedMain] org.atmosphere.cpr.AtmosphereFramework   : Atmosphere is using async support: org.atmosphere.container.JSR356AsyncSupport running under container: Apache Tomcat/8.5.5 using javax.servlet/3.0 and jsr356/WebSocket API
2017-10-16 16:59:29.781  INFO 22236 --- [  restartedMain] org.atmosphere.cpr.AtmosphereFramework   : Atmosphere Framework 2.4.5 started.

Why does it work when running from the IDE and why not from the packaged war?

I have a more detailed description of this issue on stackoverflow: https://stackoverflow.com/questions/46767772/org-atmosphere-cpr-atmospheremappingexception-in-spring-boot-executable-war-file Since i do not know wether or not its a bug or an error in my configuration.

keltik85 commented 7 years ago

found a solution: https://stackoverflow.com/questions/46767772/org-atmosphere-cpr-atmospheremappingexception-in-spring-boot-executable-war-file