title: Spring component scan for nested jar
body: <p>Basically I have this Outer.jar, declared in it is an application context with a component scan:</p>
  
  <pre><code>&lt;context:component-scan
          base-package="x.y.z.class" /&gt;
  </code></pre>
  
  <p>However this <code>x.y.z.class</code> is in an inner.jar which is a dependency of outer.jar,</p>
  
  <p>I'm getting an error that class not found <code>.../Outer.jar/x/y/z/class</code> , how can specify to check in the inner.jar? </p>
  
  <p>UPDATE:
  Initialize Application context as:</p>
  
  <pre><code> org.springframework.context.ApplicationContext ctx = 
                   new ClassPathXmlApplicationContext("applicationContext.xml");
  
  exception: I/O failure during classpath scanning; nested exception is java.io.FileNotFoundException: ..\default\deploy\test.war\WEB-INF\lib\inner.jar\x\y\z
   and it says inner.jar/x/y/z/class not found
  </code></pre>
  
  <p>Outer.jar has inner.jar as the dependency</p>