Snowdrop with Spring xml bean declaration not read when using wildwards residing in application lib directory

Solution Verified - Updated -

Issue

  • when trying to load spring beans from a jar file residing in the WEB-INF\lib directory of a war, declared in applicationContext.xml an "import" definition using the "**" syntax doesn't work.

  • The issue is that the bean "xyz" (present in jar in WEB-INF\lib directory of a war ) isn't loaded, whereas the bean "abc" is loaded(present in WEB-INF/classes). Both beans being declared inside a applicationContext.xml file, they should both be found by the import

    <import resource="classpath*:com/test/**/applicationContext.xml" />
    
    

    but it is not the case.

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.2.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content