Placeholders in sqlmap are not resolved in config
-------------------------------------------------
Key: IBATIS-72
URL: http://issues.apache.org/jira/browse/IBATIS-72
Project: iBatis for Java
Type: Bug
Versions: 2.0.9
Reporter: S Boyd
This configuration file does not work. It did work in v2.0.8.
<sqlMapConfig>
<properties resource="some_prop_file.ext"/>
<sqlMap resource="sqlMaps/${database}/account.xml"/>
</sqlMapConfig>
Here is the exception message:
Exception:
Caused by: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause:
java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'.
Cause: java.io.IOException: Could not find resource ${database}
See also mailing list archive:
http://www.mail-archive.com/[email protected]/msg0
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira