By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,644 Members | 1,312 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,644 IT Pros & Developers. It's quick & easy.

Ibatis cannot access the database

P: 26
Ibatis cannot access the database. here is my

SqlMapConfig.xml
Expand|Select|Wrap|Line Numbers
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE sqlMapConfig
  3. PUBLIC "-//ibatis.apache.org//DTD SQL Map Config 2.0//EN"
  4. "http://ibatis.apache.org/dtd/sql-map-config-2.dtd">
  5.  
  6. <sqlMapConfig>
  7.    <settings useStatementNamespaces="true"/>
  8.    <transactionManager type="JDBC">
  9.   <dataSource type="SIMPLE">
  10.   <property name="JDBC.Driver" value="com.mysql.jdbc.Driver"/>
  11.   <property name="JDBC.ConnectionURL"
  12.    value="jdbc:mysql://192.168.10.112:3306/vin"/>
  13.   <property name="JDBC.Username" value="root"/>
  14.   <property name="JDBC.Password" value="root"/>
  15.   </dataSource>
  16.   </transactionManager>
  17.    <sqlMap resource="Contact.xml"/> 
  18. </sqlMapConfig>
how do i set SqlMapConfig.xml in the class path

thanks
Oct 27 '12 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.