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.post
ProcessBeanFactory(PropertyResourceConfigurer.java:75)
        at
org.springframework.context.support.AbstractApplicationContext.invokeBea
nFactoryPostProcessors(AbstractApplicationContext.java:541)
        at
org.springframework.context.support.AbstractApplicationContext.invokeBea
nFactoryPostProcessors(AbstractApplicationContext.java:515)
        at
org.springframework.context.support.AbstractApplicationContext.refresh(A
bstractApplicationContext.java:348)
        at
org.springframework.test.AbstractSingleSpringContextTests.createApplicat
ionContext(AbstractSingleSpringContextTests.java:243)
        at
org.springframework.test.AbstractSingleSpringContextTests.loadContextLoc
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.registerBeanCompon
> en
> t(Lorg/springframework/beans/factory/parsing/
> BeanComponentDefinition;)V
> Caused by: java.lang.NoSuchMethodError:
> org.springframework.beans.factory.xml.ParserContext.registerBeanCompon
> en
> t(Lorg/springframework/beans/factory/parsing/
> BeanComponentDefinition;)V
>       at
> org.springframework.transaction.config.AnnotationDrivenBeanDefinitionP
> ar
> ser$AopAutoProxyConfigurer.configureAutoProxyCreator
> (AnnotationDrivenBea
> nDefinitionParser.java:130)
>       at
> org.springframework.transaction.config.AnnotationDrivenBeanDefinitionP
> 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.par
> se
> CustomElement(BeanDefinitionParserDelegate.java:1114)
>       at
> org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.par
> se
> CustomElement(BeanDefinitionParserDelegate.java:1104)
>       at
> org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentRea
> de
> r.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:133)
>       at
> org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentRea
> de
> r.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:90)
>       at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.register
> Be
> anDefinitions(XmlBeanDefinitionReader.java:458)
>       at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBe
> an
> Definitions(XmlBeanDefinitionReader.java:353)
>       at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBean
> De
> finitions(XmlBeanDefinitionReader.java:303)
>       at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBean
> De
> finitions(XmlBeanDefinitionReader.java:280)
>       at
> org.springframework.beans.factory.support.AbstractBeanDefinitionReader
> .l
> oadBeanDefinitions(AbstractBeanDefinitionReader.java:131)
>       at
> org.springframework.beans.factory.support.AbstractBeanDefinitionReader
> .l
> oadBeanDefinitions(AbstractBeanDefinitionReader.java:147)
>       at
> org.springframework.beans.factory.support.AbstractBeanDefinitionReader
> .l
> oadBeanDefinitions(AbstractBeanDefinitionReader.java:173)
>       at
> org.springframework.test.AbstractSingleSpringContextTests.createApplic
> at
> ionContext(AbstractSingleSpringContextTests.java:242)
>       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: 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]

Reply via email to