Announcement Announcement Module
Collapse

JavaConfig forum decommissioned in favor of Core Container

As described at

http://static.springsource.org/sprin...fig/README.TXT

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:

http://static.springsource.org/sprin...tml#beans-java

For any questions related to @Configuration classes and @Bean methods in Spring 3.0, please post in the dedicated 'Core Container' forum at

http://forum.springsource.org/forumdisplay.php?f=26
See more
See less
web-inf/lib not in classpath? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • 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!!!

    why?

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

    any clue?
    thanks,
    Michael.
Working...
X