[jboss-user] [JBoss Tools] - Simple CDI Hello World with Eclipse and JBoss Tools

Ed Goforth do-not-reply at jboss.com
Mon Jan 3 07:11:36 EST 2011

Ed Goforth [http://community.jboss.org/people/egoforth] commented on

"Simple CDI Hello World with Eclipse and JBoss Tools"

To view all comments on this blog post, visit: http://community.jboss.org/community/tools/blog/2010/12/10/simple-cdi-hello-world-in-eclipse#comment-5106

Thank you for this.
This is probably obvious to most, but it was a bit puzzling to me when I went through the text before watching the video. The beans.xml file needs to have some content, and not just be an empty file. If you add a single <beans\> element like in the video, everything is happy. If you have no elements (either completely empty or just the <?xml...> banner, the deployer will throw a org.jboss.weld.exceptions.IllegalStateException.  Using a dummy element (<bob\>) will show a validation error in the log, but the servlet will still deploy and run properly.

I am using Sun JDK 1.6.0_22, Eclipse Helios SR1, JBoss Tools 3.2.0 and JBoss AS CR1 with JBoss ESB 4.9.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110103/078379bf/attachment.html 

More information about the jboss-user mailing list