Glassfish schedule(timer) exception









up vote
4
down vote

favorite












i am trying repeat this tutorial on Glassfish 4 and java EE7.
So i created simple WebApp with maven in Netbeans.



I created simple class:



import java.util.Date;
import javax.ejb.Schedule;
import javax.ejb.Stateless;

@Stateless
public class NewClass

@Schedule(minute = "*/1", hour = "*",persistent = false)
public void anyMethod()
System.out.println("hello "+new Date());




But when i am deploing app to the server, i get this exception:



Info: EJB5181:Portable JNDI names for EJB NewClass: [java:global/WebApplication1/NewClass, java:global/WebApplication1/NewClass!NewClass]
Severe: Exception while invoking class org.glassfish.ejb.startup.EjbApplication start method
java.lang.RuntimeException: EJB Timer Service is not available
at com.sun.ejb.containers.BaseContainer.startApplication(BaseContainer.java:3951)
at org.glassfish.ejb.startup.EjbApplication.start(EjbApplication.java:163)
at org.glassfish.internal.data.EngineRef.start(EngineRef.java:122)
at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:291)
at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:352)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:497)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:219)
at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:491)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:527)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:523)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:360)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:522)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:546)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1423)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1500(CommandRunnerImpl.java:108)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1762)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1674)
at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:534)
at com.sun.enterprise.v3.admin.AdminAdapter.onMissingResource(AdminAdapter.java:224)
at org.glassfish.grizzly.http.server.StaticHttpHandler.service(StaticHttpHandler.java:297)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:246)
at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:191)
at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:168)
at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:189)
at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114)
at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:838)
at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:564)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:544)
at java.lang.Thread.run(Thread.java:744)

Severe: Exception during lifecycle processing
java.lang.RuntimeException: EJB Timer Service is not available
at com.sun.ejb.containers.BaseContainer.startApplication(BaseContainer.java:3951)
......

Severe: Exception while loading the app
Severe: Undeployment failed for context /test
Warning: EJB Timer Service is not available. Timers for application with id 91511565780975616 will not be deleted
Severe: Exception while loading the app : EJB Timer Service is not available


Why EJB Timer Service is not available ?
How can i enable it ? :)










share|improve this question

























    up vote
    4
    down vote

    favorite












    i am trying repeat this tutorial on Glassfish 4 and java EE7.
    So i created simple WebApp with maven in Netbeans.



    I created simple class:



    import java.util.Date;
    import javax.ejb.Schedule;
    import javax.ejb.Stateless;

    @Stateless
    public class NewClass

    @Schedule(minute = "*/1", hour = "*",persistent = false)
    public void anyMethod()
    System.out.println("hello "+new Date());




    But when i am deploing app to the server, i get this exception:



    Info: EJB5181:Portable JNDI names for EJB NewClass: [java:global/WebApplication1/NewClass, java:global/WebApplication1/NewClass!NewClass]
    Severe: Exception while invoking class org.glassfish.ejb.startup.EjbApplication start method
    java.lang.RuntimeException: EJB Timer Service is not available
    at com.sun.ejb.containers.BaseContainer.startApplication(BaseContainer.java:3951)
    at org.glassfish.ejb.startup.EjbApplication.start(EjbApplication.java:163)
    at org.glassfish.internal.data.EngineRef.start(EngineRef.java:122)
    at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:291)
    at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:352)
    at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:497)
    at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:219)
    at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:491)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:527)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:523)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:360)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:522)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:546)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1423)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1500(CommandRunnerImpl.java:108)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1762)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1674)
    at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:534)
    at com.sun.enterprise.v3.admin.AdminAdapter.onMissingResource(AdminAdapter.java:224)
    at org.glassfish.grizzly.http.server.StaticHttpHandler.service(StaticHttpHandler.java:297)
    at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:246)
    at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:191)
    at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:168)
    at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:189)
    at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
    at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288)
    at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206)
    at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136)
    at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114)
    at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
    at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:838)
    at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113)
    at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)
    at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)
    at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)
    at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:564)
    at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:544)
    at java.lang.Thread.run(Thread.java:744)

    Severe: Exception during lifecycle processing
    java.lang.RuntimeException: EJB Timer Service is not available
    at com.sun.ejb.containers.BaseContainer.startApplication(BaseContainer.java:3951)
    ......

    Severe: Exception while loading the app
    Severe: Undeployment failed for context /test
    Warning: EJB Timer Service is not available. Timers for application with id 91511565780975616 will not be deleted
    Severe: Exception while loading the app : EJB Timer Service is not available


    Why EJB Timer Service is not available ?
    How can i enable it ? :)










    share|improve this question























      up vote
      4
      down vote

      favorite









      up vote
      4
      down vote

      favorite











      i am trying repeat this tutorial on Glassfish 4 and java EE7.
      So i created simple WebApp with maven in Netbeans.



      I created simple class:



      import java.util.Date;
      import javax.ejb.Schedule;
      import javax.ejb.Stateless;

      @Stateless
      public class NewClass

      @Schedule(minute = "*/1", hour = "*",persistent = false)
      public void anyMethod()
      System.out.println("hello "+new Date());




      But when i am deploing app to the server, i get this exception:



      Info: EJB5181:Portable JNDI names for EJB NewClass: [java:global/WebApplication1/NewClass, java:global/WebApplication1/NewClass!NewClass]
      Severe: Exception while invoking class org.glassfish.ejb.startup.EjbApplication start method
      java.lang.RuntimeException: EJB Timer Service is not available
      at com.sun.ejb.containers.BaseContainer.startApplication(BaseContainer.java:3951)
      at org.glassfish.ejb.startup.EjbApplication.start(EjbApplication.java:163)
      at org.glassfish.internal.data.EngineRef.start(EngineRef.java:122)
      at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:291)
      at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:352)
      at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:497)
      at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:219)
      at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:491)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:527)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:523)
      at java.security.AccessController.doPrivileged(Native Method)
      at javax.security.auth.Subject.doAs(Subject.java:360)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:522)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:546)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1423)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1500(CommandRunnerImpl.java:108)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1762)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1674)
      at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:534)
      at com.sun.enterprise.v3.admin.AdminAdapter.onMissingResource(AdminAdapter.java:224)
      at org.glassfish.grizzly.http.server.StaticHttpHandler.service(StaticHttpHandler.java:297)
      at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:246)
      at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:191)
      at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:168)
      at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:189)
      at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
      at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288)
      at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206)
      at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136)
      at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114)
      at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
      at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:838)
      at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113)
      at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)
      at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)
      at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)
      at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:564)
      at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:544)
      at java.lang.Thread.run(Thread.java:744)

      Severe: Exception during lifecycle processing
      java.lang.RuntimeException: EJB Timer Service is not available
      at com.sun.ejb.containers.BaseContainer.startApplication(BaseContainer.java:3951)
      ......

      Severe: Exception while loading the app
      Severe: Undeployment failed for context /test
      Warning: EJB Timer Service is not available. Timers for application with id 91511565780975616 will not be deleted
      Severe: Exception while loading the app : EJB Timer Service is not available


      Why EJB Timer Service is not available ?
      How can i enable it ? :)










      share|improve this question













      i am trying repeat this tutorial on Glassfish 4 and java EE7.
      So i created simple WebApp with maven in Netbeans.



      I created simple class:



      import java.util.Date;
      import javax.ejb.Schedule;
      import javax.ejb.Stateless;

      @Stateless
      public class NewClass

      @Schedule(minute = "*/1", hour = "*",persistent = false)
      public void anyMethod()
      System.out.println("hello "+new Date());




      But when i am deploing app to the server, i get this exception:



      Info: EJB5181:Portable JNDI names for EJB NewClass: [java:global/WebApplication1/NewClass, java:global/WebApplication1/NewClass!NewClass]
      Severe: Exception while invoking class org.glassfish.ejb.startup.EjbApplication start method
      java.lang.RuntimeException: EJB Timer Service is not available
      at com.sun.ejb.containers.BaseContainer.startApplication(BaseContainer.java:3951)
      at org.glassfish.ejb.startup.EjbApplication.start(EjbApplication.java:163)
      at org.glassfish.internal.data.EngineRef.start(EngineRef.java:122)
      at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:291)
      at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:352)
      at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:497)
      at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:219)
      at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:491)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:527)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:523)
      at java.security.AccessController.doPrivileged(Native Method)
      at javax.security.auth.Subject.doAs(Subject.java:360)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:522)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:546)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1423)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1500(CommandRunnerImpl.java:108)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1762)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1674)
      at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:534)
      at com.sun.enterprise.v3.admin.AdminAdapter.onMissingResource(AdminAdapter.java:224)
      at org.glassfish.grizzly.http.server.StaticHttpHandler.service(StaticHttpHandler.java:297)
      at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:246)
      at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:191)
      at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:168)
      at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:189)
      at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
      at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288)
      at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206)
      at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136)
      at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114)
      at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
      at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:838)
      at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113)
      at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)
      at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)
      at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)
      at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:564)
      at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:544)
      at java.lang.Thread.run(Thread.java:744)

      Severe: Exception during lifecycle processing
      java.lang.RuntimeException: EJB Timer Service is not available
      at com.sun.ejb.containers.BaseContainer.startApplication(BaseContainer.java:3951)
      ......

      Severe: Exception while loading the app
      Severe: Undeployment failed for context /test
      Warning: EJB Timer Service is not available. Timers for application with id 91511565780975616 will not be deleted
      Severe: Exception while loading the app : EJB Timer Service is not available


      Why EJB Timer Service is not available ?
      How can i enable it ? :)







      java java-ee glassfish ejb






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Apr 1 '14 at 12:50









      Vovan

      73811326




      73811326






















          3 Answers
          3






          active

          oldest

          votes

















          up vote
          2
          down vote



          accepted










          In case you are using an embedded glassfish, it might be disabled, you should try downloading a standalone glassfish and try again.



          Regarding configuration you can verify the settings in the glassfish admin console, usually reachable at http://localhost:4848 :



          Following settings are relevant:



          • Configurations -> server-config -> EJB Container -> EJB Timer Service tab

          • Resources -> JDBC -> JDBC Connection Pools -> __TimerPool (here you can also test the connection via the Ping button)





          share|improve this answer




















          • Thanks, i will try.
            – Vovan
            Apr 1 '14 at 13:50






          • 1




            Ok, the reason was that i've delete __TimerPool some time ago(because i did not know why it used). Thank you very much!
            – Vovan
            Apr 1 '14 at 14:12

















          up vote
          9
          down vote













          I had the same issue as well, but @wumbrath's answer didn't work. If that's the case - do try that answer first - delete the following files:



          applications/ejb-timer-service-app
          generated/ejb/ejb-timer-service-app
          generated/jsp/ejb-timer-service-app
          generated/policy/ejb-timer-service-app
          generated/ejb-timer-service-app
          lib/databases/ejbtimer


          And, of course, restarting the server.



          (source: http://www.cnblogs.com/endtel/p/5437765.html)






          share|improve this answer



























            up vote
            0
            down vote













            Go to installation of glassfish:



            mv glassfish/glassfish-4.1.1/glassfish/domains/domain1
            rm -rf applications/ejb-timer-service-app/
            rm -rf generated/ejb/ejb-timer-service-app/
            rm -rf generated/jsp/ejb-timer-service-app/
            rm -rf generated/policy/ejb-timer-service-app/
            rm -rf generated/ejb-timer-service-app
            rm -rf lib/databases/ejbtimer/





            share|improve this answer




















              Your Answer






              StackExchange.ifUsing("editor", function ()
              StackExchange.using("externalEditor", function ()
              StackExchange.using("snippets", function ()
              StackExchange.snippets.init();
              );
              );
              , "code-snippets");

              StackExchange.ready(function()
              var channelOptions =
              tags: "".split(" "),
              id: "1"
              ;
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function()
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled)
              StackExchange.using("snippets", function()
              createEditor();
              );

              else
              createEditor();

              );

              function createEditor()
              StackExchange.prepareEditor(
              heartbeatType: 'answer',
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader:
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              ,
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              );



              );













               

              draft saved


              draft discarded


















              StackExchange.ready(
              function ()
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f22786424%2fglassfish-scheduletimer-exception%23new-answer', 'question_page');

              );

              Post as a guest






























              3 Answers
              3






              active

              oldest

              votes








              3 Answers
              3






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes








              up vote
              2
              down vote



              accepted










              In case you are using an embedded glassfish, it might be disabled, you should try downloading a standalone glassfish and try again.



              Regarding configuration you can verify the settings in the glassfish admin console, usually reachable at http://localhost:4848 :



              Following settings are relevant:



              • Configurations -> server-config -> EJB Container -> EJB Timer Service tab

              • Resources -> JDBC -> JDBC Connection Pools -> __TimerPool (here you can also test the connection via the Ping button)





              share|improve this answer




















              • Thanks, i will try.
                – Vovan
                Apr 1 '14 at 13:50






              • 1




                Ok, the reason was that i've delete __TimerPool some time ago(because i did not know why it used). Thank you very much!
                – Vovan
                Apr 1 '14 at 14:12














              up vote
              2
              down vote



              accepted










              In case you are using an embedded glassfish, it might be disabled, you should try downloading a standalone glassfish and try again.



              Regarding configuration you can verify the settings in the glassfish admin console, usually reachable at http://localhost:4848 :



              Following settings are relevant:



              • Configurations -> server-config -> EJB Container -> EJB Timer Service tab

              • Resources -> JDBC -> JDBC Connection Pools -> __TimerPool (here you can also test the connection via the Ping button)





              share|improve this answer




















              • Thanks, i will try.
                – Vovan
                Apr 1 '14 at 13:50






              • 1




                Ok, the reason was that i've delete __TimerPool some time ago(because i did not know why it used). Thank you very much!
                – Vovan
                Apr 1 '14 at 14:12












              up vote
              2
              down vote



              accepted







              up vote
              2
              down vote



              accepted






              In case you are using an embedded glassfish, it might be disabled, you should try downloading a standalone glassfish and try again.



              Regarding configuration you can verify the settings in the glassfish admin console, usually reachable at http://localhost:4848 :



              Following settings are relevant:



              • Configurations -> server-config -> EJB Container -> EJB Timer Service tab

              • Resources -> JDBC -> JDBC Connection Pools -> __TimerPool (here you can also test the connection via the Ping button)





              share|improve this answer












              In case you are using an embedded glassfish, it might be disabled, you should try downloading a standalone glassfish and try again.



              Regarding configuration you can verify the settings in the glassfish admin console, usually reachable at http://localhost:4848 :



              Following settings are relevant:



              • Configurations -> server-config -> EJB Container -> EJB Timer Service tab

              • Resources -> JDBC -> JDBC Connection Pools -> __TimerPool (here you can also test the connection via the Ping button)






              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Apr 1 '14 at 13:49









              wumbrath

              593




              593











              • Thanks, i will try.
                – Vovan
                Apr 1 '14 at 13:50






              • 1




                Ok, the reason was that i've delete __TimerPool some time ago(because i did not know why it used). Thank you very much!
                – Vovan
                Apr 1 '14 at 14:12
















              • Thanks, i will try.
                – Vovan
                Apr 1 '14 at 13:50






              • 1




                Ok, the reason was that i've delete __TimerPool some time ago(because i did not know why it used). Thank you very much!
                – Vovan
                Apr 1 '14 at 14:12















              Thanks, i will try.
              – Vovan
              Apr 1 '14 at 13:50




              Thanks, i will try.
              – Vovan
              Apr 1 '14 at 13:50




              1




              1




              Ok, the reason was that i've delete __TimerPool some time ago(because i did not know why it used). Thank you very much!
              – Vovan
              Apr 1 '14 at 14:12




              Ok, the reason was that i've delete __TimerPool some time ago(because i did not know why it used). Thank you very much!
              – Vovan
              Apr 1 '14 at 14:12












              up vote
              9
              down vote













              I had the same issue as well, but @wumbrath's answer didn't work. If that's the case - do try that answer first - delete the following files:



              applications/ejb-timer-service-app
              generated/ejb/ejb-timer-service-app
              generated/jsp/ejb-timer-service-app
              generated/policy/ejb-timer-service-app
              generated/ejb-timer-service-app
              lib/databases/ejbtimer


              And, of course, restarting the server.



              (source: http://www.cnblogs.com/endtel/p/5437765.html)






              share|improve this answer
























                up vote
                9
                down vote













                I had the same issue as well, but @wumbrath's answer didn't work. If that's the case - do try that answer first - delete the following files:



                applications/ejb-timer-service-app
                generated/ejb/ejb-timer-service-app
                generated/jsp/ejb-timer-service-app
                generated/policy/ejb-timer-service-app
                generated/ejb-timer-service-app
                lib/databases/ejbtimer


                And, of course, restarting the server.



                (source: http://www.cnblogs.com/endtel/p/5437765.html)






                share|improve this answer






















                  up vote
                  9
                  down vote










                  up vote
                  9
                  down vote









                  I had the same issue as well, but @wumbrath's answer didn't work. If that's the case - do try that answer first - delete the following files:



                  applications/ejb-timer-service-app
                  generated/ejb/ejb-timer-service-app
                  generated/jsp/ejb-timer-service-app
                  generated/policy/ejb-timer-service-app
                  generated/ejb-timer-service-app
                  lib/databases/ejbtimer


                  And, of course, restarting the server.



                  (source: http://www.cnblogs.com/endtel/p/5437765.html)






                  share|improve this answer












                  I had the same issue as well, but @wumbrath's answer didn't work. If that's the case - do try that answer first - delete the following files:



                  applications/ejb-timer-service-app
                  generated/ejb/ejb-timer-service-app
                  generated/jsp/ejb-timer-service-app
                  generated/policy/ejb-timer-service-app
                  generated/ejb-timer-service-app
                  lib/databases/ejbtimer


                  And, of course, restarting the server.



                  (source: http://www.cnblogs.com/endtel/p/5437765.html)







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Sep 25 '16 at 8:44









                  Michael Bar-Sinai

                  2,2131620




                  2,2131620




















                      up vote
                      0
                      down vote













                      Go to installation of glassfish:



                      mv glassfish/glassfish-4.1.1/glassfish/domains/domain1
                      rm -rf applications/ejb-timer-service-app/
                      rm -rf generated/ejb/ejb-timer-service-app/
                      rm -rf generated/jsp/ejb-timer-service-app/
                      rm -rf generated/policy/ejb-timer-service-app/
                      rm -rf generated/ejb-timer-service-app
                      rm -rf lib/databases/ejbtimer/





                      share|improve this answer
























                        up vote
                        0
                        down vote













                        Go to installation of glassfish:



                        mv glassfish/glassfish-4.1.1/glassfish/domains/domain1
                        rm -rf applications/ejb-timer-service-app/
                        rm -rf generated/ejb/ejb-timer-service-app/
                        rm -rf generated/jsp/ejb-timer-service-app/
                        rm -rf generated/policy/ejb-timer-service-app/
                        rm -rf generated/ejb-timer-service-app
                        rm -rf lib/databases/ejbtimer/





                        share|improve this answer






















                          up vote
                          0
                          down vote










                          up vote
                          0
                          down vote









                          Go to installation of glassfish:



                          mv glassfish/glassfish-4.1.1/glassfish/domains/domain1
                          rm -rf applications/ejb-timer-service-app/
                          rm -rf generated/ejb/ejb-timer-service-app/
                          rm -rf generated/jsp/ejb-timer-service-app/
                          rm -rf generated/policy/ejb-timer-service-app/
                          rm -rf generated/ejb-timer-service-app
                          rm -rf lib/databases/ejbtimer/





                          share|improve this answer












                          Go to installation of glassfish:



                          mv glassfish/glassfish-4.1.1/glassfish/domains/domain1
                          rm -rf applications/ejb-timer-service-app/
                          rm -rf generated/ejb/ejb-timer-service-app/
                          rm -rf generated/jsp/ejb-timer-service-app/
                          rm -rf generated/policy/ejb-timer-service-app/
                          rm -rf generated/ejb-timer-service-app
                          rm -rf lib/databases/ejbtimer/






                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Nov 9 at 14:04









                          Attila Gróf

                          316




                          316



























                               

                              draft saved


                              draft discarded















































                               


                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function ()
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f22786424%2fglassfish-scheduletimer-exception%23new-answer', 'question_page');

                              );

                              Post as a guest














































































                              Popular posts from this blog

                              Use pre created SQLite database for Android project in kotlin

                              Darth Vader #20

                              Ondo