spring-guides / gs-messaging-stomp-websocket

Using WebSocket to build an interactive web application :: Learn how to the send and receive messages between a browser and the server over a WebSocket

Home Page:http://spring.io/guides/gs/messaging-stomp-websocket/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Guide doesn't build successfully.

gregturn opened this issue · comments

@rstoyanchev can you look at this guide, especially the "complete" version of the code? Something has changed and I thought you might spot it quicker than me.

I just got the latest and it's building okay for me. Is this still an issue? What's the failure?

The problem is we can't upgrade to Spring Boot RC3. To reproduce:

  1. Edit complete/pom.xml, upgrading to Spring Boot RC3
  2. Take out the version number for spring-messaging allowing it to float up to 4.0.1.RELEASE.
  3. Now try to build it and you should see something like:
[ERROR] /Users/gturnquist/src/spring-guides/gs-messaging-stomp-websocket/complete/src/main/java/hello/WebSocketConfig.java:[13,7] hello.WebSocketConfig is not abstract and does not override abstract method configureMessageConverters(java.util.List<org.springframework.messaging.converter.MessageConverter>) in org.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurer
[ERROR] -> [Help 1]

Ah, for that simply implement the required method or have WebSocketConfig extend AbstractWebSocketMessageBrokerConfigurer (empty method base class).

Should be fixed by #12

Resolved by #12