- 
        1. Re: When the class under test has an @EJB annotated fieldaslak Jul 16, 2010 5:30 PM (in response to dsidharta)There is a bug in JBoss AS 6 M3 which causes the BeanManager to be bound under the wrong JNDI name when deploying CDI + EJB in a War. This is fixed in JBoss AS trunk (upcoming M4). Your best bet for now is either to not use EJBs with CDI, or build JBoss AS from trunk. 
- 
        2. Re: When the class under test has an @EJB annotated fielddan.j.allen Jul 16, 2010 5:36 PM (in response to aslak)Actually, there is a much simpler way. Just download the nightly snapshots. A snapshot only gets generated if the tests pass, so you won't get a dud. I also made a tinyurl for this: 
- 
        3. Re: When the class under test has an @EJB annotated fieldaslak Jul 16, 2010 5:51 PM (in response to dan.j.allen)That's the app server build, but you also need the Maven client artifacts for the same build. They are not published to the JBoss nexus repo I think? Dan, do you have a Repo for them? 
- 
        4. Re: When the class under test has an @EJB annotated fielddan.j.allen Jul 16, 2010 6:02 PM (in response to aslak)Hahaha. I knew you were going to say that <dependency> <groupId>org.jboss.jbossas</groupId> <artifactId>jboss-as-depchain</artifactId> <version>6.0.0-SNAPSHOT</version> <type>pom</type> </dependency> <dependency> <groupId>org.jboss.jbossas</groupId> <artifactId>jboss-as-client</artifactId> <version>6.0.0-SNAPSHOT</version> <type>pom</type> </dependency> <dependency> <groupId>org.jboss.jbossas</groupId> <artifactId>jboss-as-distribution</artifactId> <version>6.0.0-SNAPSHOT</version> <type>zip</type> </dependency> Those are available in http://repository.jboss.org/nexus/content/groups/public/ I'm not sure how you get Maven to link against a specific snapshot release. I tried the full version, but different dependencies have different snapshot version numbers for the same date. 
- 
        5. Re: When the class under test has an @EJB annotated fieldaslak Jul 16, 2010 6:34 PM (in response to dan.j.allen)Sure you don't have a local build? They are all empty..? 
- 
        6. Re: When the class under test has an @EJB annotated fielddan.j.allen Jul 16, 2010 6:54 PM (in response to aslak)What the heck? Either I was dreaming when I ran that test, or they have since disappeared. Odd. At first I thought maybe they are only available in the developer nexus group, but they are blank there too. Hmmmm. I can tell you one thing for sure, I haven't built JBoss AS Okay, so maybe you have to build JBoss AS 
- 
        7. Re: When the class under test has an @EJB annotated fieldalrubinger Jul 16, 2010 9:43 PM (in response to dan.j.allen)The AS Hudson run does not use profile "dist-zip", so these are not even generated to be uploaded to Nexus. For local installs of AS, build with "./build.sh -Pdist-zip" to get it into your local repo. S, ALR 
- 
        8. Re: When the class under test has an @EJB annotated fielddsidharta Jul 16, 2010 7:46 PM (in response to alrubinger)Thanks, all! I'm building JBoss AS right now. If nothing else, I'll probably wait until m4, which, a quick search tells me, will be out next week sometime. 
 
     
     
    