permaculture playing cards*
The moose likes Other Application Frameworks and the fly likes iBATIS Example exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "iBATIS Example exception" Watch "iBATIS Example exception" New topic

iBATIS Example exception

Deepaks Deshpande
Ranch Hand

Joined: Dec 06, 2007
Posts: 111

Dear All,

I am trying the iBatis tutorial from iBATIS tutorial for beginners. I got the following exception while doing so. Please help me out.

My Bean class is

My SQL Map file is :

My SQLMapConfig file is:

My Main Class is:

Please help me out I am a beginner and i am stuck


amit punekar
Ranch Hand

Joined: May 14, 2004
Posts: 511
Hi there,
The exception message you have posted speaks for itself.
Caused by: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: org.xml.sax.SAXParseException: The content of element type "sqlMapConfig" must match "(properties?,settings?,resultObjectFactory?,typeAlias*,typeHandler*,transactionManager?,sqlMap+)+".

You have to follow the order in which you declare XML elements in SQLMapConfig.xml file as mentioned in the DTD.
In your case put "settings" after "properties" and you should get rid of this error.

I agree. Here's the link:
subject: iBATIS Example exception
Similar Threads
Metro-iBATIS Problem while deploying web service using iBatis as mapping techonlogy.
Issue with inserting a BLOB using IBatis DAO
Spring MVC+iBATIS simple Login App Problem
Issues with iBATIS and godaddy shared hosting
Validation problem please help??