java - How to resolve com.ibatis.common.xml.NodeletException: Error parsing XML -
i using ibatis orm of application. sqlmapconfig.xml file below:
<?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> <sqlmap resource="file:com${file.separator}platysgroup${file.separator}lmexserver${file.separator}mobile${file.separator}dao${file.separator}ibatis{file.separator}lmexusermobileinfo.xml" /> </sqlmapconfig>
i need use file separator developing using 2 operating system ubuntu , windows xp. when run application show me exception below:
com.ibatis.common.xml.nodeletexception: error parsing xml. cause: java.lang.runtimeexception: error parsing xpath '/sqlmapconfig/sqlmap'. cause: java.io.ioexception: not find resource file:comfile.separatorplatysgroupfile.separatorlmexserverfile.separatormobilefile.separatordaofile.separatoribatis{file.separator}lmexusermobileinfo.xml
the file lmexusermobileinfo.xml exist in package com.platysgroup.lmex.server.core.dao.ibatis
please me resolve this.
thank you
simply replace ${file.separator}
in sqlmapconfig.xml
'/' or '.'
Comments
Post a Comment