Hi all,

I have a web app running under tomcat 6 and I need to scan all jars contained under web-inf/lib to get the ones having a certain annotation.
unfortunately, it seems that the classLoaer I get is does not give me access to the web-inf/lib...

I cannot see any of the jars I want to scan! very strange as no security has been set.

here is How I proceed:
PathMatchingResourcePatternResolver.getResources(" classpath*:com\one\two\three\**\*.class")

and I get 3 resources: tomcat/lib, tomcat/etc and myWebApp/web-inf/lib
I cannot get myWebApp/web-inf/lib!!!

why?

is there something with the classloader(default classloader from Spring, Thread.currentThread().getContextClassLoader())

any clue?
thanks,
Michael.