Document root element "sqlMap", must match DOCTYPE root "null"
This was the unhelpful exception I was gettign when I tried to run my ibatis/ spring prototype.
My ibatis sqlMap file looked ok
<sqlmapconfig>
<sqlmap resource="db/prov.xml">
</sqlmap>
<sqlmapconfig>javascript:void(0)
Publish Post
Had a search, you must add
<!DOCTYPE sqlMap PUBLIC "-//iBATIS.com//DTD SQL Map 2.0//EN"
"http://www.ibatis.com/dtd/sql-map-2.dtd">
to your sql map files
Note you must also have
<!DOCTYPE sqlMapConfig PUBLIC "-//iBATIS.com//DTD SQL Map Config 2.0//EN"
"http://www.ibatis.com/dtd/sql-map-config-2.dtd">
to your sql-map-config.xml file.
Friday, May 25, 2007
Subscribe to:
Posts (Atom)