title: Schedule annotation blocks a maven web application deployment in Netbeans 7.4
body: <p>I have a <strong>JEE7 maven web application</strong> that worked fine until I put a <strong>@Schedule</strong> annotation on one of my EJB.</p>
  
  <p>Since then, <strong>NetBeans 7.4</strong> don't want to deploy my project any more using a <strong>GlassFish-Server-4.0</strong>.  I just have to comment the line of my annotation to be able to deploy again.</p>
  
  <p>Here is the code of my class:</p>
  
  <pre><code>package org.m2acsi.boundary;
  
  import javax.ejb.Schedule;
  import javax.ejb.Stateless;
  
  @Stateless
  public class Automaton {
  
      @Schedule(second = "*/10", minute = "*", hour = "*")
      public void everyDay() {
          System.out.println("Test");
      }
  }
  </code></pre>
  
  <p>Here is the exception I get:</p>
  
  <pre><code>Grave:   Exception while loading the app
  Grave:   Undeployment failed for context /FullStore
  Avertissement:   EJB Timer Service is not available. Timers for application with id 91131533448380416 will not be deleted
  Infos:   file:/C:/Sites/FullStore/target/FullStore-1.0-SNAPSHOT/WEB-INF/classes/_storePU logout successful
  Grave:   Exception while loading the app : EJB Timer Service is not available
  </code></pre>
  
  <p>Edit:
  I tried to ping the EJB timer service in the glassfish admin console. It ends with a failure. This is my blocking point but I cannot understand why or how to fix it.</p>