Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Invalid
-
1.1
-
None
-
None
Description
While the Tomcat 'Embedded' class has 'useNaming', it's not useful. This is because the rest of Tomcat won't actually set up the full JNDI foundation unless the NamingContextListener is deployed inside of a container that implements Server or Context. The plugin does not use StandardServer to be a server, and nothing in the plugin will add the NamingContextListener to a context.
One possible response here is to remove the option; another is to add StandardServer, a third is to add that listener to the context when useNaming is turned on.
I suppose that it's hypothetically possible for someone to use context.xml to add the NamingContextListener.