Skip to main content

Error Redeploying EJB Timer on Glassfish 3.1.1

Please note these forums are being decommissioned and use the new and improved forums at
1 reply [Last post]
Joined: 2011-01-14


I have a sort of weird error when I try to redeploy an EJB Timer. I mean, I can deploy the timer application with no problem, and it works, but when I attempt to redeploy the EJB, Glassfish comes out with the error and I can't redeploy the application and thus I have to undeploy the ear and deploy the EJB again. Does anyone know about a similar problem?


public class Timer1 {
<pre>    /**

     * Default constructor.
    public Timer1() {
        // TODO Auto-generated constructor stub

@Schedule(second="*/10", minute="*", hour="8-23", dayOfWeek="Mon-Fri",
      dayOfMonth="*", month="*", year="*", info="MyTimer")
    private void scheduledTimeout(final Timer t) {
        System.out.println("@Schedule called at: " + new java.util.Date());


Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2011-01-14

I found out that keeping the session between redeploys it works.