Error message

java.lang.IllegalStateException: javax.websocket.server.ServerContainer not availabl

Error reason

Undertow introduced the UnderTOW-WebSockets – JSR JAR package conflict

The solution

    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-undertow</artifactId>
        <exclusions>
            <exclusion>
                <groupId>io.undertow</groupId>
                <artifactId>undertow-websockets-jsr</artifactId>
            </exclusion>
        </exclusions>
    </dependency>
Copy the code