title: STS Spring Project: Why is that HelloWorld example not working?
body: <p>I am new to Spring and currently trying the following <strong>Hello World example</strong> from the book ProSpring3:</p>
  
  <pre><code>package com.tutorials.prospring3.ch2;
  
  import org.springframework.context.ApplicationContext;
  import org.springframework.context.support.ClassPathXmlApplicationContext;
  
      public class HelloWorldSpringDI {
          public static void main(String[] args) {
              // Initialize Spring ApplicationContext
              ApplicationContext ctx = new ClassPathXmlApplicationContext(
                      "META-INF/spring/app-context.xml");
              MessageRenderer mr = ctx.getBean("renderer", MessageRenderer.class);
              mr.render();
          }
      }
  </code></pre>
  
  <p>The ClassPathXmlApplicationContext instantiation is marked as the following error: "The constructor ClassPathXmlApplicationContext(String) refers to the missing type BeansException"</p>
  
  <p>In addiation, when running the application the IDE displays a <strong>build path problem:</strong> "Archive for required library: 'C:/Users/Admin/.m2/repository/org/springframework/spring-beans/3.0.6.RELEASE/spring-beans-3.0.6.RELEASE.jar' in project 'ch2' cannot be read or is not a valid ZIP file"</p>
  
  <p>As the spring-beans.jar (to which the BeansException class belongs) is part of my <strong>Maven Dependencies</strong> i wonder how that could happen. </p>
  
  <p><img src="https://i.stack.imgur.com/qSczZ.jpg" alt="STS screenshot"></p>
  
  <p><strong>Has anyone a suggestion how to solve that problem?</strong></p>
  
  <p>Thanks in advance!</p>
  
  <p>Jonas</p>