Grails
  1. Grails
  2. GRAILS-7021

JNDI code for tomcat plugin throws exception on server auto restart during code change during development

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: 1.3.1
    • Fix Version/s: 2.0-M1
    • Component/s: Plugins
    • Labels:
      None
    • Environment:
      Windows XP with IntelliJ Idea
    • Patch Submitted:
      Yes

      Description

      When reading JNDI entries from config.groovy file for database connection information, the code removes the "type","auth","description" & "scope". Due to this, when the server restarts, it is not able to find the "type" attribute and throws IllegalArgumentException with message "Must supply a resource type for JNDI configuration"

      I have changed to code (attached patch) so that it does not remove these attributes but just reads it so that consecutive server restarts can read them again. Please let me know if it looks good enough to push it.

      This bug was injected by the fix done for #GRAILS-5521

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Graeme Rocher
              Reporter:
              Sudhakar Rayavaram
            • Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development