Uploaded image for project: 'Apache Tomcat Maven Plugin'
  1. Apache Tomcat Maven Plugin
  2. MTOMCAT-90

useNaming not very useful; perhaps use StandardServer to make it more useful

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 1.1
    • backlog
    • 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            bmargulies Benson Margulies
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: