Announcement Announcement Module

JavaConfig forum decommissioned in favor of Core Container

As described at

key features of the Spring JavaConfig project have been migrated into the core Spring Framework as of version 3.0.

Please see the Spring 3.0 documentation on @Configuration and @Bean support:

For any questions related to @Configuration classes and @Bean methods in Spring 3.0, please post in the dedicated 'Core Container' forum at
See more
See less
web-inf/lib not in classpath? Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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!!!


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

    any clue?