Deploy helloworld-mdb from quickstart 7.0.2.CR3 fails on AS 7.0.2.Final
chrisinmtown Feb 13, 2012 3:31 PMShort version: Quickstart example of message-driven bean fails to deploy to the server, followed instructions exactly, please help.
Long version.
I downloaded jboss-as-7.0.2.Final.tar.gz and jboss-as-quickstarts-7.0.2.CR3-dist.zip, unpacked both, and started the server successfully - I get a usable page at localhost:8080. Then I started following the instructions from file jboss-as-quickstarts-7.0.2.CR3/helloworld-mdb/README.html. I edited the file $JBOSS_HOME/standalone/configuration/mgmt-users.properties to un-comment the "admin=admin" line. Then I could visit the console at http://localhost:9990/console/. All good so far. Then I built the helloworld-mdb quickstart example with maven (version info on maven and java is below).
$ mvn -version
Apache Maven 3.0.4 (r1232337; 2012-01-17 03:44:56-0500)
Maven home: /home/kdd/apache-maven-3.0.4
Java version: 1.6.0_30, vendor: Sun Microsystems Inc.
Java home: /usr/java/jdk1.6.0_30/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "2.6.32-131.0.15.el6.x86_64", arch: "amd64", family: "unix"
Build and package succeeds. Then I tried to deploy using the command "mvn jboss-as:deploy" and it went south. The mvn command yields this error:
Feb 13, 2012 2:56:05 PM org.jboss.remoting3.remote.RemoteConnection handleException
ERROR: JBREM00200: Remote connection failed: java.io.IOException: Message data for non-existent channel
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 15.705s
[INFO] Finished at: Mon Feb 13 14:56:05 EST 2012
[INFO] Final Memory: 6M/359M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.jboss.as.plugins:jboss-as-maven-plugin:7.0.2.Final:deploy (default-cli) on project jboss-as-helloworld-mdb: Could not execute goal deploy on jboss-as-helloworld-mdb.war. Reason: Deployment failed and was rolled back. -> [Help 1]
The server console log shows this error:
14:56:05,698 INFO [org.jboss.as.server.controller] (pool-1-thread-3) Deployment of "jboss-as-helloworld-mdb.war" was rolled back with failure message {"Services with missing/unavailable dependencies" => ["jboss.naming.context.java.module.jboss-as-helloworld-mdb.jboss-as-helloworld-mdb.env.\"org.jboss.as.quickstarts.servlet.HelloWorldMDBServletClient\".queue missing [ jboss.naming.context.java.queue.test ]","jboss.naming.context.java.module.jboss-as-helloworld-mdb.jboss-as-helloworld-mdb.env.\"org.jboss.as.quickstarts.servlet.HelloWorldMDBServletClient\".connectionFactory missing [ jboss.naming.context.java.ConnectionFactory ]"]}
14:56:05,714 INFO [org.jboss.as.server.deployment] (MSC service thread 1-19) Stopped deployment jboss-as-helloworld-mdb.war in 16ms
This is completely straight out of the box, freshly unpacked, zero tweaking or changes. Am I doing something wrong?
I checked release 7.1.0.Beta1b in the hope it might work better there, but totally missing - there is no helloworld-mdb subdirectory.
Please help! Thanks in advance.