org.springframework.beans.factory.NoSuchBeanDefinitionException exception in UNIX <p>I have my java spring standalone project which works fine in windows but when I create jar file and executes that jar file by using shell script, it gives me <code>org.springframework.beans.factory.NoSuchBeanDefinitionException</code>. It seems that in unix it is unable to load the beans and unable to do component scan.</p> <p>I have application contex file as below:</p> <pre><code>&lt;context:annotation-config /&gt; &lt;context:component-scan base-package="com.ubs.lazar" /&gt; &lt;context:property-placeholder location="oracle.properties" /&gt; &lt;bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource"&gt; &lt;property name="driverClassName" value="${batch.jdbc.driver}" /&gt; &lt;property name="url" value="${batch.jdbc.url}" /&gt; &lt;property name="username" value="${batch.jdbc.user}" /&gt; &lt;property name="password" value="${batch.jdbc.password}" /&gt; &lt;/bean&gt; &lt;bean id="daoFactory" class="com.ubs.mzq.xen.db.XenDaoFactory"&gt; &lt;property name="databaseName" value="oracle" /&gt; &lt;property name="dataSource" ref="dataSource" /&gt; &lt;/bean&gt; &lt;tx:annotation-driven/&gt; </code></pre> <p>And I am invoking and load the configuration from java as below:</p> <pre><code>ApplicationContext context = new ClassPathXmlApplicationContext("classpath*:META-INF/application-context.xml"); AwardEventService awardEventService = (AwardEventService) context.getBean("awardEventServiceImpl"); </code></pre> <p>Can you please somebody helps to how to overcome this issue in UNIX.</p> <p>Thanks</p>