users@glassfish.java.net

ejb timer on stand alone instance

From: <glassfish_at_javadesktop.org>
Date: Fri, 19 Mar 2010 15:00:04 PDT

Is it possible to install an ejb timer on a stand alone instance?

The server is in cluster profile, but it just has the das with an app deployed to it, then a stand alone instance on it for doing beta testing. The timer service is working on the main instance, but not on the other stand alone instance. This is the open source v2.1 (9.1.1) (build b60e-fcs).

Thanks,
Jim




Pieces of the log from the stand alone instance:
[#|2010-03-19T15:31:14.995-0600|WARNING|sun-appserver2.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;_RequestID=d608f750-5054-4a26-82b6-b2deb78df5ae;|Exception occured while accessing :__ejb_container_timer_app.ear_deployFailed|#]

[#|2010-03-19T15:31:15.003-0600|INFO|sun-appserver2.1|javax.enterprise.system.tools.deployment|_ThreadID=10;_ThreadName=main;|[AutoDeploy] Selecting file /home/glassfish/glassfish/lib/install/applications/__ejb_container_timer_app.ear for autodeployment.|#]

[#|2010-03-19T15:31:15.020-0600|INFO|sun-appserver2.1|javax.enterprise.system.tools.deployment|_ThreadID=10;_ThreadName=main;|[AutoDeploy] Exception occures while invoking backend deployment service for file : /home/glassfish/glassfish/lib/install/applications/__ejb_container_timer_app.ear. -- This operation failed, because it could not be handled by this domain.
An example of such an operation is creating application server instances or clusters when they are not supported by the given domain.
The actual error is: MBean instance not found: com.sun.appserv:type=applications,category=config -- This operation failed, because it could not be handled by this domain.
An example of such an operation is creating application server instances or clusters when they are not supported by the given domain.
The actual error is: MBean instance not found: com.sun.appserv:type=applications,category=config|#]

[#|2010-03-19T15:31:15.021-0600|INFO|sun-appserver2.1|javax.enterprise.system.tools.deployment|_ThreadID=10;_ThreadName=main;|[AutoDeploy] Autodeploy failed : /home/glassfish/glassfish/lib/install/applications/__ejb_container_timer_app.ear.|#]


[#|2010-03-19T15:31:27.884-0600|INFO|sun-appserver2.1|javax.enterprise.system.container.ejb|_ThreadID=15;_ThreadName=pool-1-thread-8;|EJB5070: Exception creating stateless session bean : [{0}]
com.sun.enterprise.InjectionException: Exception attempting to inject Env-Prop: com.pts.core.crons.CronTimerSession/timerService_at_Field-Injectable Resource. Class name = com.pts.core.crons.CronTimerSession Field name=timerService_at_java.lang.String_at_com.pts.core.crons.CronTimerSession/timerService@@ into class com.pts.core.crons.CronTimerSession
        at com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:387)
        at com.sun.enterprise.util.InjectionManagerImpl.inject(InjectionManagerImpl.java:206)
        at com.sun.enterprise.util.InjectionManagerImpl.injectInstance(InjectionManagerImpl.java:127)
        at com.sun.ejb.containers.StatelessSessionContainer.createStatelessEJB(StatelessSessionContainer.java:533)
        at com.sun.ejb.containers.StatelessSessionContainer.access$100(StatelessSessionContainer.java:111)
        at com.sun.ejb.containers.StatelessSessionContainer$SessionContextFactory.create(StatelessSessionContainer.java:772)
        at com.sun.ejb.containers.util.pool.NonBlockingPool.getObject(NonBlockingPool.java:199)
        at com.sun.ejb.containers.StatelessSessionContainer._getContext(StatelessSessionContainer.java:486)
        at com.sun.ejb.containers.BaseContainer.getContext(BaseContainer.java:1700)
        at com.sun.ejb.containers.BaseContainer.preInvoke(BaseContainer.java:1229)
        at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:195)
        at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:83)
        at $Proxy71.createTimer(Unknown Source)
        at com.pts.revwebservices.StartTimers.startCronTimer(StartTimers.java:36)
        at com.pts.revwebservices.StartTimers.init(StartTimers.java:31)
        at javax.servlet.GenericServlet.init(GenericServlet.java:270)
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1194)
        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1023)
        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4917)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:5324)
        at com.sun.enterprise.web.WebModule.start(WebModule.java:353)
        at com.sun.enterprise.web.LifecycleStarter.doRun(LifecycleStarter.java:58)
        at com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBase.java:304)
        at com.sun.appserv.management.util.misc.RunnableBase.run(RunnableBase.java:341)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:619)
Caused by: javax.naming.NameNotFoundException: No object bound for java:comp/env/com.pts.core.crons.CronTimerSession/timerService [Root exception is java.lang.IllegalStateException: EJB Timer Service not available]
        at com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:224)
        at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:407)
        at javax.naming.InitialContext.lookup(InitialContext.java:392)
        at com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:287)
        ... 29 more
Caused by: java.lang.IllegalStateException: EJB Timer Service not available
        at com.sun.ejb.containers.ContainerFactoryImpl.getEJBContextObject(ContainerFactoryImpl.java:445)
        at com.sun.enterprise.naming.NamingManagerImpl.lookup(NamingManagerImpl.java:987)
        at com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:173)
        ... 32 more
|#]
[Message sent by forum member 'culli']

http://forums.java.net/jive/thread.jspa?messageID=392831