The following piece of code gave me an error :
private CompassConfiguration conf;
conf.addScan("entities"); // entities is the name of my package.
org.compass.core.config.ConfigurationException: Failed to create scan factory for basePackage entities and url vfszip:/D:/DEV/jboss-5.0.1.GA/server/default/deploy/CompassHibernateEAR.ear/CompassHibernate.jar/entities/; nested exception is java.io.IOException: Protocol vfszip is not supported by scanner
I've tried it on an old version of JBOSS, url param of ScannerFactory is: jar:file:/D:/DEV/jboss-4.2.2.GA/server/default/tmp/deploy/tmp19840CompassHibernateEAR.ear-contents/CompassHibernate.jar!/entities and it's work fine.