ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xianwinwin <xianwin...@gmail.com>
Subject WHAT AM I MISSING? sqlMapConfig.xml
Date Tue, 16 May 2006 22:19:42 GMT

Newbie  to iBatis: I have this sqlMapConfig.xml but for some reason it
generates the following error: Element "sqlMapConfig" requires additional
elements.

(to be more mercise, it says:
Caused by: com.ibatis.common.exception.NestedRuntimeException: Error
occurred.  Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. 
Cause: org.xml.sax.SAXParseException: Element "sqlMapConfig" requires
additional elements.)


this is my file, anyone?

<?xml version="1.0" encoding="UTF-8" ?>

<!DOCTYPE sqlMapConfig PUBLIC "-//ibatis.apache.org//DTD SQL Map Config
2.0//EN"
    "http://ibatis.apache.org/dtd/sql-map-config-2.dtd">
   
<sqlMapConfig>

 
  
  <transactionManager type="JDBC">
    <dataSource type="SIMPLE">
      <property value="com.mysql.jdbc.Driver" name="JDBC.Driver"/>
      <property value="jdbc:mysql://localhost/TA"
name="JDBC.ConnectionURL"/>
      <property value="root" name="JDBC.Username"/>
      <property value="root#23" name="JDBC.Password"/>
    </dataSource>
  </transactionManager>
  
      
  <sqlMap resource="com/jhexagon/ibatis/xml/UserIdentity.xml"/>
  <sqlMap resource="com/jhexagon/ibatis/xml/Files.xml"/>
  <sqlMap resource="com/jhexagon/ibatis/xml/TA.xml"/>
  <sqlMap resource="com/jhexagon/ibatis/xml/Target.xml"/>
 
</sqlMapConfig>  
--
View this message in context: http://www.nabble.com/WHAT-AM-I-MISSING-sqlMapConfig.xml-t1631756.html#a4420156
Sent from the iBATIS - User - Java forum at Nabble.com.


Mime
View raw message