make AnnotationDetector work on JBoss 5.1 whose VFS URL protocol is 'vfsfile'

I tested on the JBoss 5.1 GA and JBoss 5.1.2 EAP, after the modification the chat sample worked well.