title: How to deploy OpenLayers with Tomcat + JSF 2
body: <p>I'm trying to get OpenLayers deployed in my JSF 2.0 App on tomcat.</p>
  
  <p>So far, What I did was to copy <code>openLayers.js</code> to the <code>resources</code> directory of the web app (I have other JS working from there successfully) and the <code>theme</code> and <code>img</code> directories in to the same <code>resources</code> directory.</p>
  
  <p>Next, I included <code>openLayers.js</code> from my <code>xhtml</code> file as follows:</p>
  
  <pre><code>&lt;h:outputScript library="js" name="openLayers.js" /&gt;
  </code></pre>
  
  <p>When I try to use <code>OpenLayers</code> I get these errors on the <code>Javascript</code> console:</p>
  
  <pre><code>BaseTypes.jsGET https://ben.serveraddress.com:8443/MDPortal/lib/OpenLayers/BaseTypes.js 404 (Not Found)
  Class.jsGET https://ben.serveraddress.com:8443/MDPortal/lib/OpenLayers/BaseTypes/Class.js 404 (Not Found)
  Util.jsGET https://ben.serveraddress.com:8443/MDPortal/lib/OpenLayers/Util.js 404 (Not Found)
  Element.jsGET https://ben.serveraddress.com:8443/MDPortal/lib/OpenLayers/BaseTypes/Element.js 404 (Not Found)
  Bounds.jsGET https://ben.serveraddress.com:8443/MDPortal/lib/OpenLayers/BaseTypes/Bounds.js 404 (Not Found)
  LonLat.jsGET https://ben.serveraddress.com:8443/MDPortal/lib/OpenLayers/BaseTypes/LonLat.js 404 (Not Found)
  Pixel.jsGET https://ben.serveraddress.com:8443/MDPortal/lib/OpenLayers/BaseTypes/Pixel.js 404 (Not Found)
  Size.jsGET https://ben.serveraddress.com:8443/MDPortal/lib/OpenLayers/BaseTypes/Size.js 404 (Not Found)
  </code></pre>