title: The type org.springframework.context.ApplicationContextAware cannot be resolved. It is indirectly referenced from required .class files
body: <p>Compiling the following code yields this error:</p>
  
  <blockquote>
    <p>The type org.springframework.context.ApplicationContextAware cannot be resolved. It is indirectly referenced from required .class files
    (this error is for last line of code) </p>
  </blockquote>
  
  <p>I think I should add a .jar file in build path, but I don't know what is it?</p>
  
  <pre><code>CamelContext context = new DefaultCamelContext(); 
  ConnectionFactory connectionFactory = new ActiveMQConnectionFactory(ActiveMQConnection.DEFAULT_BROKER_URL);
  context.addComponent("test-jms", JmsComponent.jmsComponentAutoAcknowledge(connectionFactory));
  </code></pre>