From 40a2e355d5c395f7fd77589258580b7ba4f68ce5 Mon Sep 17 00:00:00 2001 From: Sudhakar Date: Sat, 11 Dec 2010 11:35:00 +0530 Subject: [PATCH] Removing the jndi config parameters causes failure in server auto restart during code changes --- src/groovy/org/grails/tomcat/TomcatServer.groovy | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/groovy/org/grails/tomcat/TomcatServer.groovy b/src/groovy/org/grails/tomcat/TomcatServer.groovy index 1a709eb..558691e 100644 --- a/src/groovy/org/grails/tomcat/TomcatServer.groovy +++ b/src/groovy/org/grails/tomcat/TomcatServer.groovy @@ -232,10 +232,10 @@ class TomcatServer implements EmbeddableServer { } def res = loadInstance('org.apache.catalina.deploy.ContextResource') res.name = name - res.type = resCfg.remove("type") - res.auth = resCfg.remove("auth") - res.description = resCfg.remove("description") - res.scope = resCfg.remove("scope") + res.type = resCfg["type"] + res.auth = resCfg["auth"] + res.description = resCfg["description"] + res.scope = resCfg["scope"] // now it's only the custom properties left in the Map... resCfg.each {key, value -> res.setProperty (key, value) -- 1.6.5.1.1367.gcd48