Solve: Locate the .xml file corresponding to your web application under% tomcat_home% / conf / catalina / localhost, such as Test.xml, and add the code under this file:
Restart Tomcat.
You are the server's global JNDI resource, and RESOURCE with INITIALCONTEXT is found to find it. If you want to find the Server Resource, you have to join a ResourceLink pointing to the global resource in the Context environment in the Web Application.
It seems to have several solutions!