If you deploy with a war file in webapps directory, the context won't be read. The following works:
- uncompress war into webapps/AddressBook (or whatever the web app name is)
- Place the xml file in webapps. It can be named context.xml or AddressBook.xml
I was unable to get the JNDI defs to be processed with an xml and war file in webapps.
© 2016, O’Reilly Media, Inc.
All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners.