This week's book giveaway is in the Security forum.
We're giving away four copies of Penetration Testing Basics and have Ric Messier on-line!
See this thread for details.
Win a copy of Penetration Testing Basics this week in the Security forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

re: Can not find resource instance in ServletContextListener ?

Mark Curlette
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,
Hope you have a good week. I am struggling with the error which is it can not find resource instance from my ServletContextListener. It seems that it should be working but it did not. I can not figure out why and I'd like to get your help.
If you happen to know what I did wrong then please show me. For the information, I am using Tomcat 7.0 web server.

I declared a resource reference named TimerManager in my web.xml and my context.xml, and i try to look for it using InitialContext from my ServletContextListener.

Thanks so much in advance.

My ServletContextListener is as following:

My web.xml is as following:

My context.xml is as following:

The error I got :

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic