PDA

View Full Version : spring-ibatis


maheswar
Feb 20th, 2006, 01:42 AM
Hi,
I have one query:

I am using spring ibatis in my application
I checked all the xml files under WEB-INF folder.
Whille deploying my application I got error,
Caused by:
com.ibatis.common.exception.NestedRuntimeException : Error parsing XPath '/sqlMapConfig/sqlMap'. Cause: java.io.IOExcept
ion: Could not find resource WEB-INF/site.xml
Caused by: java.io.IOException: Could not find resource WEB-INF/site.xml


And here is part of my SqlMapConfig.xml:

<sqlMapConfig>
<sqlMap resource="WEB-INF/site.xml"/>
</sqlMapConfig>

Why it is not recognising the resourse? Do you have any idea on this,if yes Help me on this.
Thanks & Regards,
Maheswara Reddy.

Kees de Kooter
Feb 20th, 2006, 01:45 AM
Try /WEB-INF/site.xml

maheswar
Feb 20th, 2006, 01:50 AM
thanks,

I tried that also,but it wasn;t help,It throws

java.io.IOException: Could not find resource /WEB-INF/site.xml