<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=lucas_" rel="nofollow">Lukasz Rozek</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-9208?redirect=false" rel="nofollow">SPR-9208</a></strong> and commented</p>
<p dir="auto">Desktop application (swing client) is executed via web start. While application context is instantiated application performs many (122 times) http get requests for resources which don't exist. This of course has huge impact on time that is needed to application startup based on you network connection.</p>
<p dir="auto">Here is a sample of access log (each entry is requested multiple times which in total for one time application execution gives 122 requests to the server):<br>
127.0.0.1 - - [07/Mar/2012:15:07:24 +0100] "GET /neo-web/webstart/org.springframework.aspects.jar HTTP/1.1" 404 952 "-" "Java/1.7.0_03"<br>
127.0.0.1 - - [07/Mar/2012:15:07:28 +0100] "GET /neo-web/webstart/org.springframework.beans.jar HTTP/1.1" 404 952 "-" "Java/1.7.0_03"<br>
127.0.0.1 - - [07/Mar/2012:15:07:31 +0100] "GET /neo-web/webstart/org.springframework.core.jar HTTP/1.1" 404 952 "-" "Java/1.7.0_03"<br>
127.0.0.1 - - [07/Mar/2012:15:07:36 +0100] "GET /neo-web/webstart/org.springframework.aspects.jar HTTP/1.1" 404 952 "-" "Java/1.7.0_03"<br>
127.0.0.1 - - [07/Mar/2012:15:07:42 +0100] "GET /neo-web/webstart/org.springframework.web.jar HTTP/1.1" 404 952 "-" "Java/1.7.0_03"<br>
127.0.0.1 - - [07/Mar/2012:15:07:51 +0100] "GET /neo-web/webstart/org.springframework.context.jar HTTP/1.1" 404 952 "-" "Java/1.7.0_03"</p>
<p dir="auto">This is reproducible every time application is executed via webstart (javaws <a href="http://localhost:8080/neo-web/webstart/launch.jnlp" rel="nofollow">http://localhost:8080/neo-web/webstart/launch.jnlp</a>). It can be reproduced only in java web start environment because there is JNLPClassLoader involved which indirectly causes jars lookup on the backend server.</p>
<p dir="auto">I enclosed stacktraces on which you can see class lookups and then calls to the servers. In stacktrace2 - stacktrace3 I noted parameter which was used in method invocation JNLPClassLoader<br>
JNLPClassLoader(ClassLoader).loadClass(String) line: 356	&lt;----------- parameter is org.springframework.beans.factory.aspectj.AbstractInterfaceDrivenDependencyInjectionAspectBeanInfo  ---------&gt;</p>
<p dir="auto">The stacktrace1 is different than stacktraces 2-5 as the source of class loading is different. The latter (2-5) are pretty the same for most calls to the server (they differ only with different classes to be loaded)</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.1.1</p>
<p dir="auto"><strong>Attachments:</strong></p>
<ul dir="auto">
<li><a href="https://jira.spring.io/secure/attachment/19481/stacktrace1" rel="nofollow">stacktrace1</a> (<em>5.07 kB</em>)</li>
<li><a href="https://jira.spring.io/secure/attachment/19482/stacktrace2" rel="nofollow">stacktrace2</a> (<em>5.15 kB</em>)</li>
<li><a href="https://jira.spring.io/secure/attachment/19483/stacktrace3" rel="nofollow">stacktrace3</a> (<em>5.31 kB</em>)</li>
<li><a href="https://jira.spring.io/secure/attachment/19484/stacktrace4" rel="nofollow">stacktrace4</a> (<em>5.65 kB</em>)</li>
<li><a href="https://jira.spring.io/secure/attachment/19485/stacktrace5" rel="nofollow">stacktrace5</a> (<em>5.30 kB</em>)</li>
</ul>
<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="398099409" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/11049" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/11049/hovercard" href="https://github.com/spring-projects/spring-framework/issues/11049">#11049</a> INDEX.LIST uses incorrect jar names (<em><strong>"duplicates"</strong></em>)</li>
</ul>
<p dir="auto"><strong>Referenced from:</strong> commits <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/2fe74a4ef0cb8f667c4fa342e649bc75da4d8a6a/hovercard" href="https://github.com/spring-projects/spring-framework/commit/2fe74a4ef0cb8f667c4fa342e649bc75da4d8a6a"><tt>2fe74a4</tt></a></p>
<p dir="auto">1 votes, 1 watchers</p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=astefan" rel="nofollow">Andrei Stefan</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-8896?redirect=false" rel="nofollow">SPR-8896</a></strong> and commented</p>
<p dir="auto">In this section of the Spring Framework reference documentation it is mentioned that both aspectjrt.jar and aspectjweaver.jar files should be present in the classpath in case <code class="notranslate">@AspectJ</code> support needs to be enabled in the project. Also, it is mentioned where is the location of those jars within the Spring distribution.</p>
<p dir="auto">I believe there are two small issues with that respective section of the documentation:</p>
<ul dir="auto">
<li>the two jars are not available anymore with a Spring distribution</li>
<li>the classes and package structure in aspectjrt.jar form a subset of the classes that can be found in aspectjweaver.jar. Using both at the same time doesn't seem to be actually required.</li>
</ul>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.5.6, 3.0.6, 3.1 RC2</p>
<p dir="auto"><strong>Sub-tasks:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398154988" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14643" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14643/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14643">#14643</a> Backport "Documentation update regarding aspectjrt and aspectjweaver jars usage"</li>
</ul>
<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="398109011" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12444" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12444/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12444">#12444</a> Chapter 7.2.1 of the ref manual still refers to the Spring-with-dependencies distribution (<em><strong>"duplicates"</strong></em>)</li>
</ul>