• Post Reply Bookmark Topic Watch Topic
  • New Topic

re: Can not find resource instance in ServletContextListener ?  RSS feed

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
Boost this thread!