title: Mule standalone (command line) cant find a file in its classes folder
body: <p>I have a mule flow in <code>Project B</code> that references a Java component in <code>Project A</code>. The projects are structured in the following manner.</p>
  
  <pre><code>Project A
     src/test/java-ComponentClass
     src/test/resources- propertyfile.properties
   Project B(Mule project)
     src/main/app(Flows)- testflow(flow with component referencing ComponentClass)
     src/main/resources - propertyfile.properties
  </code></pre>
  
  <p><code>testFlow</code> creates the component class bean in the following manner . </p>
  
  <pre><code> &lt;spring:beans&gt;
  
          &lt;spring:bean id="beanA"   class="com.packagename.ComponentClass"/&gt;
      &lt;/spring:beans&gt;
  </code></pre>
  
  <p>The following segment shows how the <code>ComponentClass</code> accesses the propertyfile.</p>
  
  <pre><code>propFilePath="src/test/resources/propertyfile.properties"
  File propFile = new File(propFilePath);
  if(!propFile.exists())// To handle mule flow as mule doesnt bundle src/test/resources
  {
     propFilePath=this.getClass().getResource("/propertyfile.properties");
     // points to /usr/local/mule/mule-enterprise-standalone-3.6.0-M2/apps/ProjectB-1.0-SNAPSHOT/classes/propertyfile.properties -for standalone.- 1
    //propFilePath="propertyfile.properties". &lt;--eclipse-mule plugin-2
  
  }
  
  //process the file from its path-- 
  </code></pre>
  
  <p><code>Project A</code> has been compiled in such a way that its test classes are accessible. <code>Project B</code> imports the test-jar from <code>Project A</code> through its pom.</p>
  
  <p>Now when I try to run the flow through the mule standalone on my system after building the project. The project fails to deploy on mule throwing a nested exception that the <code>propertyfile</code> is missing and hence the bean creation for <code>ComponentClass</code> has failed. However, upon inspecting the path location in 1-(within the zip) I find that the file actually exists within the classes folder. Any thoughts whats happening and how I could fix it?</p>
  
  <p>Also when I place the file in the base folder of <code>ProjectB</code> and provide the path as in line -<code>2</code> there seem to be no problems when I run the project off the mule runtime in eclipse but this fails when I try to deploy to the standalone. </p>
  
  <p>Any feedback or suggestions would be appreciated. </p>