users@glassfish.java.net

Error deploying Timer application to Glassfish 3.1.1 cluster fails with

From: <forums_at_java.net>
Date: Fri, 9 Sep 2011 07:49:42 -0500 (CDT)

Hi,
We have a Glassfish 3.1.1 cluster and tried to deploy a timerservice.
We have tried it with the jdbc/__default resource combined with a database
connectionpool with MySQL XA datasource.
This was a possible setup by the Oracle manual.
Also we tried this with de jdbc/__TimerPool with the MySQL XA datasource
settings.
We verified te connection with a ping from the DAS.
We also deployed the ejb-timer-service-app on the cluster provided by
Glassfish.
This application was installed correctly and generated the table
EJB__TIMER__TBL.
MySQL version mysql-Max-5.0.67-13.20.1
Glassfish 3.1.1 Clustered
mysql-connector-java-5.1.13-bin.jar
We attached the war file to this topic: SimpleTimer.war from the Adam Bien
website
When we deploy the SimpleTimer.war on the cluster we get the following
stacktrace:
[#|2011-09-09T14:15:51.126+0200|INFO|glassfish3.1.1|org.glassfish.admingui|_ThreadID=37;_ThreadName=Thread-2;|GUI
deployment: uploadToTempfile|#]
[#|2011-09-09T14:15:51.126+0200|INFO|glassfish3.1.1|org.glassfish.admingui|_ThreadID=37;_ThreadName=Thread-2;|uploadFileName=SimpleTimer.war|#]
[#|2011-09-09T14:15:51.204+0200|SEVERE|glassfish3.1.1|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=38;_ThreadName=Thread-2;|Exception
while deploying the app [SimpleTimer]|#  ]
[#|2011-09-09T14:15:51.205+0200|SEVERE|glassfish3.1.1|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=38;_ThreadName=Thread-2;|Failed
to create automatic timers for TimerServic  e -- EJB Timer Service is not
available
org.glassfish.deployment.common.DeploymentException: Failed to create
automatic timers for TimerService -- EJB Timer Service is not available
        at
org.glassfish.ejb.startup.EjbDeployer.createAutomaticPersistentTimersForEJB(EjbDeployer.java:589)
        at
org.glassfish.ejb.startup.EjbDeployer.checkEjbBundleForTimers(EjbDeployer.java:534)
        at
org.glassfish.ejb.startup.EjbDeployer.event(EjbDeployer.java:507)
        at
org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:128)
        at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:453)
        at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
        at
org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:382)
        at
com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:355)
        at
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370)
        at
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1045)
        at
com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96)
        at
com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1244)
        at
com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1232)
        at
org.glassfish.admin.rest.ResourceUtil.runCommand(ResourceUtil.java:202)
        at
org.glassfish.admin.rest.ResourceUtil.runCommand(ResourceUtil.java:195)
        at
org.glassfish.admin.rest.resources.TemplateListOfResource.createResource(TemplateListOfResource.java:148)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
        at
com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)
        at
com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
        at
com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:288)
        at
com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:134)
        at
com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
        at
com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:134)
        at
com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
        at
com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
        at
com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
        at
com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
        at
com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1469)
        at
com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1400)
        at
com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1349)
        at
com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1339)
        at
com.sun.jersey.server.impl.container.grizzly.GrizzlyContainer._service(GrizzlyContainer.java:182)
        at
com.sun.jersey.server.impl.container.grizzly.GrizzlyContainer.service(GrizzlyContainer.java:147)
        at
org.glassfish.admin.rest.adapter.RestAdapter.service(RestAdapter.java:184)
        at
com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:168)
        at
com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)
        at
com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:238)
        at
com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:828)
        at
com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:725)
        at
com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1019)
        at
com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
        at
com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
        at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
        at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
        at
com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
        at
com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
        at
com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
        at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
        at
com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
        at
com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
        at java.lang.Thread.run(Thread.java:662)
|#]
[#|2011-09-09T14:15:51.209+0200|SEVERE|glassfish3.1.1|javax.enterprise.system.tools.admin.org.glassfish.deployment.admin|_ThreadID=38;_ThreadName=Thread-2;|Exception
while deploying the app [Simpl  eTimer] : Failed to create automatic timers
for TimerService -- EJB Timer Service is not available|#]
[#|2011-09-09T14:15:51.211+0200|INFO|glassfish3.1.1|org.glassfish.admingui|_ThreadID=37;_ThreadName=Thread-2;|Exception
Occurred :Error occurred during deployment: Exception while deploying the
ap  p [SimpleTimer] : Failed to create automatic timers for TimerService --
EJB Timer Service is not available. Please see server.log for more
details.|#]
With kind regard,
Manuel
 


--
[Message sent by forum member 'mflart']
View Post: http://forums.java.net/node/841373