This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I need to use TimerManager in our project. I was testing it on RAD6.0.1, using DefaultTimerManager with JNDI name java/comp/env/tm/default.
However when I do lookup for that JNDI Name in a servlet it was giving error like this Exception stack trace: com.ibm.websphere.naming.CannotInstantiateObjectException: Exception occurred while the JNDI NamingManager was processing a javax.naming.Reference object. Root exception is com.ibm.ws.asynchbeans.exception.AsynchBeanException: ASYN0069E: TimerManager java/comp/env/tm/default is being looked up without using resource reference.
In web.xml corresponding resource reference entry is <resource-ref> <res-ref-name>tm/default</res-ref-name> <res-type>commonj.timer.TimerManager</res-type> <res-auth>Container</res-auth> <res-sharing-scope>Shareable</res-sharing-scope> </resource-ref> I tried giving the full JNDI Name in <res-ref-name> but it did not work.
Not able to find why the error is coming. Please help.