<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=pedrosans" rel="nofollow">Pedro Santos</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-5120?redirect=false" rel="nofollow">SPR-5120</a></strong> and commented</p>
<p dir="auto">The spring scanner functionality do not work when I create my ApplicationContext from a EJB managed by JBoss. I do test the same spring application context on diferents enviroments. Just on a managed EJB on a JBoos it is not workin.</p>
<p dir="auto">EJB code<br>
appContext = new GenericApplicationContext();<br>
ClassPathBeanDefinitionScanner scanner = new ClassPathBeanDefinitionScanner(appContext);<br>
scanner.scan("com");<br>
appContext.refresh();</p>
<p dir="auto">Annotated class<br>
<code class="notranslate">@Service</code><br>
public class TransactionService {</p>
<p dir="auto">Exception<br>
ERROR: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'transactionService' is defined</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.5.5</p>
<p dir="auto"><strong>Attachments:</strong></p>
<ul dir="auto">
<li><a href="https://jira.spring.io/secure/attachment/15061/jboss-as-sprint-int-5.0.0.GA.jar" rel="nofollow">jboss-as-sprint-int-5.0.0.GA.jar</a> (<em>35.76 kB</em>)</li>
<li><a href="https://jira.spring.io/secure/attachment/15612/jboss-spring-int-vfs.jar" rel="nofollow">jboss-spring-int-vfs.jar</a> (<em>14.52 kB</em>)</li>
<li><a href="https://jira.spring.io/secure/attachment/15382/vfs.patch" rel="nofollow">vfs.patch</a> (<em>12.14 kB</em>)</li>
<li><a href="https://jira.spring.io/secure/attachment/15386/vfs-fixes-2.patch" rel="nofollow">vfs-fixes-2.patch</a> (<em>15.39 kB</em>)</li>
<li><a href="https://jira.spring.io/secure/attachment/15387/vfs-fixes-3.patch" rel="nofollow">vfs-fixes-3.patch</a> (<em>15.66 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="398097684" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/10814" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/10814/hovercard" href="https://github.com/spring-projects/spring-framework/issues/10814">#10814</a> JBoss AS 5.0 VFS handling (SPR-5120) backport 2.5.X (<em><strong>"is depended on by"</strong></em>)</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398099428" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/11051" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/11051/hovercard" href="https://github.com/spring-projects/spring-framework/issues/11051">#11051</a> Context Scanning doesnt work in Jboss 5 (<em><strong>"is duplicated by"</strong></em>)</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398092231" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/10013" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/10013/hovercard" href="https://github.com/spring-projects/spring-framework/issues/10013">#10013</a> PathMatchingResourcePatternResolver.determineRootDir fails for jar on JBoss</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398095266" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/10454" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/10454/hovercard" href="https://github.com/spring-projects/spring-framework/issues/10454">#10454</a> PersistenceUnitReader#determinePersistenceUnitRootUrl returns wrong root url on JBoss 5, causing no detection of entity beans</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/184f63f68951ed1c199dddc27a6a266f09e9e0ce/hovercard" href="https://github.com/spring-projects/spring-framework/commit/184f63f68951ed1c199dddc27a6a266f09e9e0ce"><tt>184f63f</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/10c30f0315b41cd3168a7d6c8b984a12f49c62b1/hovercard" href="https://github.com/spring-projects/spring-framework/commit/10c30f0315b41cd3168a7d6c8b984a12f49c62b1"><tt>10c30f0</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/64c46d48bb916bc52ff2f38b4f5d4a9ffb5b794c/hovercard" href="https://github.com/spring-projects/spring-framework/commit/64c46d48bb916bc52ff2f38b4f5d4a9ffb5b794c"><tt>64c46d4</tt></a></p>
<p dir="auto">24 votes, 34 watchers</p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=mavarazy" rel="nofollow">Anton Oparin</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-9409?redirect=false" rel="nofollow">SPR-9409</a></strong> and commented</p>
<p dir="auto">RESTTemplate receives JSON response in ISO-8859-1 encoding, and forwards it to MappingJacksonHttpMessageConverter, which can process only UTF-8 encoding.</p>
<p dir="auto">Looking at other MessageConverters they use encoding from HttpRequest, which should also be done in MappingJacksonHttpMessageConverter.</p>
<p dir="auto">From my point of view this should be a part of generic logic, and not to be duplicated in every HttpMessageConverter.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.1.1</p>