Oct 21st, 2009, 10:42 AM
web-inf/lib not in classpath?
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:
and I get 3 resources: tomcat/lib, tomcat/etc and myWebApp/web-inf/lib
I cannot get myWebApp/web-inf/lib!!!
is there something with the classloader(default classloader from Spring, Thread.currentThread().getContextClassLoader())