<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=divyabhardwaj" rel="nofollow">divyabhardwaj</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-4836?redirect=false" rel="nofollow">SPR-4836</a></strong> and commented</p>
<p dir="auto">I am having a Spring Application(Core Spring+JPA). I have converted this application into a jar. I m using this jar in another spring application( Client application). Client application's  conext.xml is importing the applicationContext.xml present in the jar .I m facing the following problem in doing so.</p>
<p dir="auto">Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'roleDAO': Injection of persistence methods failed; nested exception is java.lang.NoClassDefFoundError: javax.transaction.SystemException<br>
at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postProcessPropertyValues(PersistenceAnnotationBeanPostProcessor.java:323)<br>
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:966)<br>
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:462)<br>
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:404)<br>
at java.security.AccessController.doPrivileged(AccessController.java:197)<br>
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:375)<br>
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:263)<br>
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:170)<br>
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:260)<br>
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:184)<br>
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:163)<br>
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:430)<br>
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)<br>
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)<br>
at org.springframework.context.support.ClassPathXmlApplicationContext.&lt;init&gt;(ClassPathXmlApplicationContext.java:139)<br>
at org.springframework.context.support.ClassPathXmlApplicationContext.&lt;init&gt;(ClassPathXmlApplicationContext.java:83)<br>
at TestApp.main(TestApp.java:16)<br>
Caused by: java.lang.NoClassDefFoundError: javax.transaction.SystemException<br>
at java.lang.J9VMInternals.verifyImpl(Native Method)<br>
at java.lang.J9VMInternals.verify(J9VMInternals.java:68)<br>
at java.lang.J9VMInternals.verify(J9VMInternals.java:66)<br>
at java.lang.J9VMInternals.initialize(J9VMInternals.java:129)<br>
at org.hibernate.ejb.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:39)<br>
at org.hibernate.ejb.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:34)<br>
at org.springframework.orm.jpa.ExtendedEntityManagerCreator.createContainerManagedEntityManager(ExtendedEntityManagerCreator.java:197)<br>
at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor$PersistenceElement.resolveExtendedEntityManager(PersistenceAnnotationBeanPostProcessor.java:625)<br>
at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor$PersistenceElement.getResourceToInject(PersistenceAnnotationBeanPostProcessor.java:567)<br>
at org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:193)<br>
at org.springframework.beans.factory.annotation.InjectionMetadata.injectMethods(InjectionMetadata.java:116)<br>
at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postProcessPropertyValues(PersistenceAnnotationBeanPostProcessor.java:320)</p>
<p dir="auto">Please help me in solving the problem . Thnaks in advance</p>
<hr>
<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="398088490" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/9511" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/9511/hovercard" href="https://github.com/spring-projects/spring-framework/issues/9511">#9511</a> Spring client project applicationConetxt.xml is reading the applicationContext.xml present in the jar which r present in classpath (<em><strong>"duplicates"</strong></em>)</li>
</ul>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=cbeams" rel="nofollow">Chris Beams</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-8056?redirect=false" rel="nofollow">SPR-8056</a></strong> and commented</p>
<p dir="auto">As mentioned in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398110753" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12709" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12709/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12709">#12709</a>, the use of the <code class="notranslate">local</code> attribute in <code class="notranslate">beans:</code> namespace is no longer of much value now that bean <code class="notranslate">id</code> elements are typed as <code class="notranslate">xsd:string</code> instead of <code class="notranslate">xsd:ID</code>.</p>
<p dir="auto">Determine what to do with this value in the <code class="notranslate">spring-beans-3.1.xsd</code>: preserve, deprecate (read: eliminate from 3.1, but still support in the parser for those who use &lt;= 3.0 xsds), etc.</p>
<p dir="auto">Also update the relevant sections in the reference documentation as appropriate, including:</p>
<ul dir="auto">
<li>3.4.2.1 (the idref element)</li>
<li>3.4.2.2</li>
</ul>
<hr>
<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="398111408" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12833" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12833/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12833">#12833</a> Update reference documentation regarding idref and local (<em><strong>"duplicates"</strong></em>)</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398111402" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12830" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12830/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12830">#12830</a> Evaluate 'idref' element and 'local' attribute in Spring 3.1 (<em><strong>"duplicates"</strong></em>)</li>
</ul>