I have a JEE7 maven web application that worked fine until I put a @Schedule annotation on one of my EJB.
Since then, NetBeans 7.4 don't want to deploy my project any more using a GlassFish-Server-4.0. I just have to comment the line of my annotation to be able to deploy again.
Here is the code of my class:
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");
}
}
Here is the exception I get:
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
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.