• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tomcat 7 - resource injection using @Resource annotation

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The problem is:
recover an entry in the Environment Context of a Tomcat 7 Application using @Resource annotation.

I defined in the context.xml of my application:


if I lookup directly the Jndi Context it's all ok, I retrieve correctly the URL variable:


if I try to use the resource injection using @Resource annotation:
(i'm using Struts2 framework)


in this case I obtain in the Tomcat console: pathFileconfig: null

what's wrong ?


Thanks

 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic