In Eclipse, if you don't specify the build path, your classes by default will be placed in the base classpath of your project module. E.g.
C:\workspaces\myproject\myModuleEJB\classes\xxxTherefore, your base classpath is
C:\workspaces\myproject\myModuleEJB\classes\xxxConsider two spring config source folders :
C:\workspaces\myproject\myModuleEJB\testsrc\spring\testApplicationContext.xmlC:\workspaces\myproject\myModuleEJB\configsrc\spring\businessRules.xmltestApplicationContext.xml is referring to businessRules.xml e.g.
testApplicationContext.xml
===================
<bean id="businessRules" init="false" class="org.springframework.context.support.ClassPathXmlApplicationContext">
<constructor-arg>
<list><value>spring/businessRules.xml</value></list>
</constructor-arg>
</bean>
both testApplicationContext.xml and businessRules.xml are compiled by Eclipse into
C:\workspaces\myproject\myModuleEJB\classes\
spring\testApplicationContext.xmlC:\workspaces\myproject\myModuleEJB\classes\
spring\businessRules.xmltherefore, if testApplicationContext.xml wants to refer to businessRules.xml, the testApplicationContext.xml has to refer to the
base classpath location of businessRules.xml
ie.
/spring/businessRules.xml