I created a Java Web Application Project in NetBeans, and created a startup bean in it:
package malibu.util; import javax.annotation.PostConstruct; import javax
In my case JBoss 7EAP required the ejb-jar.xml config file on the war to load the @Startup EJB .
...