i added below lines to my web.xml
Code:<context-param>
<param-name>classpaht:locatorFactorySelector</param-name>
<param-value>beanRefContext.xml</param-value>
</context-param>
<context-param>
<description>spring parent/child relationship link</description>
<param-name>parentContextKey</param-name>
<param-value>beanRefFactory</param-value>
</context-param>
and my beanRefContext.xml is
Code:<beans>
<bean id="beanRefFactory" class="org.springframework.context.support.ClassPathXmlApplicationContext">
<constructor-arg>
<list>
<value>applicationContext.xml</value>
</list>
</constructor-arg>
</bean>
</beans>

