You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-java@ibatis.apache.org by Swati Singhal <sw...@yahoo.com> on 2005/03/16 10:36:52 UTC

Need help!!

Hi,

I'm new to iBATIS and am stuck with an error.

My application uses Struts and iBATIS.

As of now, I have a simple properties file with the
following properties:
driver
url
username
password

I have created the sql-map-config.xml file that reads
this property file and have a transaction manager=JDBC
element to read all the properties from this property
file.
Have also defined an sql-map resource as the file
which contains my queries.

My problem is that I have created a
DAOConfiguration.java file which does the following:

a.It reads the dao.xml file
b.Reader reader =
Resources.getResourceAsReader(resource);
c.daoManager =
DaoManagerBuilder.buildDaoManager(reader);

However I get an error at line c. that says:

Error in DAOConfig:Error while configuring DaoManager.
 Cause:
com.ibatis.common.exception.NestedRuntimeException:
XML Parser Error.  Cause: org.xml.sax.SAXException:
Fatal Error: URI=null Line=1: Premature end of file.

Any help will be highly appreciated!

Thanks,
Swati




		
__________________________________ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/ 

Re: Need help!!

Posted by Aitor Imaz <ai...@gmail.com>.
Swati,

It looks like you've got some problem in your DAO config file. Can you
please send it to the list?

Cheers,
Aitor