3 Replies Latest reply on Feb 11, 2011 2:43 AM by Nicklas Karlsson

    scannotation fails on JBoss AS 6: VFS

    Frank Cornelis Apprentice



      I'm writing a Java EE application that is using scannotation to scan the classes within my EJB JAR for the presence of a certain custom annotation. All works fine within my unit test. Unfortunately the AnnotationDB explodes when deploying my application on JBoss AS 6.0.0.Final.


      Caused by: java.io.IOException: Unable to scan directory of protocol: vfs

                at org.scannotation.archiveiterator.IteratorFactory.create(IteratorFactory.java:39) [:6.0.0.Final]

                at org.scannotation.AnnotationDB.scanArchives(AnnotationDB.java:291) [:6.0.0.Final]


      Any guidelines on how to do annotation based scanning on JBoss AS 6?