<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=klaus.kreuzwieser" rel="nofollow">Klaus Kreuzwieser</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-6176?redirect=false" rel="nofollow">SPR-6176</a></strong> and commented</p>
<p dir="auto">We have annotated classes with <code class="notranslate">@Configurable</code> and want that all <code class="notranslate">@Autowired</code> fields are injected. This works fine if all classes annotated with <code class="notranslate">@Configurable</code> are located in the WEB-INF/lib folder (for a web application), but does not work when the classes are in a JAR modules in APP-INF/lib folder.</p>
<p dir="auto">Consider the following scenario: An EAR consists of several application modules (i.e. WAR files) which have roughly the same dependencies. To prevent the packaging of duplicate JAR files in all WARs, we create "skinny WAR files" (see <a href="http://maven.apache.org/plugins/maven-war-plugin/examples/skinny-wars.html" rel="nofollow">http://maven.apache.org/plugins/maven-war-plugin/examples/skinny-wars.html</a>). The WAR dependecies are packaged in a library folder (i.e. APP-INF/lib) and are referenced via the Class-Path setting in the WAR's META-INF/MANIFEST.MF.<br>
All classes annotated with <code class="notranslate">@Configurable</code> which are located in the external referenced JAR files are not woven at load time. All classes annotated with <code class="notranslate">@Configurable</code> which are packaged into the web application itself (either under WEB-INF/classes or WEB-INF/lib) are correctly woven at load time.</p>
<p dir="auto">We are using WebLogic 10.3 as J2EE container, but I have found a similar problem (<a href="http://forum.springsource.org/showthread.php?t=50778" rel="nofollow">http://forum.springsource.org/showthread.php?t=50778</a>) concerning JBoss - so this problem seems to be container unrelated.</p>
<p dir="auto">I'l attach 2 zip files for reproduction: ltw-fat works fine, ltw-skinny throws a NullPointerException because the Configurable Conf1 is not woven.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.5.6</p>
<p dir="auto"><strong>Reference URL:</strong> <a href="http://forum.springsource.org/showthread.php?t=50778" rel="nofollow">http://forum.springsource.org/showthread.php?t=50778</a></p>
<p dir="auto"><strong>Attachments:</strong></p>
<ul dir="auto">
<li><a href="https://jira.spring.io/secure/attachment/15759/ltw-fat.zip" rel="nofollow">ltw-fat.zip</a> (<em>14.76 kB</em>)</li>
<li><a href="https://jira.spring.io/secure/attachment/15760/ltw-skinny.zip" rel="nofollow">ltw-skinny.zip</a> (<em>15.20 kB</em>)</li>
</ul>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=jensb" rel="nofollow">Jens Borrmann</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-4936?redirect=false" rel="nofollow">SPR-4936</a></strong> and commented</p>
<p dir="auto">There is a cyclical dependency between orm and context. This is caused by the following entry in the manifest of context:</p>
<p dir="auto">org.springframework.orm.jpa.support;version="[2.5.4.A, 2.5.4.A]";resolution:=optional</p>
<p dir="auto">Since this direction is optional resolving the context bundle without orm is not impossible, but "funny" effects during runtime can occur.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.5.4</p>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398088271" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/9479" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/9479/hovercard" href="https://github.com/spring-projects/spring-framework/issues/9479">#9479</a> cycles between various modules manifests (<em><strong>"duplicates"</strong></em>)</li>
</ul>