• Post Reply Bookmark Topic Watch Topic
  • New Topic

re: Can not find resource instance in ServletContextListener ?

 
Mark Curlette
Ranch Hand
Posts: 46
Java
  • 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 :

 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!