Issue 1:
divyabhardwaj opened SPR-4836 and commented

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.

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

at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postProcessPropertyValues(PersistenceAnnotationBeanPostProcessor.java:323)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:966)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:462)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:404)

at java.security.AccessController.doPrivileged(AccessController.java:197)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:375)

at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:263)

at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:170)

at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:260)

at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:184)

at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:163)

at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:430)

at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)

at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)

at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)

at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)

at TestApp.main(TestApp.java:16)

Caused by: java.lang.NoClassDefFoundError: javax.transaction.SystemException

at java.lang.J9VMInternals.verifyImpl(Native Method)

at java.lang.J9VMInternals.verify(J9VMInternals.java:68)

at java.lang.J9VMInternals.verify(J9VMInternals.java:66)

at java.lang.J9VMInternals.initialize(J9VMInternals.java:129)

at org.hibernate.ejb.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:39)

at org.hibernate.ejb.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:34)

at org.springframework.orm.jpa.ExtendedEntityManagerCreator.createContainerManagedEntityManager(ExtendedEntityManagerCreator.java:197)

at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor$PersistenceElement.resolveExtendedEntityManager(PersistenceAnnotationBeanPostProcessor.java:625)

at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor$PersistenceElement.getResourceToInject(PersistenceAnnotationBeanPostProcessor.java:567)

at org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:193)

at org.springframework.beans.factory.annotation.InjectionMetadata.injectMethods(InjectionMetadata.java:116)

at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postProcessPropertyValues(PersistenceAnnotationBeanPostProcessor.java:320)

Please help me in solving the problem . Thnaks in advance

Issue Links:

#9511 Spring client project applicationConetxt.xml is reading the applicationContext.xml present in the jar which r present in classpath ("duplicates")

Issue 2:
Chris Beams opened SPR-8056 and commented

As mentioned in #12709, the use of the local attribute in beans: namespace is no longer of much value now that bean id elements are typed as xsd:string instead of xsd:ID.

Determine what to do with this value in the spring-beans-3.1.xsd: preserve, deprecate (read: eliminate from 3.1, but still support in the parser for those who use <= 3.0 xsds), etc.

Also update the relevant sections in the reference documentation as appropriate, including:

3.4.2.1 (the idref element)

3.4.2.2

Issue Links:

#12833 Update reference documentation regarding idref and local ("duplicates")

#12830 Evaluate 'idref' element and 'local' attribute in Spring 3.1 ("duplicates")