I am still facing the same issue "org.springframework.beans.factory.BeanDefinitionStoreException: Error registering bean with name 'dataSource' defined in class path resource [applicationContext-resources.xml]: Circular placeholder reference 'jdbc.driverClassName' in property definitions"
Is there something else which I should be doing ? Khaliq -----Original Message----- From: Matt Raible [mailto:[EMAIL PROTECTED] Sent: 26 February 2008 08:08 To: users@appfuse.dev.java.net Subject: Re: [appfuse-user] Junit Test Cases failing within eclipse. This happens when Eclipse copies applicationContext-resources.xml from src/main/resources w/o filtering its properties. You might try running "mvn resources:resources" from the command line and then refresh in your IDE and try your test again. Matt On Feb 25, 2008, at 8:06 PM, Abdul Khaliq Gaffar wrote: > I had used mvn eclipse:eclipse to build my classpath .I am using > appfuse v 2.0.6 . Yes , I have spring-core 2.0.5 set in my class path > , but this was set by mvn eclipse plugin,but now I had manually edited > my class path to point to 2.5 .I am still facing some other issue now > .Here trace log for your reference. > > org.springframework.beans.factory.BeanDefinitionStoreException: Error > registering bean with name 'dataSource' defined in class path resource > [applicationContext-resources.xml]: Circular placeholder reference > 'jdbc.driverClassName' in property definitions > at > org.springframework.beans.factory.config.PropertyPlaceholderConfigurer > .p > rocessProperties(PropertyPlaceholderConfigurer.java:252) > at > org.springframework.beans.factory.config.PropertyResourceConfigurer.po > st > ProcessBeanFactory(PropertyResourceConfigurer.java:75) > at > org.springframework.context.support.AbstractApplicationContext.invokeB > ea > nFactoryPostProcessors(AbstractApplicationContext.java:541) > at > org.springframework.context.support.AbstractApplicationContext.invokeB > ea > nFactoryPostProcessors(AbstractApplicationContext.java:515) > at > org.springframework.context.support.AbstractApplicationContext.refresh > (A > bstractApplicationContext.java:348) > at > org.springframework.test.AbstractSingleSpringContextTests.createApplic > at > ionContext(AbstractSingleSpringContextTests.java:243) > at > org.springframework.test.AbstractSingleSpringContextTests.loadContextL > oc > ations(AbstractSingleSpringContextTests.java:212) > at > org.springframework.test.AbstractSingleSpringContextTests.loadContext( > Ab > stractSingleSpringContextTests.java:187) > at > org.springframework.test.AbstractSpringContextTests.getContext > (AbstractS > pringContextTests.java:140) > at > org.springframework.test.AbstractSingleSpringContextTests.setUp > (Abstract > SingleSpringContextTests.java:100) > at junit.framework.TestCase.runBare(TestCase.java:132) > at > org.springframework.test.ConditionalTestCase.runBare > (ConditionalTestCase > .java:76) > at junit.framework.TestResult$1.protect(TestResult.java:110) > at junit.framework.TestResult.runProtected(TestResult.java:128) > at junit.framework.TestResult.run(TestResult.java:113) > at junit.framework.TestCase.run(TestCase.java:124) > at junit.framework.TestSuite.runTest(TestSuite.java:232) > at junit.framework.TestSuite.run(TestSuite.java:227) > at > org.junit.internal.runners.JUnit38ClassRunner.run > (JUnit38ClassRunner.jav > a:81) > at > org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run > (JUnit4Tes > tReference.java:38) > at > org.eclipse.jdt.internal.junit.runner.TestExecution.run > (TestExecution.ja > va:38) > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests > (RemoteTe > stRunner.java:460) > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests > (RemoteTe > stRunner.java:673) > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run > (RemoteTestRun > ner.java:386) > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main > (RemoteTestRu > nner.java:196) > > > -----Original Message----- > From: Matt Raible [mailto:[EMAIL PROTECTED] > Sent: 26 February 2008 07:40 > To: users@appfuse.dev.java.net > Subject: Re: [appfuse-user] Junit Test Cases failing within eclipse. > > I believe this is caused by an old version of Spring in your > classpath. > > Matt > > On Feb 24, 2008, at 8:24 PM, Abdul Khaliq Gaffar wrote: > >> Matt, >> >> Here is the Error Trace of junit test case.I guess I am not using the >> right version or am I missing something in the classpath .It would be >> great if you can let me know where I am missing . >> >> Regards, >> Khaliq >> >> org.springframework.beans.factory.BeanDefinitionStoreException: >> Unexpected exception parsing XML document from class path resource >> [applicationContext-service.xml]; nested exception is >> java.lang.NoSuchMethodError: >> org.springframework.beans.factory.xml.ParserContext.registerBeanCompo >> n >> en >> t(Lorg/springframework/beans/factory/parsing/ >> BeanComponentDefinition;)V >> Caused by: java.lang.NoSuchMethodError: >> org.springframework.beans.factory.xml.ParserContext.registerBeanCompo >> n >> en >> t(Lorg/springframework/beans/factory/parsing/ >> BeanComponentDefinition;)V >> at >> org.springframework.transaction.config.AnnotationDrivenBeanDefinition >> P >> ar >> ser$AopAutoProxyConfigurer.configureAutoProxyCreator >> (AnnotationDrivenBea >> nDefinitionParser.java:130) >> at >> org.springframework.transaction.config.AnnotationDrivenBeanDefinition >> P >> ar >> ser.parse(AnnotationDrivenBeanDefinitionParser.java:79) >> at >> org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse >> (Name >> spaceHandlerSupport.java:69) >> at >> org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.pa >> r >> se >> CustomElement(BeanDefinitionParserDelegate.java:1114) >> at >> org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.pa >> r >> se >> CustomElement(BeanDefinitionParserDelegate.java:1104) >> at >> org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentRe >> a >> de >> r.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:133) >> at >> org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentRe >> a >> de >> r.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java: >> 90) >> at >> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registe >> r >> Be >> anDefinitions(XmlBeanDefinitionReader.java:458) >> at >> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadB >> e >> an >> Definitions(XmlBeanDefinitionReader.java:353) >> at >> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBea >> n >> De >> finitions(XmlBeanDefinitionReader.java:303) >> at >> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBea >> n >> De >> finitions(XmlBeanDefinitionReader.java:280) >> at >> org.springframework.beans.factory.support.AbstractBeanDefinitionReade >> r >> .l >> oadBeanDefinitions(AbstractBeanDefinitionReader.java:131) >> at >> org.springframework.beans.factory.support.AbstractBeanDefinitionReade >> r >> .l >> oadBeanDefinitions(AbstractBeanDefinitionReader.java:147) >> at >> org.springframework.beans.factory.support.AbstractBeanDefinitionReade >> r >> .l >> oadBeanDefinitions(AbstractBeanDefinitionReader.java:173) >> at >> org.springframework.test.AbstractSingleSpringContextTests.createAppli >> c >> at >> ionContext(AbstractSingleSpringContextTests.java:242) >> at >> org.springframework.test.AbstractSingleSpringContextTests.loadContext >> L >> oc >> ations(AbstractSingleSpringContextTests.java:212) >> at >> org.springframework.test.AbstractSingleSpringContextTests.loadContext >> ( >> Ab >> stractSingleSpringContextTests.java:187) >> at >> org.springframework.test.AbstractSpringContextTests.getContext >> (AbstractS >> pringContextTests.java:140) >> at >> org.springframework.test.AbstractSingleSpringContextTests.setUp >> (Abstract >> SingleSpringContextTests.java:100) >> at junit.framework.TestCase.runBare(TestCase.java:132) >> at >> org.springframework.test.ConditionalTestCase.runBare >> (ConditionalTestCase >> .java:76) >> at junit.framework.TestResult$1.protect(TestResult.java:110) >> at junit.framework.TestResult.runProtected(TestResult.java:128) >> at junit.framework.TestResult.run(TestResult.java:113) >> at junit.framework.TestCase.run(TestCase.java:124) >> at junit.framework.TestSuite.runTest(TestSuite.java:232) >> at junit.framework.TestSuite.run(TestSuite.java:227) >> at >> org.junit.internal.runners.JUnit38ClassRunner.run >> (JUnit38ClassRunner.jav >> a:81) >> at >> org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run >> (JUnit4Tes >> tReference.java:38) >> at >> org.eclipse.jdt.internal.junit.runner.TestExecution.run >> (TestExecution.ja >> va:38) >> at >> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests >> (RemoteTe >> stRunner.java:460) >> at >> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests >> (RemoteTe >> stRunner.java:673) >> at >> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run >> (RemoteTestRun >> ner.java:386) >> at >> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main >> (RemoteTestRu >> nner.java:196) >> >> >> -----Original Message----- >> From: Matt Raible [mailto:[EMAIL PROTECTED] >> Sent: 24 February 2008 16:32 >> To: users@appfuse.dev.java.net >> Subject: Re: [appfuse-user] Junit Test Cases failing within eclipse. >> >> Which version of AppFuse are you using? What's the error you're >> seeing? >> >> Matt >> >> On 2/24/08, Abdul Khaliq Gaffar <[EMAIL PROTECTED]> wrote: >>> >>> >>> >>> Hi , >>> >>> Appfuse junit test cases when run within eclipse are failing .Is >>> there >> >>> anyway in which I can make these test case within the eclipse editor >>> >>> >>> >>> Abdul Khaliq Gaffar >>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> ---------------- > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]