ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Will Chapman <wi...@monabt.com>
Subject SqlMap Resource problem
Date Fri, 14 Sep 2007 23:38:17 GMT
I am setting up a test bed with iBatis on my local machine.  Here is my 

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE sqlMapConfig     
    PUBLIC "-//ibatis.apache.org//DTD SQL Map Config 2.0//EN"     

  <transactionManager type="JDBC" commitRequired="false">
    <dataSource type="SIMPLE">
      <property name="JDBC.Driver" value="org.postgresql.Driver"/>
      <property name="JDBC.ConnectionURL" value="jdbc:postgresql:billing"/>
      <property name="JDBC.Username" value="postgres"/>
      <property name="JDBC.Password" value="postgres"/>
  <sqlMap resource="com/test/res/Playground.xml" />

It fails to load the sqlMap resource because it cannot find it.  I've 
also tried moving the xml file outside of the Jar file and using 
"file:///c:/directory/Playground.xml" and that resulted in the same 
error.  Im using this inside of a system that has its own method of 
resolving resources inside of jar files.  Is it possible that I can just 
pass an InputStream or other related to my SqlMapClient to obtain the 
same result?

This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

View raw message