If you deploy your ejb.jar as is (not in ear file) JBoss shows the problem:

Deployment "vfszip:/D:/JBoss/community/jboss-5.1.0.GA/server/default/deploy/ejb.jar/" is in error due to the following reason(s): org.jboss.xb.binding.JBossXBRuntimeException: secure cannot appear in this position. Expected content of enterprise-beans is sequence: {choice}*