Hi, Maybe you could find your answer in http://www.nabble.com/execute-junit-tests-in-eclipse-tf3504799s2369.html this thread . I did face this problem before but while using Candy. After I switched to appfuse (using cmd line) and followed the IDE guidelines, it just work :)
Hope the thread help you. qjm335 wrote: > > Hi > I have deployed the appfuse-basic into eclipse, and I want to run the DAO > test right in the IDE, but I got : > > org.springframework.beans.factory.BeanDefinitionStoreException: Error > registering bean with name 'dataSource' defined in file > [E:\workspace\appfuseExample\target\test-classes\applicationContext-resources.xml]: > Circular placeholder reference 'jdbc.driverClassName' in property > definitions > at > org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.processProperties(PropertyPlaceholderConfigurer.java:249) > at > org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:75) > at > org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:467) > at > org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:334) > at > org.springframework.test.AbstractSingleSpringContextTests.createApplicationContext(AbstractSingleSpringContextTests.java:199) > at > org.springframework.test.AbstractSingleSpringContextTests.loadContextLocations(AbstractSingleSpringContextTests.java:179) > at > org.springframework.test.AbstractSingleSpringContextTests.loadContext(AbstractSingleSpringContextTests.java:158) > at > org.springframework.test.AbstractSpringContextTests.getContext(AbstractSpringContextTests.java:105) > at > org.springframework.test.AbstractSingleSpringContextTests.setUp(AbstractSingleSpringContextTests.java:87) > at junit.framework.TestCase.runBare(TestCase.java:132) > at > org.springframework.test.ConditionalTestCase.runBare(ConditionalTestCase.java:69) > 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.java:81) > at > org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38) > at > org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) > > > > Seems the mvn does not replace the the placeholders for the DAO, does > appfuse support running DAO test in IDE now as the Appfuse-1 ? > > > > > > > > Jim Qiu > > Beijing China (System development, outsourcing) > > 2007-09-15 > > -- View this message in context: http://www.nabble.com/How-to-run-the-Junit-test-case-of-Appfuse2-in-eclipse---tf4447810s2369.html#a12690829 Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
