title: java.lang.ClassNotFoundException: org.apache.camel.Component in wildfly
body: <p>I am getting following Error:</p>
  
  <pre><code>java.lang.ClassNotFoundException: org.apache.camel.Component
  </code></pre>
  
  <p>I am using wildfly server.</p>
  
  <p>My Code is:</p>
  
  <pre><code>import java.io.IOException;
  
  import javax.servlet.ServletException;
  import javax.servlet.annotation.WebServlet;
  import javax.servlet.http.HttpServlet;
  import javax.servlet.http.HttpServletRequest;
  import javax.servlet.http.HttpServletResponse;
  
  import org.apache.activemq.ActiveMQConnection;
  import org.apache.activemq.camel.component.ActiveMQComponent;
  import org.apache.camel.CamelContext;
  import org.apache.camel.builder.RouteBuilder;
  import org.apache.camel.impl.DefaultCamelContext;
  
  public class CamelRouter extends HttpServlet {
  
      protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
  
          try {
  
              CamelContext context = new DefaultCamelContext();
              context.addComponent("activemq",ActiveMQComponent.activeMQComponent(ActiveMQConnection.DEFAULT_BROKER_URL));
              context.addRoutes(new RouteBuilder() {
                  public void configure() {
                      from("activemq:queue:testMQ").to(
                              "activemq:queue:testMQDestination");
                  }
              });
  
              context.start();
              Thread.sleep(1000);
              context.stop();
              System.out.println("Done");
          } catch (Exception e) {
              System.out.println(e);
          }
  
      }
  
  
  }
  </code></pre>
  
  <p>[Note: I am using plain servlet. No spring, no maven]</p>