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
The Startup annotation is for usage with Singleton beans, not with stateless beans. See the javadoc.
Also, @LocalBean is not needed in this case. This declares that you want an additional no-interface view, but this is only needed if the bean implements a remote or local business interface. If you omit it you get a no-interface view by default.