Hello Yong,
System.out.println("Sent Stomp message: " + text); was printed on my console within Eclipse during execution of the STOMP Client on both operating systems:
Connected: true
response: CONNECTED
version:1.2
session:-1249611988
server:HornetQ/2.4.1.Final (Fast Hornet, 124) HornetQ Messaging Engine
response-id:1
In kubuntu the server.log file prints out:
2014-10-08 10:03:38,786 INFO [org.jboss.as] (MSC service thread 1-2) JBAS015899: WildFly 8.1.0.Final "Kenny" sta$
2014-10-08 10:03:38,793 DEBUG [org.jboss.as.config] (MSC service thread 1-2) Configured system properties:
awt.toolkit = sun.awt.X11.XToolkit
file.encoding = UTF-8
file.encoding.pkg = sun.io
file.separator = /
java.awt.graphicsenv = sun.awt.X11GraphicsEnvironment
java.awt.headless = true
java.awt.printerjob = sun.print.PSPrinterJob
java.class.path = /opt/wildfly-8.1.0.Final/jboss-modules.jar
java.class.version = 52.0
java.endorsed.dirs = /usr/lib/jvm/java-8-oracle/jre/lib/endorsed
java.ext.dirs = /usr/lib/jvm/java-8-oracle/jre/lib/ext:/usr/java/packages/lib/ext
java.home = /usr/lib/jvm/java-8-oracle/jre
java.io.tmpdir = /tmp
java.library.path = /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
java.net.preferIPv4Stack = true
java.runtime.name = Java(TM) SE Runtime Environment
java.runtime.version = 1.8.0_20-b26
java.specification.name = Java Platform API Specification
java.specification.vendor = Oracle Corporation
java.specification.version = 1.8
java.util.logging.manager = org.jboss.logmanager.LogManager
java.vendor = Oracle Corporation
java.vendor.url = http://java.oracle.com/
java.vendor.url.bug = http://bugreport.sun.com/bugreport/
java.version = 1.8.0_20
java.vm.info = mixed mode
java.vm.name = Java HotSpot(TM) 64-Bit Server VM
java.vm.specification.name = Java Virtual Machine Specification
java.vm.specification.vendor = Oracle Corporation
java.vm.specification.version = 1.8
....
2014-10-08 10:03:43,945 INFO [org.hornetq.core.server] (ServerService Thread Pool -- 56) HQ221012: Using AIO Journal
2014-10-08 10:03:44,273 INFO [org.jboss.ws.common.management] (MSC service thread 1-1) JBWS022052: Starting JBoss Web Services - Stack CXF Server 4.2.4.Final
2014-10-08 10:03:44,558 INFO [org.hornetq.core.server] (ServerService Thread Pool -- 56) HQ221043: Adding protocol support CORE
2014-10-08 10:03:44,593 INFO [org.hornetq.core.server] (ServerService Thread Pool -- 56) HQ221043: Adding protocol support AMQP
2014-10-08 10:03:44,622 INFO [org.hornetq.core.server] (ServerService Thread Pool -- 56) HQ221043: Adding protocol support STOMP
2014-10-08 10:03:44,726 INFO [org.hornetq.core.server] (ServerService Thread Pool -- 56) HQ221034: Waiting to obtain live lock
2014-10-08 10:03:44,727 INFO [org.hornetq.core.server] (ServerService Thread Pool -- 56) HQ221035: Live Server Obtained live lock
2014-10-08 10:03:45,350 INFO [org.jboss.messaging] (MSC service thread 1-2) JBAS011615: Registered HTTP upgrade for hornetq-remoting protocol handled by http-acceptor-throughput acceptor
2014-10-08 10:03:45,350 INFO [org.jboss.messaging] (MSC service thread 1-4) JBAS011615: Registered HTTP upgrade for hornetq-remoting protocol handled by http-acceptor acceptor
2014-10-08 10:03:45,586 INFO [org.hornetq.core.server] (ServerService Thread Pool -- 56) HQ221020: Started Netty Acceptor version unknown localhost:61613
2014-10-08 10:03:45,592 INFO [org.hornetq.core.server] (ServerService Thread Pool -- 56) HQ221007: Server is now live
2014-10-08 10:03:45,593 INFO [org.hornetq.core.server] (ServerService Thread Pool -- 56) HQ221001: HornetQ Server version 2.4.1.Final (Fast Hornet, 124) [a47c35fc-4d55-11e4-8de6-db312495ecf2]
2014-10-08 10:03:45,606 INFO [org.hornetq.core.server] (ServerService Thread Pool -- 56) HQ221003: trying to deploy queue jms.queue.DLQ
2014-10-08 10:03:45,619 INFO [org.jboss.as.messaging] (ServerService Thread Pool -- 56) JBAS011601: Bound messaging object to jndi name java:/jms/queue/DLQ
2014-10-08 10:03:45,755 INFO [org.jboss.as.messaging] (ServerService Thread Pool -- 59) JBAS011601: Bound messaging object to jndi name java:jboss/exported/jms/RemoteConnectionFactory
2014-10-08 10:03:45,755 INFO [org.hornetq.core.server] (ServerService Thread Pool -- 61) HQ221003: trying to deploy queue jms.queue.ExpiryQueue
2014-10-08 10:03:45,757 INFO [org.jboss.as.messaging] (ServerService Thread Pool -- 61) JBAS011601: Bound messaging object to jndi name java:/jms/queue/ExpiryQueue
2014-10-08 10:03:45,757 INFO [org.hornetq.core.server] (ServerService Thread Pool -- 60) HQ221003: trying to deploy queue jms.queue.testQueue
2014-10-08 10:03:45,758 INFO [org.jboss.as.messaging] (ServerService Thread Pool -- 60) JBAS011601: Bound messaging object to jndi name queue/test
2014-10-08 10:03:45,758 INFO [org.jboss.as.messaging] (ServerService Thread Pool -- 60) JBAS011601: Bound messaging object to jndi name java:jboss/exported/jms/queue/test
2014-10-08 10:03:45,759 INFO [org.jboss.as.messaging] (ServerService Thread Pool -- 57) JBAS011601: Bound messaging object to jndi name java:/ConnectionFactory
2014-10-08 10:03:45,759 INFO [org.hornetq.core.server] (ServerService Thread Pool -- 58) HQ221003: trying to deploy queue jms.queue.EventQueue
2014-10-08 10:03:45,759 INFO [org.jboss.as.messaging] (ServerService Thread Pool -- 58) JBAS011601: Bound messaging object to jndi name java:jboss/exported/jms/queues/EventQueue
2014-10-08 10:03:45,760 INFO [org.jboss.as.messaging] (ServerService Thread Pool -- 58) JBAS011601: Bound messaging object to jndi name java:/jms/queue/EventQueue
2014-10-08 10:03:45,761 INFO [org.hornetq.core.server] (ServerService Thread Pool -- 62) HQ221003: trying to deploy queue jms.topic.EventTopic
2014-10-08 10:03:45,764 INFO [org.jboss.as.messaging] (ServerService Thread Pool -- 62) JBAS011601: Bound messaging object to jndi name java:/jms/topic/EventTopic
2014-10-08 10:03:46,098 INFO [org.jboss.as.connector.deployment] (MSC service thread 1-1) JBAS010406: Registered connection factory java:/JmsXA
2014-10-08 10:03:46,176 INFO [org.hornetq.ra] (MSC service thread 1-1) HornetQ resource adaptor started
2014-10-08 10:03:46,177 INFO [org.jboss.as.connector.services.resourceadapters.ResourceAdapterActivatorService$ResourceAdapterActivator] (MSC service thread 1-1) IJ020002: Deployed: file://RaActivatorhornetq-ra
2014-10-08 10:03:46,180 INFO [org.jboss.as.connector.deployment] (MSC service thread 1-4) JBAS010401: Bound JCA ConnectionFactory [java:/JmsXA]
2014-10-08 10:03:46,181 INFO [org.jboss.as.messaging] (MSC service thread 1-4) JBAS011601: Bound messaging object to jndi name java:jboss/DefaultJMSConnectionFactory
2014-10-08 10:03:46,347 INFO [org.jboss.as.ejb3] (MSC service thread 1-2) JBAS014142: Started message driven bean 'EventMessageDrivenBean' with 'hornetq-ra.rar' resource adapter
2014-10-08 10:03:46,858 INFO [org.wildfly.extension.undertow] (MSC service thread 1-3) JBAS017534: Registered web context: /JMSTest
2014-10-08 10:03:46,910 INFO [org.jboss.as.server] (ServerService Thread Pool -- 31) JBAS018559: Deployed "JMSTest.war" (runtime-name : "JMSTest.war")
2014-10-08 10:03:46,971 INFO [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface listening on http://127.0.0.1:9990/management
2014-10-08 10:03:46,972 INFO [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990
2014-10-08 10:03:46,973 INFO [org.jboss.as] (Controller Boot Thread) JBAS015874: WildFly 8.1.0.Final "Kenny" started in 9842ms - Started 303 of 356 services (105 services are lazy, passive or on-demand)
2014-10-08 10:05:01,672 WARN [org.hornetq.core.server] (hornetq-failure-check-thread) HQ222067: Connection failure has been detected: HQ119014: Did not receive data from null. It is likely the client has exited or crashed witho$
2014-10-08 10:05:01,672 WARN [org.hornetq.core.server] (hornetq-failure-check-thread) HQ222061: Client connection failed, clearing up resources for session 19145704-4f0d-11e4-abd1-2bb59113b42a
2014-10-08 10:05:01,673 WARN [org.hornetq.core.server] (hornetq-failure-check-thread) HQ222107: Cleared up resources for session 19145704-4f0d-11e4-abd1-2bb59113b42a
In windows the server log file looks like:
2014-10-08 21:27:00,435 INFO [org.jboss.as] (MSC service thread 1-6) JBAS015899: WildFly 8.1.0.Final "Kenny" starting
2014-10-08 21:27:00,442 DEBUG [org.jboss.as.config] (MSC service thread 1-6) Configured system properties:
awt.toolkit = sun.awt.windows.WToolkit
file.encoding = Cp1252
file.encoding.pkg = sun.io
file.separator = \
java.awt.graphicsenv = sun.awt.Win32GraphicsEnvironment
java.awt.headless = true
java.awt.printerjob = sun.awt.windows.WPrinterJob
java.class.path = H:\wildfly-8.1.0.Final\jboss-modules.jar
java.class.version = 52.0
java.endorsed.dirs = C:\Program Files\Java\jdk1.8.0_05\jre\lib\endorsed
java.ext.dirs = C:\Program Files\Java\jdk1.8.0_05\jre\lib\ext;C:\Windows\Sun\Java\lib\ext
java.home = C:\Program Files\Java\jdk1.8.0_05\jre
java.io.tmpdir = C:\Users\Jimena\AppData\Local\Temp\
java.library.path = C:\Program Files\Java\jdk1.8.0_05\jre\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;native;C:\ProgramData\Oracle\Java\javapath;
java.net.preferIPv4Stack = true
java.runtime.name = Java(TM) SE Runtime Environment
java.runtime.version = 1.8.0_05-b13
java.specification.name = Java Platform API Specification
java.specification.vendor = Oracle Corporation
java.specification.version = 1.8
java.util.logging.manager = org.jboss.logmanager.LogManager
java.vendor = Oracle Corporation
java.vendor.url = http://java.oracle.com/
java.vendor.url.bug = http://bugreport.sun.com/bugreport/
java.version = 1.8.0_05
java.vm.info = mixed mode
java.vm.name = Java HotSpot(TM) 64-Bit Server VM
java.vm.specification.name = Java Virtual Machine Specification
java.vm.specification.vendor = Oracle Corporation
java.vm.specification.version = 1.8
java.vm.vendor = Oracle Corporation
java.vm.version = 25.5-b02
javax.management.builder.initial = org.jboss.as.jmx.PluggableMBeanServerBuilder
javax.xml.datatype.DatatypeFactory = __redirected.__DatatypeFactory
javax.xml.parsers.DocumentBuilderFactory = __redirected.__DocumentBuilderFactory
javax.xml.parsers.SAXParserFactory = __redirected.__SAXParserFactory
javax.xml.stream.XMLEventFactory = __redirected.__XMLEventFactory
javax.xml.stream.XMLInputFactory = __redirected.__XMLInputFactory
javax.xml.stream.XMLOutputFactory = __redirected.__XMLOutputFactory
javax.xml.transform.TransformerFactory = __redirected.__TransformerFactory
javax.xml.validation.SchemaFactory:http://www.w3.org/2001/XMLSchema = __redirected.__SchemaFactory
javax.xml.xpath.XPathFactory:http://java.sun.com/jaxp/xpath/dom = __redirected.__XPathFactory
jboss.bind.address = localhost
jboss.bind.address.management = localhost
jboss.home.dir = H:\wildfly-8.1.0.Final
.....
2014-10-08 21:27:04,723 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 30) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
2014-10-08 21:27:04,757 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-8) JBAS010417: Started Driver service with driver-name = h2
2014-10-08 21:27:04,922 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 53) JBAS017527: Creating file handler for path H:\wildfly-8.1.0.Final/welcome-content
2014-10-08 21:27:04,960 INFO [org.wildfly.extension.undertow] (MSC service thread 1-14) JBAS017525: Started server default-server.
2014-10-08 21:27:04,999 INFO [org.wildfly.extension.undertow] (MSC service thread 1-10) JBAS017531: Host default-host starting
2014-10-08 21:27:05,055 INFO [org.wildfly.extension.undertow] (MSC service thread 1-14) JBAS017519: Undertow HTTP listener default listening on localhost/127.0.0.1:8080
2014-10-08 21:27:05,239 INFO [org.jboss.as.server.deployment.scanner] (MSC service thread 1-13) JBAS015012: Started FileSystemDeploymentService for directory H:\wildfly-8.1.0.Final\standalone\deployments
2014-10-08 21:27:05,246 INFO [org.jboss.as.server.deployment] (MSC service thread 1-11) JBAS015876: Starting deployment of "JMSTest.war" (runtime-name: "JMSTest.war")
2014-10-08 21:27:05,276 WARN [jacorb.codeset] (MSC service thread 1-7) Warning - unknown codeset (Cp1252) - defaulting to ISO-8859-1
2014-10-08 21:27:05,311 WARN [org.jboss.as.messaging] (MSC service thread 1-16) JBAS011600: AIO wasn't located on this platform, it will fall back to using pure Java NIO. If your platform is Linux, install LibAIO to enable the AIO journal
2014-10-08 21:27:05,376 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-14) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]
2014-10-08 21:27:05,381 INFO [org.jboss.as.jacorb] (MSC service thread 1-7) JBAS016330: CORBA ORB Service started
2014-10-08 21:27:05,401 INFO [org.hornetq.core.server] (ServerService Thread Pool -- 56) HQ221000: live server is starting with configuration HornetQ Configuration (clustered=false,backup=false,sharedStore=true,journalDirectory=H:\wildfly-8.1.0.Final\standalone\data\messagingjournal,bindingsDirectory=H:\wildfly-8.1.0.Final\standalone\data\messagingbindings,largeMessagesDirectory=H:\wildfly-8.1.0.Final\standalone\data\messaginglargemessages,pagingDirectory=H:\wildfly-8.1.0.Final\standalone\data\messagingpaging)
2014-10-08 21:27:05,410 INFO [org.hornetq.core.server] (ServerService Thread Pool -- 56) HQ221006: Waiting to obtain live lock
2014-10-08 21:27:05,464 INFO [org.hornetq.core.server] (ServerService Thread Pool -- 56) HQ221013: Using NIO Journal
2014-10-08 21:27:05,599 INFO [org.jboss.as.jacorb] (MSC service thread 1-15) JBAS016328: CORBA Naming Service started
2014-10-08 21:27:05,756 INFO [org.hornetq.core.server] (ServerService Thread Pool -- 56) HQ221043: Adding protocol support CORE
2014-10-08 21:27:05,770 INFO [org.jboss.ws.common.management] (MSC service thread 1-4) JBWS022052: Starting JBoss Web Services - Stack CXF Server 4.2.4.Final
2014-10-08 21:27:05,926 INFO [org.hornetq.core.server] (ServerService Thread Pool -- 56) HQ221043: Adding protocol support AMQP
2014-10-08 21:27:05,931 INFO [org.hornetq.core.server] (ServerService Thread Pool -- 56) HQ221043: Adding protocol support STOMP
2014-10-08 21:27:06,004 INFO [org.hornetq.core.server] (ServerService Thread Pool -- 56) HQ221034: Waiting to obtain live lock
2014-10-08 21:27:06,005 INFO [org.hornetq.core.server] (ServerService Thread Pool -- 56) HQ221035: Live Server Obtained live lock
2014-10-08 21:27:06,581 INFO [org.hornetq.core.server] (ServerService Thread Pool -- 56) HQ221019: Deleting unreferenced message id=83.751.862.855 from the journal
2014-10-08 21:27:06,590 INFO [org.jboss.messaging] (MSC service thread 1-11) JBAS011615: Registered HTTP upgrade for hornetq-remoting protocol handled by http-acceptor acceptor
2014-10-08 21:27:06,591 INFO [org.jboss.messaging] (MSC service thread 1-4) JBAS011615: Registered HTTP upgrade for hornetq-remoting protocol handled by http-acceptor-throughput acceptor
2014-10-08 21:27:06,907 INFO [org.hornetq.core.server] (ServerService Thread Pool -- 56) HQ221020: Started Netty Acceptor version unknown localhost:61613
2014-10-08 21:27:06,911 INFO [org.hornetq.core.server] (ServerService Thread Pool -- 56) HQ221007: Server is now live
2014-10-08 21:27:06,911 INFO [org.hornetq.core.server] (ServerService Thread Pool -- 56) HQ221001: HornetQ Server version 2.4.1.Final (Fast Hornet, 124) [dc49f412-2c4f-11e4-9912-dfbb079ab869]
2014-10-08 21:27:06,950 INFO [org.jboss.as.messaging] (ServerService Thread Pool -- 56) JBAS011601: Bound messaging object to jndi name java:jboss/exported/jms/RemoteConnectionFactory
2014-10-08 21:27:06,952 INFO [org.hornetq.core.server] (ServerService Thread Pool -- 61) HQ221003: trying to deploy queue jms.queue.ExpiryQueue
2014-10-08 21:27:06,959 INFO [org.jboss.as.messaging] (ServerService Thread Pool -- 61) JBAS011601: Bound messaging object to jndi name java:/jms/queue/ExpiryQueue
2014-10-08 21:27:06,959 INFO [org.hornetq.core.server] (ServerService Thread Pool -- 60) HQ221003: trying to deploy queue jms.queue.DLQ
2014-10-08 21:27:06,960 INFO [org.jboss.as.messaging] (ServerService Thread Pool -- 60) JBAS011601: Bound messaging object to jndi name java:/jms/queue/DLQ
2014-10-08 21:27:06,960 INFO [org.hornetq.core.server] (ServerService Thread Pool -- 59) HQ221003: trying to deploy queue jms.queue.EventQueue
2014-10-08 21:27:06,961 INFO [org.jboss.as.messaging] (ServerService Thread Pool -- 59) JBAS011601: Bound messaging object to jndi name java:/jms/queue/EventQueue
2014-10-08 21:27:06,961 INFO [org.hornetq.core.server] (ServerService Thread Pool -- 57) HQ221003: trying to deploy queue jms.topic.EventTopic
2014-10-08 21:27:06,966 INFO [org.jboss.as.messaging] (ServerService Thread Pool -- 57) JBAS011601: Bound messaging object to jndi name java:/jms/topic/EventTopic
2014-10-08 21:27:06,966 INFO [org.jboss.as.messaging] (ServerService Thread Pool -- 58) JBAS011601: Bound messaging object to jndi name java:/ConnectionFactory
2014-10-08 21:27:07,004 INFO [org.jboss.as.connector.deployment] (MSC service thread 1-1) JBAS010406: Registered connection factory java:/JmsXA
2014-10-08 21:27:07,050 INFO [org.hornetq.ra] (MSC service thread 1-1) HornetQ resource adaptor started
2014-10-08 21:27:07,051 INFO [org.jboss.as.connector.services.resourceadapters.ResourceAdapterActivatorService$ResourceAdapterActivator] (MSC service thread 1-1) IJ020002: Deployed: file://RaActivatorhornetq-ra
2014-10-08 21:27:07,378 INFO [org.jboss.as.messaging] (MSC service thread 1-15) JBAS011601: Bound messaging object to jndi name java:jboss/DefaultJMSConnectionFactory
2014-10-08 21:27:07,378 INFO [org.jboss.as.connector.deployment] (MSC service thread 1-7) JBAS010401: Bound JCA ConnectionFactory [java:/JmsXA]
2014-10-08 21:27:07,430 INFO [org.jboss.as.ejb3] (MSC service thread 1-11) JBAS014142: Started message driven bean 'EventMessageDrivenBean' with 'hornetq-ra.rar' resource adapter
2014-10-08 21:27:07,431 INFO [org.jboss.as.ejb3] (MSC service thread 1-5) JBAS014142: Started message driven bean 'IncidentMessageDrivenBean' with 'hornetq-ra.rar' resource adapter
2014-10-08 21:27:07,639 INFO [org.wildfly.extension.undertow] (MSC service thread 1-12) JBAS017534: Registered web context: /JMSTest
2014-10-08 21:27:07,671 INFO [org.jboss.as.server] (ServerService Thread Pool -- 31) JBAS018559: Deployed "JMSTest.war" (runtime-name : "JMSTest.war")
2014-10-08 21:27:07,734 INFO [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface listening on http://127.0.0.1:9999/management
2014-10-08 21:27:07,734 INFO [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9999
2014-10-08 21:27:07,734 INFO [org.jboss.as] (Controller Boot Thread) JBAS015874: WildFly 8.1.0.Final "Kenny" started in 8565ms - Started 313 of 366 services (104 services are lazy, passive or on-demand)
Where do I check netty/hornetq version between your client and wildfly server?
I am using Eclipse Luna and JBoss Tools to start Wildfly. If there where any dependencies I included the wildfly lib to the project build path. So I am not aware of any version differences.
Thanks a lot for your help :-)