Been trying to get rid of this error message in my Spring container for a while and I have finally built up enough periphery knowledge to figure out the solution myself, so I thought I’d share it with you - I’m nice like that! The offending message in Eclipse is:
cvc-id.1: There is no ID/IDREF binding for IDREF ‘transactionManager’After a search I found: http://documentation.softwareag.com/crossvision/ins441/messages/imsg.htm Which provided the very helpful advice:
The document contains an IDREF value which does not exist as an ID value. Modify your document.In my example it was moaning about the transactionManager but in your case it could be anything. Inside my containers xml configuration I had a bean which uses a reference to a local bean called transactionManager. Local here is the important bit. Local means that it is defined within the scope of this document - not in a linked or imported document, but in this one. In my case it was defined like this:
In order to fix the problem, I changed the transactionManager bean reference to not be local:
<bean id="mybeanid" class="uk.co.bigsoft.proj"> <property name="transactionManager"> <ref local="transactionManager"/> </property> </bean>
And the problem went away!
<bean id="mybeanid" class="uk.co.bigsoft.proj"> <property name="transactionManager" ref="transactionManager"/> </bean>
Comment from: Yahya Hafedh [Visitor]
Thank you, it was helpful, resolved my issue within a minute.
Comment from: Dan [Visitor]
This solved one of my many problems. Thanks for the great post!
Comment from: Beth [Visitor]
Awesome, thanks! That helped this Spring newbie fix a very annoying problem!
Comment from: vinoth [Visitor]
Thank you , Resolved my issue
Comment from: Abhishek Junnarkar [Visitor]
thanks a lot…solved the problem i was facing.
Comment from: GraMstrs [Visitor]
Tkx a lot!, solve my problem too :)
Comment from: Punit Sethi [Visitor]
Extremely helpful and worked for me.
Comment from: Uttran [Visitor]
Awesome. Thanks for this post
Comment from: feodosij [Visitor]
Thanks! Very helpful!
Comment from: Aaron [Visitor]
Muchas gracias amigo. Thank you very very much.
Comment from: AnshukJain [Visitor]
Simple and sort. Good work.
Form is loading...