Wednesday, June 24, 2015

IOException parsing XML document from class path resource

I have a Test File in the package com.springt.test and trying to execute this java test file I am getting this below exception.

org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource "<path of application context.xml>"

The solution i got it from google search that applicationContext.xml file should be under the src directory instead of any other directory/package. So I  moved applicationContect.xml under src directory and got resolved.

No comments: