Spring Boot Websockets in Wildfly

前端 未结 5 1753
星月不相逢
星月不相逢 2020-12-15 04:14

Hi I need to deploy my Spring Boot app into Wildfly 8.1 and I\'m getting the following exception:

Caused by: java.lang.RuntimeException: java.lang.Cl

5条回答
  •  渐次进展
    2020-12-15 04:39

    spring-boot-starter-web and spring-boot-starter-websocket by default includes the spring-boot-starter-tomcat so exclude the tomcat, like below

         
            org.springframework.boot
            spring-boot-starter-web
            ${spring-boot.version}
            
                
                    org.springframework.boot
                    spring-boot-starter-tomcat
                
            
        
    
         
            org.springframework.boot
            spring-boot-starter-websocket
            ${spring-boot.version}
            
                
                    org.springframework.boot
                    spring-boot-starter-tomcat
                
            
        
    

    and include undertow, make sure the tomcat exists no where in the classpath.

提交回复
热议问题