title: WebSphere error 404 SRVE0295E
body: <p>I've got a strange problem where an application I'm deploying to WebSphere can't seem to access its resources. I can access the main page just fine, but when index.jsp tries to reference the Javascript file it relies on, it gets a 404. Specifically, "Error 404: SRVE0295E: Error reported: 404".</p>
  
  <p>The Javascript is referenced as <code>&lt;script type="text/javascript" src="/contextRoot/someDir/scripts/myJavascript.js"&gt;&lt;/script&gt;</code></p>
  
  <p>The main entry page for the site is located at <code>http://localhost:9080/contextRoot/index.jsp</code> and it loads fine. </p>
  
  <p>If I try to navigate my browser to <code>http://localhost:9080/contextRoot/someDir/scripts/myJavascript.js</code> I get <code>Error 404: SRVE0295E</code>, even though the path to the file in my WebSphere installed application <code>$myCell/myApp.ear/myWARModule.war/index.jsp</code> and <code>$myCell/myApp.ear/myWARModule.war/someDir/scripts/myJavascript.js</code> are both valid, the only resource I can access from a browser is <code>index.jsp</code>.</p>
  
  <p>Does anyone know what could cause this error?</p>
  
  <p>(Running on WebSphere 7.0.0.29)</p>