javaee-samples / javaee7-hol

Java EE 7 Hands-on Lab
http://htmlpreview.github.io/?https://github.com/javaee-samples/javaee7-hol/blob/master/docs/javaee7-hol.html
Other
136 stars 92 forks source link

fail to run the lab with mvn wildfly:run #19

Closed wangsenyuan closed 9 years ago

wangsenyuan commented 9 years ago

I try to run the lab with mvn wildfly:run. it successes until step 8 (movie points). it seems wildfly doesn't run with JMS enabled. however, I googled and still don't know how to enable it with MVN. following is the exception:

org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type JMSContext with qualifiers @Default at injection point [BackedAnnotatedField] @Inject org.javaee7.movieplex7.points.ReceivePointsBean.context

arun-gupta commented 9 years ago

That is because by default WildFly starts in Web Profile which does not include JMS. Start it in full platform as:

./bin/standalone.sh -c standalone-full.xml
wangsenyuan commented 9 years ago

Thanks. I give up to run wildfly:run, but start it manually with standalone-full.xml; However, it still doesn't work to create the queue automatically, I have to create it in the wildfly administrative console. after that, I pass this step.

I checked the javadoc for @JMSDestinationDefinition, there should be no manually configuration for the queue. Do I understand wrong.

So I guess it should be an implementation issue(?, it may not be a issue, but I can't find the right word).

the wildfly I am using is wildfly-9.0.0.Final

arun-gupta commented 9 years ago

Here is what I did and worked:

. Start WildFly as ./wildfly-9.0.0.Final/bin/standalone.sh -c standalone-full.xml . Deploy the application as mvn wildfly:deploy -DskipTests . Access the application at http://localhost:8080/movieplex7

What are your steps?