title: Apache Camel can't find servlet class
body: <p>I wanted to download webpage using Apache Camel, and sadly my efforts were stopped by awful wall of errors, all of which seem to be caused by:</p>
  
  <pre><code>java.lang.NoClassDefFoundError: javax/servlet/ServletInputStream
  </code></pre>
  
  <p>I find it very confusing, as it looks like a class from standard library.</p>
  
  <p>I created project in eclipse, and in referenced libraries I have:</p>
  
  <ul>
  <li>slf4j-api-1.6.4.jar </li>
  <li>slf4j-simple-1.6.4.jar </li>
  <li>camel-core-2.9.1.jar</li>
  <li>camel-http4-2.9.1.jar</li>
  </ul>
  
  <p>Code of class that is supposed to do the job:</p>
  
  <pre><code>package camelexample;
  
  import org.apache.camel.CamelContext;
  import org.apache.camel.builder.RouteBuilder;
  import org.apache.camel.impl.DefaultCamelContext;
  
  public class HttpDownload {
    public static void main(String[] args) throws Exception{
      System.out.print("download");
  
      CamelContext context = new DefaultCamelContext();
      context.addRoutes(new RouteBuilder(){
        public void configure(){
          from("http://www.ii.uni.wroc.pl/~gst/").to("file:data/webpage.html");
        }
      });
  
      context.start();
      Thread.sleep(10);
      context.stop();
    }
  }
  </code></pre>
  
  <p>In order to run the project, I just use eclipse "run" button. What am I doing wrong?</p>