Spring, aop, batch retry, exception: expected single bean but found 0?

(1)Maybe, error is here: ApplicationContext ctx = new FileSystemXmlApplicationContext("test. Xml"); xxImpl monitor = ctx. GetBean(xxImpl.

Class); ApplicationContext ctx = new ClassPathXmlApplicationContext("file:spring-configuration/unit-testing/application-config. Xml"); Main main = ctx. GetBean(Main.

Class).

(1)Maybe, error is here: ApplicationContext ctx = new FileSystemXmlApplicationContext("test. Xml"); xxImpl monitor = ctx. GetBean(xxImpl.

Class); ApplicationContext ctx = new ClassPathXmlApplicationContext("file:spring-configuration/unit-testing/application-config. Xml"); Main main = ctx. GetBean(Main.

Class); (2) Changed xxImpl, use @Autowired (3) add CGLib (4) it DOESN‘T works. ====== ====== ====== ====== Finally, Solved� ϼ?

ϼ? Added following the link: Fixing BeanNotOfRequiredTypeException on Spring proxy cast on a non-singleton bean?

Solved=== Added following the link: stackoverflow. Com/questions/841231/… – Luqi Nov 7 at 11:44.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions