ColdSpring 2.0: Cannot find the declaration of element 'beans'.

41 views
Skip to first unread message

Nathan Mische

unread,
Dec 14, 2011, 10:26:25 AM12/14/11
to ColdSpring-Users
I'm trying to use ColdSpring 2 for the first time and I'm running into
the following error when trying to load my XML bean configuration:

Error found on line: '
xsi:schemaLocation="http://www.coldspringframework.org/schema/util
http://www.coldspringframework.org/schema/coldspring-util-2.0.xsd ">'.
cvc-elt.1: Cannot find the declaration of element 'beans'.

This is my XML config file:

<beans xmlns="http://www.coldspringframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.coldspringframework.org/schema/util
http://www.coldspringframework.org/schema/coldspring-util-2.0.xsd ">
<bean id="okValidator" class="ok.Validator" />
</beans>

Has anyone run into this issue? I'm on ColdFusion 9.0.1.

Thanks,

--Nathan

Mark Mandel

unread,
Dec 14, 2011, 10:58:48 AM12/14/11
to coldspri...@googlegroups.com
Nathan,

It should be:

 
           xsi:schemaLocation="http://www.coldspringframework.org/schema/beans http://coldspringframework.org/schema/coldspring-beans-2.0.xsd"
           default-autowire="byName"
           >

You're giving a schema location to /util, not to /beans.

Did you copy paste that from somewhere? Sounds like there may be some doco that's wrong somewhere?

Mark


--
You received this message because you are subscribed to the Google Groups "ColdSpring-Users" group.
To post to this group, send email to coldspri...@googlegroups.com.
To unsubscribe from this group, send email to coldspring-use...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/coldspring-users?hl=en.




--
E: mark....@gmail.com
T: http://www.twitter.com/neurotic
W: www.compoundtheory.com

2 Devs from Down Under Podcast

Nathan Mische

unread,
Dec 14, 2011, 11:39:35 AM12/14/11
to coldspri...@googlegroups.com
Ah yes of course. I copied this from
http://sourceforge.net/apps/trac/coldspring/wiki/MigratingFrom1.xTo2.0
so that probably needs to be updated.

Thanks,

--Nathan

Mark Mandel

unread,
Dec 14, 2011, 5:25:34 PM12/14/11
to coldspri...@googlegroups.com
Sorry about that - fixed.

Let me know if you see that anywhere else.

Mark
Reply all
Reply to author
Forward
0 new messages