JMS + Vaadin, Chat in Wildfly 10 final not working

I’m using a vaadin jms example project from here: https://github.com/mstahv/java-ee-jms-vaadin-chat

I changed at MainUI.java the @Resource from:

@Resource(name = Resources.TOPIC_NAME)
private Topic topic;

To:

@Resource(lookup = Resources.TOPIC_NAME)
private Topic topic;

If I deploy the .war file in Wildfly 8.2.1.Final with an standalone-full configuration the chat works perfectly without error or warnings.

But then we needed to start using Wildfly 10.1.0.Final and after deploying the .war file with standalone-full configuration I get this warnings:

  1. WARN [org.apache.activemq.artemis.jms.client] (Thread-5 (ActiveMQ-client-global-threads-1090078565)) AMQ122001: Unhandled exception thrown from onMessage: org.jboss.weld.context.ContextNotActiveException: WELD-001303: No active contexts for scope type javax.enterprise.context.SessionScoped 2) WARN [org.apache.activemq.artemis.jms.client] (Thread-6 (ActiveMQ-client-global-threads-1090078565)) AMQ122001: Unhandled exception thrown from onMessage: java.lang.RuntimeException: Push failed 3) WARN [org.apache.activemq.artemis.jms.client] (Thread-10 (ActiveMQ-client-global-threads-1090078565)) AMQ122001: Unhandled exception thrown from onMessage: org.jboss.weld.context.ContextNotActiveException: WELD-001303: No active contexts for scope type javax.enterprise.context.SessionScoped And if I test the chat, I get: SEVERE [com.vaadin.server.DefaultErrorHandler] (default task-19) : org.jboss.weld.context.ContextNotActiveException: WELD-001303: No active contexts for scope type javax.enterprise.context.RequestScoped
    Looking throw the Wildfly 8 standalone-full.xml, it uses hornetq-server while Wildfly 10 uses activemq, just pointing out if the problem is at the wildfly configuration.

Do I need to add some annotations to make it run in Wildfly 10?

I’ll appreciate any help, thanks.