<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.11" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Customizing Annotation Configuration and Component Detection in Spring 2.1</title>
	<link>http://blog.springsource.com/main/2007/05/29/customizing-annotation-configuration-and-component-detection-in-spring-21/</link>
	<description>The voice of SpringSource</description>
	<pubDate>Thu, 21 Aug 2008 01:37:02 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.11</generator>

	<item>
		<title>by: tom</title>
		<link>http://blog.springsource.com/main/2007/05/29/customizing-annotation-configuration-and-component-detection-in-spring-21/#comment-110488</link>
		<pubDate>Fri, 27 Jun 2008 02:30:54 +0000</pubDate>
		<guid>http://blog.springsource.com/main/2007/05/29/customizing-annotation-configuration-and-component-detection-in-spring-21/#comment-110488</guid>
					<description>[…] former peeps over at Yahoo just released 10 more components, 3 Flash and 5 Flex components. The also fixed some of the bugs […]</description>
		<content:encoded><![CDATA[<p>[…] former peeps over at Yahoo just released 10 more components, 3 Flash and 5 Flex components. The also fixed some of the bugs […]
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: SpringSource Team Blog &#187; Spring Dependency Injection &#38; Java 5 (including slides and code)</title>
		<link>http://blog.springsource.com/main/2007/05/29/customizing-annotation-configuration-and-component-detection-in-spring-21/#comment-100936</link>
		<pubDate>Tue, 18 Mar 2008 16:15:58 +0000</pubDate>
		<guid>http://blog.springsource.com/main/2007/05/29/customizing-annotation-configuration-and-component-detection-in-spring-21/#comment-100936</guid>
					<description>[...] Customizing Annotation Configuration and Component Detection in Spring 2.5 by Mark Fisher [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] Customizing Annotation Configuration and Component Detection in Spring 2.5 by Mark Fisher [&#8230;]
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Interface21 Team Blog &#187; ASM version incompatibilities, using Spring @Autowired with Hibernate</title>
		<link>http://blog.springsource.com/main/2007/05/29/customizing-annotation-configuration-and-component-detection-in-spring-21/#comment-55930</link>
		<pubDate>Thu, 18 Oct 2007 17:35:13 +0000</pubDate>
		<guid>http://blog.springsource.com/main/2007/05/29/customizing-annotation-configuration-and-component-detection-in-spring-21/#comment-55930</guid>
					<description>[...] Posted on June 11th, 2007 by Alef Arendsen in Spring, 2.0, Data Access, IOC Container, 2.5/2.1.  I was working on Spring 2.1 stuff this week with Joris. We were preparing a sample using all three ways of doing dependency injection. The sample does not only highlight dependency injection, but also features a back-end based on Hibernate. [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] Posted on June 11th, 2007 by Alef Arendsen in Spring, 2.0, Data Access, IOC Container, 2.5/2.1.  I was working on Spring 2.1 stuff this week with Joris. We were preparing a sample using all three ways of doing dependency injection. The sample does not only highlight dependency injection, but also features a back-end based on Hibernate. [&#8230;]
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Caleb</title>
		<link>http://blog.springsource.com/main/2007/05/29/customizing-annotation-configuration-and-component-detection-in-spring-21/#comment-34663</link>
		<pubDate>Mon, 16 Jul 2007 14:52:43 +0000</pubDate>
		<guid>http://blog.springsource.com/main/2007/05/29/customizing-annotation-configuration-and-component-detection-in-spring-21/#comment-34663</guid>
					<description>Thanks for the walkthrough -- this post and its predecessor have been very helpful in understanding the new annotation-based configuration options, the growth of which I have been excited to see!

I have a quick comment and a question.  First, the question:  Will there be a way of configuring factory beans using annotations, or is there a way of doing so already that I am simply too dense to realize?  As I understand it, currently the only way to specify a factory method is through the XML configuration.

Now, the comment:  I was surprised to read about your thought process in determining whether or not to include a way of configuring a bean's scope via an annotation.  Certainly, the argument that a bean's scope should be a deployment-level configuration item is valid.  However, most of us using Spring in our day-to-day development are constantly striking a balance between doing the "right" thing and doing the rapid thing.  While a scope annotation breaches the separation of deployment description from bean description, in many cases a bean will only ever live in one scope, and there is a considerable benefit in convenience gained from having all of a bean's configuration specified right there in the source.  Additionally, the Spring developers, it seems to me, have always championed choice and flexibility over proscription and rigidity, so I was very glad to see the introduction of the @Scope annotation.

Thanks for providing such a valuable framework.  Spring rocks, and your continued dedication to flexibility will make Spring 2.1 rock even harder!</description>
		<content:encoded><![CDATA[<p>Thanks for the walkthrough &#8212; this post and its predecessor have been very helpful in understanding the new annotation-based configuration options, the growth of which I have been excited to see!</p>
<p>I have a quick comment and a question.  First, the question:  Will there be a way of configuring factory beans using annotations, or is there a way of doing so already that I am simply too dense to realize?  As I understand it, currently the only way to specify a factory method is through the XML configuration.</p>
<p>Now, the comment:  I was surprised to read about your thought process in determining whether or not to include a way of configuring a bean&#039;s scope via an annotation.  Certainly, the argument that a bean&#039;s scope should be a deployment-level configuration item is valid.  However, most of us using Spring in our day-to-day development are constantly striking a balance between doing the &#034;right&#034; thing and doing the rapid thing.  While a scope annotation breaches the separation of deployment description from bean description, in many cases a bean will only ever live in one scope, and there is a considerable benefit in convenience gained from having all of a bean&#039;s configuration specified right there in the source.  Additionally, the Spring developers, it seems to me, have always championed choice and flexibility over proscription and rigidity, so I was very glad to see the introduction of the @Scope annotation.</p>
<p>Thanks for providing such a valuable framework.  Spring rocks, and your continued dedication to flexibility will make Spring 2.1 rock even harder!
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Bobby Quinne</title>
		<link>http://blog.springsource.com/main/2007/05/29/customizing-annotation-configuration-and-component-detection-in-spring-21/#comment-26940</link>
		<pubDate>Wed, 13 Jun 2007 06:11:02 +0000</pubDate>
		<guid>http://blog.springsource.com/main/2007/05/29/customizing-annotation-configuration-and-component-detection-in-spring-21/#comment-26940</guid>
					<description>I am currently trying to code a dao :

@Repository(value="dao.my")
public class MyDao extends HibernateDaoSupport implements IMyDao
{
}

however at runtime I receive the following exception. Any ideas? Have I left something out?  :

Unable to return specified BeanFactory instance: factory key [com.my], from group with resource name [classpath*:beanRefFactory.xml]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.my' defined in URL [file:/home/lore/development/projects/mainline/source/server/gen/spring/beanRefFactory.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.context.support.ClassPathXmlApplicationContext]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dao.configuration': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: 'sessionFactory' or 'hibernateTemplate' is required
org.springframework.beans.factory.access.BootstrapException: Unable to return specified BeanFactory instance: factory key [com.tradecraft.demerol], from group with resource name [classpath*:beanRefFactory.xml]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.my' defined in URL [file:/home/lore/development/projects/mainline/source/server/gen/spring/beanRefFactory.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.context.support.ClassPathXmlApplicationContext]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dao.my': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: 'sessionFactory' or 'hibernateTemplate' is required
	at org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.java:405)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.my' defined in URL [file:/home/lore/development/projects/mainline/source/server/gen/spring/beanRefFactory.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.context.support.ClassPathXmlApplicationContext]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dao.my': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: 'sessionFactory' or 'hibernateTemplate' is required
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:430)
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:255)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:252)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
	at org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.java:395)
Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.context.support.ClassPathXmlApplicationContext]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dao.configuration': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: 'sessionFactory' or 'hibernateTemplate' is required
	at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:98)
	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)
	at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:178)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:781)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:699)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:386)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dao.configuration': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: 'sessionFactory' or 'hibernateTemplate' is required
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1178)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:407)
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:255)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:252)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:287)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:689)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:358)
	at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:91)
	at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:75)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:83)
Caused by: java.lang.IllegalArgumentException: 'sessionFactory' or 'hibernateTemplate' is required
	at org.springframework.orm.hibernate3.support.HibernateDaoSupport.checkDaoConfig(HibernateDaoSupport.java:115)
	at org.springframework.dao.support.DaoSupport.afterPropertiesSet(DaoSupport.java:44)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1205)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1175)</description>
		<content:encoded><![CDATA[<p>I am currently trying to code a dao :</p>
<p>@Repository(value=&#034;dao.my&#034;)<br />
public class MyDao extends HibernateDaoSupport implements IMyDao<br />
{<br />
}</p>
<p>however at runtime I receive the following exception. Any ideas? Have I left something out?  :</p>
<p>Unable to return specified BeanFactory instance: factory key [com.my], from group with resource name [classpath*:beanRefFactory.xml]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name &#039;com.my&#039; defined in URL [file:/home/lore/development/projects/mainline/source/server/gen/spring/beanRefFactory.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.context.support.ClassPathXmlApplicationContext]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name &#039;dao.configuration&#039;: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: &#039;sessionFactory&#039; or &#039;hibernateTemplate&#039; is required<br />
org.springframework.beans.factory.access.BootstrapException: Unable to return specified BeanFactory instance: factory key [com.tradecraft.demerol], from group with resource name [classpath*:beanRefFactory.xml]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name &#039;com.my&#039; defined in URL [file:/home/lore/development/projects/mainline/source/server/gen/spring/beanRefFactory.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.context.support.ClassPathXmlApplicationContext]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name &#039;dao.my&#039;: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: &#039;sessionFactory&#039; or &#039;hibernateTemplate&#039; is required<br />
	at org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.java:405)<br />
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name &#039;com.my&#039; defined in URL [file:/home/lore/development/projects/mainline/source/server/gen/spring/beanRefFactory.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.context.support.ClassPathXmlApplicationContext]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name &#039;dao.my&#039;: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: &#039;sessionFactory&#039; or &#039;hibernateTemplate&#039; is required<br />
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:430)<br />
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:255)<br />
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)<br />
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:252)<br />
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)<br />
	at org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.java:395)<br />
Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.context.support.ClassPathXmlApplicationContext]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name &#039;dao.configuration&#039;: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: &#039;sessionFactory&#039; or &#039;hibernateTemplate&#039; is required<br />
	at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:98)<br />
	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)<br />
	at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:178)<br />
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:781)<br />
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:699)<br />
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:386)<br />
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name &#039;dao.configuration&#039;: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: &#039;sessionFactory&#039; or &#039;hibernateTemplate&#039; is required<br />
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1178)<br />
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:407)<br />
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:255)<br />
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)<br />
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:252)<br />
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)<br />
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:287)<br />
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:689)<br />
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:358)<br />
	at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:91)<br />
	at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:75)<br />
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)<br />
	at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:83)<br />
Caused by: java.lang.IllegalArgumentException: &#039;sessionFactory&#039; or &#039;hibernateTemplate&#039; is required<br />
	at org.springframework.orm.hibernate3.support.HibernateDaoSupport.checkDaoConfig(HibernateDaoSupport.java:115)<br />
	at org.springframework.dao.support.DaoSupport.afterPropertiesSet(DaoSupport.java:44)<br />
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1205)<br />
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1175)
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Bhavin Kamani</title>
		<link>http://blog.springsource.com/main/2007/05/29/customizing-annotation-configuration-and-component-detection-in-spring-21/#comment-26491</link>
		<pubDate>Sun, 10 Jun 2007 10:09:34 +0000</pubDate>
		<guid>http://blog.springsource.com/main/2007/05/29/customizing-annotation-configuration-and-component-detection-in-spring-21/#comment-26491</guid>
					<description>Guess my cofig xml file does not appear in my blog. Reposting it with CDATA tag hopefully it shd work.




	

	
	


		
	
--&#62;

	
		
		
			
				
				
				
			
		
		
			
		
	

	
		
		
		
		
	

	
		
		
	

	


]]&#62;</description>
		<content:encoded><![CDATA[<p>Guess my cofig xml file does not appear in my blog. Reposting it with CDATA tag hopefully it shd work.</p>
<p>&#8211;&gt;</p>
<p>]]&gt;
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Bhavin Kamani</title>
		<link>http://blog.springsource.com/main/2007/05/29/customizing-annotation-configuration-and-component-detection-in-spring-21/#comment-26489</link>
		<pubDate>Sun, 10 Jun 2007 10:02:44 +0000</pubDate>
		<guid>http://blog.springsource.com/main/2007/05/29/customizing-annotation-configuration-and-component-detection-in-spring-21/#comment-26489</guid>
					<description>I have 2 questions. Whats the difference between Repository and Component.

Also, I am having trouble using Repository annotation for my App. When I try using its throwing an exception. Here's the code, config file and the stack Trace. All I could figure out is that it happens during component scan.

public interface FormDataService {

	public FormData save(FormData formData);

}

@Repository
public class FormDataDAO extends JpaDaoSupport implements FormDataService {

	private static final Log logger = LogFactory.getLog(FormDataDAO.class);

	
	public FormData save(FormData formData) {
		if (formData.getId()==0) {
			getJpaTemplate().persist(formData);
			logger.info("Generated ID: "   formData.getId());
		} else {
			getJpaTemplate().merge(formData);	
		}
		return formData;
	}

}




	

	


		
	
--&#62;

	
		
		
			
				
				
				
			
		
		
			
		
	

	
		
		
		
		
	

	
		
		
	

	



org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [spring-context.xml]; nested exception is java.lang.AbstractMethodError: org.springframework.core.type.asm.AnnotationMetadataReadingVisitor.visit(IILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)V
	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:375)
	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)
	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:280)
	at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:142)
	at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:158)
	at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:184)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at org.springframework.test.jpa.AbstractJpaTests.runBare(AbstractJpaTests.java:209)
	at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:40)
Caused by: java.lang.AbstractMethodError: org.springframework.core.type.asm.AnnotationMetadataReadingVisitor.visit(IILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)V
	at org.objectweb.asm.ClassReader.accept(Unknown Source)
	at org.objectweb.asm.ClassReader.accept(Unknown Source)
	at org.springframework.core.type.filter.AnnotationTypeFilter.matchSelf(AnnotationTypeFilter.java:53)
	at org.springframework.core.type.filter.AbstractTypeHierarchyTraversingFilter.match(AbstractTypeHierarchyTraversingFilter.java:54)
	at org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.isCandidateComponent(ClassPathScanningCandidateComponentProvider.java:183)
	at org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.getClassReaderIfCandidate(ClassPathScanningCandidateComponentProvider.java:166)
	at org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.findCandidateComponents(ClassPathScanningCandidateComponentProvider.java:148)
	at org.springframework.context.annotation.ClassPathBeanDefinitionScanner.doScan(ClassPathBeanDefinitionScanner.java:160)
	at org.springframework.context.annotation.ComponentScanBeanDefinitionParser.parse(ComponentScanBeanDefinitionParser.java:145)
	at org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(NamespaceHandlerSupport.java:69)
	at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1114)
	at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1104)
	at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:133)
	at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:90)
	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:458)
	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:353)
	... 24 more</description>
		<content:encoded><![CDATA[<p>I have 2 questions. Whats the difference between Repository and Component.</p>
<p>Also, I am having trouble using Repository annotation for my App. When I try using its throwing an exception. Here&#039;s the code, config file and the stack Trace. All I could figure out is that it happens during component scan.</p>
<p>public interface FormDataService {</p>
<p>	public FormData save(FormData formData);</p>
<p>}</p>
<p>@Repository<br />
public class FormDataDAO extends JpaDaoSupport implements FormDataService {</p>
<p>	private static final Log logger = LogFactory.getLog(FormDataDAO.class);</p>
<p>	public FormData save(FormData formData) {<br />
		if (formData.getId()==0) {<br />
			getJpaTemplate().persist(formData);<br />
			logger.info(&#034;Generated ID: &#034;   formData.getId());<br />
		} else {<br />
			getJpaTemplate().merge(formData);<br />
		}<br />
		return formData;<br />
	}</p>
<p>}</p>
<p>&#8211;&gt;</p>
<p>org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [spring-context.xml]; nested exception is java.lang.AbstractMethodError: org.springframework.core.type.asm.AnnotationMetadataReadingVisitor.visit(IILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)V<br />
	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:375)<br />
	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)<br />
	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:280)<br />
	at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:142)<br />
	at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:158)<br />
	at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:184)<br />
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br />
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br />
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br />
	at org.springframework.test.jpa.AbstractJpaTests.runBare(AbstractJpaTests.java:209)<br />
	at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:40)<br />
Caused by: java.lang.AbstractMethodError: org.springframework.core.type.asm.AnnotationMetadataReadingVisitor.visit(IILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)V<br />
	at org.objectweb.asm.ClassReader.accept(Unknown Source)<br />
	at org.objectweb.asm.ClassReader.accept(Unknown Source)<br />
	at org.springframework.core.type.filter.AnnotationTypeFilter.matchSelf(AnnotationTypeFilter.java:53)<br />
	at org.springframework.core.type.filter.AbstractTypeHierarchyTraversingFilter.match(AbstractTypeHierarchyTraversingFilter.java:54)<br />
	at org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.isCandidateComponent(ClassPathScanningCandidateComponentProvider.java:183)<br />
	at org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.getClassReaderIfCandidate(ClassPathScanningCandidateComponentProvider.java:166)<br />
	at org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.findCandidateComponents(ClassPathScanningCandidateComponentProvider.java:148)<br />
	at org.springframework.context.annotation.ClassPathBeanDefinitionScanner.doScan(ClassPathBeanDefinitionScanner.java:160)<br />
	at org.springframework.context.annotation.ComponentScanBeanDefinitionParser.parse(ComponentScanBeanDefinitionParser.java:145)<br />
	at org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(NamespaceHandlerSupport.java:69)<br />
	at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1114)<br />
	at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1104)<br />
	at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:133)<br />
	at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:90)<br />
	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:458)<br />
	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:353)<br />
	&#8230; 24 more
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Revue de Presse Xebia par J2EE, Agilité et SOA&#160;:&#160;Le blog de Xebia France</title>
		<link>http://blog.springsource.com/main/2007/05/29/customizing-annotation-configuration-and-component-detection-in-spring-21/#comment-25700</link>
		<pubDate>Mon, 04 Jun 2007 13:44:51 +0000</pubDate>
		<guid>http://blog.springsource.com/main/2007/05/29/customizing-annotation-configuration-and-component-detection-in-spring-21/#comment-25700</guid>
					<description>[...] Customizing Annotation Configuration and Component Detection in Spring 2.1 [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] Customizing Annotation Configuration and Component Detection in Spring 2.1 [&#8230;]
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Jose Noheda</title>
		<link>http://blog.springsource.com/main/2007/05/29/customizing-annotation-configuration-and-component-detection-in-spring-21/#comment-25144</link>
		<pubDate>Wed, 30 May 2007 11:35:04 +0000</pubDate>
		<guid>http://blog.springsource.com/main/2007/05/29/customizing-annotation-configuration-and-component-detection-in-spring-21/#comment-25144</guid>
					<description>Having the @Resource annotation clarifies things IMO. The DI is simpler. I would need to toy a little with aspects, scopes and proxies but so far so good. Just one thing...why have you named it @Component when @Bean fits so nicely? It's driving me crazy :-)</description>
		<content:encoded><![CDATA[<p>Having the @Resource annotation clarifies things IMO. The DI is simpler. I would need to toy a little with aspects, scopes and proxies but so far so good. Just one thing&#8230;why have you named it @Component when @Bean fits so nicely? It&#039;s driving me crazy <img src='http://blog.springsource.com/main/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: tony</title>
		<link>http://blog.springsource.com/main/2007/05/29/customizing-annotation-configuration-and-component-detection-in-spring-21/#comment-25036</link>
		<pubDate>Tue, 29 May 2007 15:45:15 +0000</pubDate>
		<guid>http://blog.springsource.com/main/2007/05/29/customizing-annotation-configuration-and-component-detection-in-spring-21/#comment-25036</guid>
					<description>Your this article is very good</description>
		<content:encoded><![CDATA[<p>Your this article is very good
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
