Websphere TimerManager Name comp/env/tm not found in context - Websphere

This is a discussion on Websphere TimerManager Name comp/env/tm not found in context - Websphere ; Hello, I got Name comp/env/tm not found in context "java:" error message as following when I tried to use TimeManager to schedule a servlet. My WebSphere server is V6.1. Can anybody help? Thank you! [10/27/08 16:27:57:971 EDT] 00000020 ServletWrappe I ...

+ Reply to Thread
Results 1 to 3 of 3

Thread: Websphere TimerManager Name comp/env/tm not found in context

  1. Websphere TimerManager Name comp/env/tm not found in context

    Hello,

    I got Name comp/env/tm not found in context "java:" error message as following when I tried to use TimeManager to schedule a servlet. My WebSphere server is V6.1.

    Can anybody help?

    Thank you!


    [10/27/08 16:27:57:971 EDT] 00000020 ServletWrappe I SRVE0242I: [rextEAR] [/rext] [Test]: Initialization successful.
    [10/27/08 16:27:57:955 EDT] 00000020 SystemErr R javax.naming.NameNotFoundException: Name comp/env/tm not found in context "java:".
    [10/27/08 16:27:57:971 EDT] 00000020 SystemErr R at com.ibm.ws.naming.ipbase.NameSpace.getParentCtxInt ernal(NameSpace.java:1767)
    [10/27/08 16:27:57:971 EDT] 00000020 SystemErr R at com.ibm.ws.naming.ipbase.NameSpace.lookupInternal( NameSpace.java:1083)
    [10/27/08 16:27:57:971 EDT] 00000020 SystemErr R at com.ibm.ws.naming.ipbase.NameSpace.lookup(NameSpac e.java:991)
    [10/27/08 16:27:57:971 EDT] 00000020 SystemErr R at com.ibm.ws.naming.urlbase.UrlContextImpl.lookup(Ur lContextImpl.java:1263)
    [10/27/08 16:27:57:971 EDT] 00000020 SystemErr R at com.ibm.ws.naming.java.javaURLContextImpl.lookup(j avaURLContextImpl.java:384)
    [10/27/08 16:27:57:971 EDT] 00000020 SystemErr R at com.ibm.ws.naming.java.javaURLContextRoot.lookup(j avaURLContextRoot.java:204)
    [10/27/08 16:27:57:971 EDT] 00000020 SystemErr R at com.ibm.ws.naming.java.javaURLContextRoot.lookup(j avaURLContextRoot.java:144)
    [10/27/08 16:27:57:971 EDT] 00000020 SystemErr R at javax.naming.InitialContext.lookup(InitialContext. java:363)
    [10/27/08 16:27:57:971 EDT] 00000020 SystemErr R at pagecode.Test.init(Test.java:32)
    [10/27/08 16:27:57:971 EDT] 00000020 SystemErr R at javax.servlet.GenericServlet.init(GenericServlet.j ava:256)
    [10/27/08 16:27:57:971 EDT] 00000020 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.ini t(ServletWrapper.java:190)
    [10/27/08 16:27:57:971 EDT] 00000020 SystemErr R at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.i nit(ServletWrapper.java:317)
    [10/27/08 16:27:57:971 EDT] 00000020 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.han dleRequest(ServletWrapper.java:346)
    [10/27/08 16:27:57:971 EDT] 00000020 SystemErr R at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.h andleRequest(ServletWrapper.java:464)
    [10/27/08 16:27:57:971 EDT] 00000020 SystemErr R at com.ibm.ws.webcontainer.webapp.WebApp.handleReques t(WebApp.java:3252)
    [10/27/08 16:27:57:971 EDT] 00000020 SystemErr R at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequ est(WebGroup.java:264)
    [10/27/08 16:27:57:971 EDT] 00000020 SystemErr R at com.ibm.ws.webcontainer.WebContainer.handleRequest (WebContainer.java:811)
    [10/27/08 16:27:57:971 EDT] 00000020 SystemErr R at com.ibm.ws.wswebcontainer.WebContainer.handleReque st(WebContainer.java:1439)
    [10/27/08 16:27:57:971 EDT] 00000020 SystemErr R at com.ibm.ws.webcontainer.channel.WCChannelLink.read y(WCChannelLink.java:112)
    [10/27/08 16:27:57:971 EDT] 00000020 SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpInboundLi nk.handleDiscrimination(HttpInboundLink.java:454)
    [10/27/08 16:27:57:971 EDT] 00000020 SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpInboundLi nk.handleNewInformation(HttpInboundLink.java:383)
    [10/27/08 16:27:57:971 EDT] 00000020 SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpInboundLi nk.ready(HttpInboundLink.java:263)
    [10/27/08 16:27:57:971 EDT] 00000020 SystemErr R at com.ibm.ws.tcp.channel.impl.NewConnectionInitialRe adCallback.sendToDiscriminators(NewConnectionIniti alReadCallback.java:214)
    [10/27/08 16:27:57:971 EDT] 00000020 SystemErr R at com.ibm.ws.tcp.channel.impl.NewConnectionInitialRe adCallback.complete(NewConnectionInitialReadCallba ck.java:113)
    [10/27/08 16:27:57:971 EDT] 00000020 SystemErr R at com.ibm.ws.tcp.channel.impl.AioReadCompletionListe ner.futureCompleted(AioReadCompletionListener.java :165)
    [10/27/08 16:27:57:971 EDT] 00000020 SystemErr R at com.ibm.io.async.AbstractAsyncFuture.invokeCallbac k(AbstractAsyncFuture.java:217)
    [10/27/08 16:27:57:971 EDT] 00000020 SystemErr R at com.ibm.io.async.AsyncChannelFuture.fireCompletion Actions(AsyncChannelFuture.java:161)
    [10/27/08 16:27:57:971 EDT] 00000020 SystemErr R at com.ibm.io.async.AsyncFuture.completed(AsyncFuture .java:136)
    [10/27/08 16:27:57:971 EDT] 00000020 SystemErr R at com.ibm.io.async.ResultHandler.complete(ResultHand ler.java:195)
    [10/27/08 16:27:57:971 EDT] 00000020 SystemErr R at com.ibm.io.async.ResultHandler.runEventProcessingL oop(ResultHandler.java:743)
    [10/27/08 16:27:57:971 EDT] 00000020 SystemErr R at com.ibm.io.async.ResultHandler$2.run(ResultHandler .java:873)
    [10/27/08 16:27:57:971 EDT] 00000020 SystemErr R at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.j ava:1469)

  2. Re: Websphere TimerManager Name comp/env/tm not found in context

    This problem is solved by adding a resource-ref in deployment descriptor for the TimerManager

    Thanks

  3. Re: Websphere TimerManager Name comp/env/tm not found in context

    Don't forget to add the entry of the JNDI name of the resource reference to vendor specific binding file.

+ Reply to Thread