-
Oct 21st, 2009, 10:42 AM
#1
web-inf/lib not in classpath?
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules